-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 1.56 KB
/
Makefile
File metadata and controls
51 lines (40 loc) · 1.56 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pguthaus <pguthaus@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/11/06 15:01:06 by pguthaus #+# #+# #
# Updated: 2019/03/14 17:40:17 by pierre ### ########.fr #
# #
# **************************************************************************** #
PRODFILE = make/Makefile.prod
DEVFILE = make/Makefile.dev
all: bin
pre:
@$(MAKE) -C libft lib
devpre:
@$(MAKE) -C libft dev
bin: pre
@echo "Making the executable..."
@$(MAKE) -f $(PRODFILE)
@echo "Executable has been made"
dev: devpre
@echo "Making the debugable executable..."
@$(MAKE) -f $(DEVFILE)
@echo "Debugable executable has been made"
devre: fclean dev
re: fclean bin
clean:
@echo "Cleaning object files"
@rm -rf objs/
fclean: clean
@echo "Cleaning everything"
@$(MAKE) -f $(PRODFILE) fclean
@$(MAKE) -f $(DEVFILE) fclean
@$(MAKE) -C libft fclean
getsources:
@rm -f make/sources.mk
@touch make/sources.mk
@find src/ -name "*.c" | sed "s/src\//SRCS+=/g" >> make/sources.mk