-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (33 loc) · 1.36 KB
/
Copy pathMakefile
File metadata and controls
50 lines (33 loc) · 1.36 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tbui-quo <tbui-quo@student.42wolfsburg.d> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/05/16 15:08:12 by tbui-quo #+# #+# #
# Updated: 2023/05/31 15:02:08 by tbui-quo ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
LIBFT = libft
SRCDIR = srcs
SRCS = main.c pipex.c error.c utils.c
CC = gcc
CFLAGS = -Wall -Wextra -Werror
OBJS = ${SRCS:.c=.o}
HEADER = pipex.h
RM = rm -f
all: lib ${NAME}
${NAME}: ${OBJS} ${LIBFT}/libft.a
${CC} ${CFLAGS} ${OBJS} -L ${LIBFT} -lft -o ${NAME}
${OBJS}: ${HEADER}
lib:
make -C ${LIBFT}
clean:
${RM} ${OBJS}
make clean -C ${LIBFT}
fclean: clean
${RM} ${NAME}
make fclean -C ${LIBFT}
re: fclean all