-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 1.49 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
43
44
45
46
47
48
49
50
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pierre <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/06/25 16:42:34 by pierre #+# #+# #
# Updated: 2018/10/16 14:45:40 by pleroux ### ########.fr #
# #
# **************************************************************************** #
ASM= src_asm/
DESASM= src_desasm/
VM= src_vm/
ASM_NAME= asm
DESASM_NAME= desasm
VM_NAME= corewar
all : $(ASM) $(DESASM) $(VM)
$(ASM) :
make -C $(ASM)
ln -s -f $(ASM)$(ASM_NAME) $(ASM_NAME)
$(DESASM) :
make -C $(DESASM)
ln -s -f $(DESASM)$(DESASM_NAME) $(DESASM_NAME)
$(VM) :
make -C $(VM)
ln -s -f $(VM)$(VM_NAME) $(VM_NAME)
clean :
make -C $(ASM) clean
make -C $(DESASM) clean
make -C $(VM) clean
fclean :
make -C $(ASM) fclean
make -C $(DESASM) fclean
make -C $(VM) fclean
rm -f $(ASM_NAME)
rm -f $(DESASM_NAME)
rm -f $(VM_NAME)
re : fclean all
.PHONY : all clean fclean re $(ASM) $(DESASM) $(VM)