-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1.31 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
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: sramos <[email protected]> +#+ #
# +#+ #
# Created: 2024/04/29 17:08:34 by sramos #+# #+# #
# Updated: 2024/08/22 10:07:58 by sramos ######## odam.nl #
# #
# **************************************************************************** #
NAME = pipex
SRC = pipex.c\
pipex_utils.c
OBJ = $(SRC:%.c=%.o)
CC = cc
RM = rm -f
CFLAGS = -Wall -Werror -Wextra -Ilibft -g3
LIBFT_PATH = ./libft
LIBFT = $(LIBFT_PATH)/libft.a
all: $(NAME)
$(NAME): $(OBJ) $(LIBFT)
$(CC) $(CFLAGS) $(SRC) -Llibft -lft -o $(NAME)
$(OBJ): %.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(LIBFT):
make -C $(LIBFT_PATH) all
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY = all, clean, fclean, re