-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 1.34 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: anarodri <anarodri@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/07/02 11:47:41 by anarodri #+# #+# #
# Updated: 2022/07/08 17:39:27 by anarodri ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
SRC = $(addprefix src/, pipex.c process.c utils.c free.c error.c)
OBJ = $(SRC:.c=.o)
CC = gcc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror -g -I./include/
LIBFT = cd ./libft && make
LIBINC = ./libft/libft.a
all: $(NAME)
$(NAME): $(OBJ)
$(LIBFT)
$(CC) $(CFLAGS) -o $(NAME) $(OBJ) $(LIBINC)
clean:
@make clean -C ./libft
$(RM) $(OBJ)
fclean: clean
@make fclean -C ./libft
$(RM) $(NAME)
re: fclean $(NAME)
.PHONY: all clean fclean re