-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (36 loc) · 1.43 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: mring <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/04/02 15:29:54 by mring #+# #+# #
# Updated: 2024/05/10 16:30:35 by mring ### ########.fr #
# #
# **************************************************************************** #
NAME := pipex
SRCS := pipex.c pipex_util.c pipex_util2.c
CFLAGS := -Wall -Wextra -Werror
CC := @cc
LIBS := ft_libft/libft.a
OBJS := $(SRCS:.c=.o)
$(NAME): $(OBJS) $(LIBS)
@echo building pipex...
$(CC) $(CFLAGS) -o $@ $^
$(LIBS):
@make -C ft_libft
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@ -g
all: ${NAME}
clean:
@echo cleaning pipex...
@rm -f ${OBJS}
@make clean -C ft_libft
fclean: clean
@echo fcleaning pipex...
@rm -f ${NAME} ${OBJS}
@make fclean -C ft_libft
re: fclean all
.PHONY: all clean fclean re run awk
# informs comp that these are not files