-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (39 loc) · 1.36 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fraqioui <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/11 13:17:51 by fraqioui #+# #+# #
# Updated: 2023/01/11 13:17:53 by fraqioui ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
CC = cc
FLAGS = -Wall -Wextra -Werror
HEADER = pipex.h ft_printf/ft_printf.h
RM = rm -rf
FILES = exec \
helpers \
main \
utils_1 \
utils_2 \
evol \
exec_help \
ft_printf/hex \
ft_printf/number \
ft_printf/start \
ft_printf/string
FOBJ = ${FILES:=.o}
.PHONY = all clean fclean re
all: ${NAME}
${NAME}: ${FOBJ} ${HEADER}
${CC} ${FLAGS} ${FOBJ} -o ${NAME}
%.o: %.c
${CC} ${FLAGS} -c $< -o $@
clean:
${RM} ${FOBJ}
fclean: clean
${RM} ${NAME}
re: all fclean