-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 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
43
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rlandolt <rlandolt@student.42lisboa.com +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/09/26 13:29:52 by rlandolt #+# #+# #
# Updated: 2024/01/31 12:47:29 by rlandolt ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
SRC_PATH = ./srcs
SRC = pipex.c \
$(SRC_PATH)/strings.c \
$(SRC_PATH)/split.c \
$(SRC_PATH)/error.c \
$(SRC_PATH)/path.c \
$(SRC_PATH)/process.c \
SANITIZER = -g -fsanitize=address
CC = cc
CFLAGS = -Wall -Wextra -Werror
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) -o $(NAME) $(OBJ)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
debug: CFLAGS += ${SANITIZER}
debug: re
re: fclean all
.PHONY: all, bonus, clean, fclean, re