This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (36 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: akupriia <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/12/28 19:24:02 by vbrazas #+# #+# #
# Updated: 2018/09/23 22:14:03 by akupriia ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all clean fclean re mre
ASM := asm
VM := corewar
ASM_PATH := compiler/
VM_PATH := vm/
all:
@ make -C $(ASM_PATH)
@ make -C $(VM_PATH)
@ ln -fs $(ASM_PATH)$(ASM) $(ASM)
@ ln -fs $(VM_PATH)$(VM) $(VM)
@ chmod 744 $(ASM) $(VM)
mre:
@ make mre -C $(ASM_PATH)
@ make mre -C $(VM_PATH)
@ ln -fs $(ASM_PATH)$(ASM) $(ASM)
@ ln -fs $(VM_PATH)$(VM) $(VM)
@ chmod 744 $(ASM) $(VM)
clean:
make clean -C $(ASM_PATH)
make clean -C $(VM_PATH)
fclean:
make fclean -C $(ASM_PATH)
make fclean -C $(VM_PATH)
rm -f $(ASM) $(VM)
re: fclean all