-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·57 lines (39 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
executable file
·57 lines (39 loc) · 1.53 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
52
53
54
55
56
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: takiapo <takiapo@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2013/11/20 21:45:12 by takiapo #+# #+# #
#* Updated: 2017/12/21 01:12:07 by ### ########.fr *#
# #
# **************************************************************************** #
SULLY = Sully
COLLEEN = Colleen
GRACE = Grace
ifeq ($(HOSTTYPE),)
HOSTTYPE := $(shell uname -m)_$(shell uname -s)
endif
WFLAGS = -Wall -Wextra -Werror
CC = gcc
SRCGRACE = \
Grace.c
SRCCOLLEEN = \
Colleen.c
SRCSULLY = \
Sully.c
INCLUDE = -I includes/
all : $(COLLEEN) $(GRACE) $(SULLY)
$(COLLEEN) : $(SRCCOLEEN)
$(CC) -o $(COLLEEN) $(SRCCOLLEEN) $(LIBFLAG) $(WFLAGS) $(INCLUDE)
$(GRACE) : $(SRCGRACE)
$(CC) -o $(GRACE) $(SRCGRACE) $(LIBFLAG) $(WFLAGS) $(INCLUDE)
$(SULLY) : $(SRCSULLY)
$(CC) -o $(SULLY) $(SRCSULLY) $(LIBFLAG) $(WFLAGS) $(INCLUDE)
clean :
echo 'clean'
fclean : clean
echo 'fclean'
rm -rf $(NAME)
re: fclean all