-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.41 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: Kashnitskiy <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/12 21:57:42 by mtrisha #+# #+# #
# Updated: 2020/01/16 14:01:02 by Kashnitskiy ### ########.fr #
# #
# **************************************************************************** #
NAME = libft
LIB = ./libft.a
DEBUGLIB = ./libftdebug.a
TEST = ./test/test
CMAKEDIR = ./tmp/
all: $(NAME)
$(NAME): callcmake
callcmake: $(CMAKEDIR) $(CMAKEDIR)Makefile
$(MAKE) -C $(CMAKEDIR) $(MAKECMDGOALS)
$(CMAKEDIR):
mkdir -p $(CMAKEDIR)
cmake: $(CMAKEDIR)
cd $(CMAKEDIR); cmake ../
$(CMAKEDIR)Makefile:
cd $(CMAKEDIR); cmake ../
clean:
rm -r -f $(DEBUGLIB)
rm -r -f $(CMAKEDIR)
rm -r -f $(TEST)
fclean: clean
rm -r -f $(LIB)
re: fclean
$(MAKE)
debug: $(CMAKEDIR) $(CMAKEDIR)Makefile
$(MAKE) -C $(CMAKEDIR) libftdebug
test: all