-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (47 loc) · 1.81 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ffloris <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/13 09:39:19 by ffloris #+# #+# #
# Updated: 2018/05/03 10:16:27 by ffloris ### ########.fr #
# #
# **************************************************************************** #
ASM = asm
COREWAR = corewar
NAME = $(ASM) $(COREWAR)
LIBFT_DIR = libft
LIBFT_NAME = libft.a
LIBFT_FILE = $(LIBFT_DIR)/$(LIBFT_NAME)
ASM_DIR = assembler
COREWAR_DIR = virtual_machine
SHARED_DIR = shared
SHARED_INCLUDES_DIR = $(SHARED_DIR)/includes
all: comp_libft comp_asm comp_corewar $(NAME)
norm:
@make -C $(LIBFT_DIR)/ norm
@make -C $(ASM_DIR)/ norm
@make -C $(COREWAR_DIR)/ norm
@norminette $(SHARED_INCLUDES_DIR)/
comp_libft:
@make -C $(LIBFT_DIR)/
comp_asm:
@make -C $(ASM_DIR)/
comp_corewar:
@make -C $(COREWAR_DIR)/
$(NAME): $(ASM_DIR)/$(ASM) $(COREWAR_DIR)/$(COREWAR)
@cp $(ASM_DIR)/$(ASM) $(ASM)
@cp $(COREWAR_DIR)/$(COREWAR) $(COREWAR)
clean:
@make -C $(LIBFT_DIR)/ clean
@make -C $(ASM_DIR)/ clean
@make -C $(COREWAR_DIR)/ clean
fclean:
@make -C $(LIBFT_DIR)/ fclean
@make -C $(ASM_DIR)/ fclean
@make -C $(COREWAR_DIR)/ fclean
@rm -f $(NAME)
re: fclean all
.PHONY: all norm comp_libft comp_asm comp_corewar clean fclean re