-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.29 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: hgabriel <hgabriel@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/06/16 17:25:36 by hgabriel #+# #+# #
# Updated: 2022/07/09 16:39:17 by hgabriel ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
GCC = gcc -Wall -Wextra -Werror
# MANDATORY
SRCS = pipex.c \
pipexutils.c \
ft_split.c \
ft_strlcpy.c \
ft_strnstr.c \
ft_strchr.c \
ft_strjoin.c \
ft_strlen.c \
ft_strdup.c
SRCSDIR = srcs/
OBJS = ${SRCS:.c=.o}
OBJSDIR = objs/
all : ${NAME}
${NAME}:
$(GCC) $(addprefix $(SRCSDIR), $(SRCS)) -o $(NAME)
clean:
rm -rf $(NAME)
re: clean all
.PHONY: all clean fclean re