-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (30 loc) · 1.26 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lbaron <lbaron@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/29 12:42:30 by lbaron #+# #+# #
# Updated: 2022/12/04 20:56:54 by lbaron ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
CFLAGS = -Wall -Wextra -Werror
AR = ar -rc
CC = cc
SRC= pipexutils1.c pipexutils2.c pipexutils3.c pipexutils.c pipex.c
OBJ=$(SRC:.c=.o)
all:$(NAME)
$(NAME):$(OBJ)
$(CC) $(CFLAGS) $? -o $(NAME)
clean:
rm -rf $(OBJ)
fclean: clean
rm -f $(NAME)
ct: fclean
rm -f test
test: all
$(CC) $(CFLAGS) main.c $(NAME) -o test
re: fclean all
.PHONY: all clean fclean re test ct