-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·66 lines (53 loc) · 1.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: glictevo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/05/02 19:54:31 by glictevo #+# #+# #
# Updated: 2018/05/16 00:28:21 by upopee ### ########.fr #
# #
# **************************************************************************** #
LIB_DIR = libft
LIB = $(LIB_DIR)/libft.a
ASM_DIR = assembler
ASM = asm
VM_DIR = vm
VM = corewar
CHAMPS = champs
TESTS = tests_resources
MAKE = make -C
RM = rm -f
LN = ln -fs
all: lib asm vm
lib:
@$(MAKE) $(LIB_DIR)
asm:
@$(MAKE) $(ASM_DIR)
@$(LN) $(ASM_DIR)/$(ASM) $(ASM)
vm:
@$(MAKE) $(VM_DIR)
@$(LN) $(VM_DIR)/$(VM) $(VM)
champs: $(ASM)
@$(MAKE) $(CHAMPS)
tests: $(ASM)
@$(MAKE) $(TESTS)
clean:
@$(MAKE) $(LIB_DIR) clean
@$(MAKE) $(VM_DIR) clean
@$(MAKE) $(ASM_DIR) clean
@$(MAKE) $(TESTS) clean
@$(MAKE) $(CHAMPS) clean
fclean: clean
@$(MAKE) $(LIB_DIR) fclean
@$(RM) $(VM)
@$(MAKE) $(VM_DIR) fclean
@$(RM) $(ASM)
@$(MAKE) $(ASM_DIR) fclean
norm:
@$(MAKE) $(LIB_DIR) norm
@$(MAKE) $(VM_DIR) norm
@$(MAKE) $(ASM_DIR) norm
re: fclean all
.PHONY: all lib asm vm champs tests clean fclean norm re