-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 1.22 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
# ************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: shovsepy <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/06/30 16:12:45 by shovsepy #+# #+# #
# Updated: 2021/06/30 17:02:42 by shovsepy ### ########.fr #
# #
# ************************************************************************** #
NAME = pipex
SRCS = srcs/main.c srcs/utils.c
OBJS = ${SRCS:.c=.o}
CC = gcc
CFLAGS = -Wall -Wextra -Werror -Iincludes
RM = rm -rf
all: ${NAME}
${NAME}: ${OBJS}
@${MAKE} -C ./libft
@${CC} ${CFLAGS} ${OBJS} ./libft/libft.a -o ${NAME}
@${RM} ${OBJS}
clean:
@${MAKE} -C ./libft fclean
@${RM} ${OBJS}
fclean: clean
@${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re