-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (48 loc) · 2.05 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
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: glourdel <glourdel@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/03/26 17:28:27 by glourdel #+# #+# #
# Updated: 2015/05/12 13:50:31 by glourdel ### ########.fr #
# #
#******************************************************************************#
##
# This Makefile is the main Makefile, that triggers all the sub-Makefiles.
#
# It also provides targets to (re)generate the sub-Makefiles :
# - use 'make generate' to generate sub-Makefiles WITHOUT building Nibbler.
# - use 'make g' to generate sub-Makefile AND build Nibbler.
#
# The Makefile generation consists in :
# 1) listing all *.cc in the source directory to create the CFILES variable.
# 2) for each source file, creating an individualized compilation rule.
#
# The generation rule (either 'generate' or 'g') should be called in the
# following cases :
# - a source file has been ADDED to one of the source folders.
# - a source file has been DELETED or RENAMED from one of the source folders.
# - in an existing source file, an '#include' of a LOCAL HEADER has been
# added or removed.
##
.PHONY: all re clean fclean g generate submodules cmake
.SUFFIXES:
include variables.mk
all:
@make -C lib1
@make -C lib2
@make -C core
generate:
@bash ./scripts/generate_all_makefiles;
g: generate re
fclean:
@make -C core fclean
@make -C lib1 fclean
@make -C lib2 fclean
clean:
@make -C core clean
@make -C lib1 clean
@make -C lib2 clean
re: fclean all