-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 1.3 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
48
49
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: olahmami <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/19 22:35:21 by olahmami #+# #+# #
# Updated: 2023/02/14 13:02:44 by olahmami ### ########.fr #
# #
# **************************************************************************** #
CC = cc
NAME = pipex
CFLAGS = -Wall -Wextra -Werror
SRCS = utils.c \
pipex.c
LIBS = libft.a
INCLUDES = $(LIBS:%=Libft/libft.a)
OBJ = ${SRCS:.c=.o}
all: $(LIBS) $(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) $(INCLUDES) -o $(NAME)
libs: $(LIBS)
$(LIBS):
@make -C Libft
clean:
@rm -f ${OBJ}
@make -C Libft clean
fclean: clean
@rm -rf $(NAME)
@rm -rf $(INCLUDES)
@make -C Libft fclean
re: fclean all
.PHONY: all