-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (58 loc) · 2.56 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
67
68
69
70
71
72
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cgiron <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/06/17 12:16:41 by cgiron #+# #+# #
# Updated: 2019/09/24 17:43:39 by cgiron ### ########.fr #
# #
# **************************************************************************** #
include ./libft/dependancies_libft.mk
include ./arena/dependancies_arena.mk
include ./dir_asm/dependancies_dir_asm.mk
include ./shared_val.mk
ifeq ($(CHECK_SHARED_VAL),)
$(error SHARE_VAL not included)
endif
ifeq ($(CHECK_LIBFT_DEP),)
$(error LIBFT_DEPENDANCIES not included)
endif
ifeq ($(CHECK_ARENA_DEP),)
$(error ARENA_DEPENDANCIES not included)
endif
ifeq ($(CHECK_ASM_DEP),)
$(error ASM_DEPENDANCIES not included)
endif
NAME := $(NAME_ARENA) $(NAME_ASM)
L_NAME = "NAME_ARENA=../$(NAME_ARENA)"
V_NAME = "NAME_ASM=../$(NAME_ASM)"
.PHONY: all clean fclean re debug
all : $(NAME)
STD_DEPENDANCY := $(DEPENDANCIES_LIBFT_EXPORT)
$(NAME_ARENA) : $(DEPENDANCIES_ARENA_EXPORT) $(STD_DEPENDANCY)
$(MAKE) -C $(L_LIBFT_DIR) --no-print-directory
$(MAKE) -C ./mlx --no-print-directory
$(MAKE) -C $(L_ARENA_DIR) $(L_NAME) --no-print-directory
$(NAME_ASM) : $(DEPENDANCIES_ASM_EXPORT) $(STD_DEPENDANCY)
$(MAKE) -C $(L_LIBFT_DIR) --no-print-directory
$(MAKE) -C $(L_ASM_DIR) $(V_NAME) --no-print-directory
clean:
$(MAKE) clean -C $(L_LIBFT_DIR) --no-print-directory
$(MAKE) clean -C ./mlx --no-print-directory
$(MAKE) clean -C $(L_ARENA_DIR) --no-print-directory
$(MAKE) clean -C $(L_ASM_DIR) --no-print-directory
fclean:
$(MAKE) fclean -C $(L_LIBFT_DIR) --no-print-directory
$(MAKE) clean -C ./mlx --no-print-directory
$(MAKE) fclean -C $(L_ARENA_DIR) --no-print-directory
$(MAKE) fclean -C $(L_ASM_DIR) --no-print-directory
rm -f $(NAME)
simulink:
$(MAKE) simulink -C $(L_ARENA_DIR) --no-print-directory
$(MAKE) simulink -C $(L_ASM_DIR) --no-print-director
debug:
$(MAKE) debug -C $(L_ARENA_DIR) $(L_NAME) --no-print-directory
$(MAKE) debug -C $(L_ASM_DIR) $(V_NAME) --no-print-directory
re: fclean all