-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.53 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: melkholy <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/08 21:08:25 by melkholy #+# #+# #
# Updated: 2022/09/13 00:10:34 by melkholy ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
NAME = pipex
CDIR = .
LIBFTDIR = ./ft_printf/
LIBFT = ./ft_printf/libftprintf.a
CFLAGS = -Wall -Werror -Wextra
CFILES = pipex.c pipex_processing.c pipex_helper.c pipex_utils.c
BFILES = pipex_bonus.c pipex_processing_bonus.c pipex_helper_bonus.c \
pipex_utils_bonus.c pipex_heredoc_bonus.c
all : $(NAME)
$(NAME) : $(LIBFT)
@$(CC) $(CFLAGS) -I$(CDIR) $(CFILES) $(LIBFT) -o $(NAME)
bonus : $(LIBFT)
@$(CC) $(CFLAGS) -I$(CDIR) $(BFILES) $(LIBFT) -o $(NAME)
$(LIBFT) :
@make -C $(LIBFTDIR)
clean :
@make clean -C $(LIBFTDIR)
@rm -f $(NAME)
fclean : clean
@make fclean -C $(LIBFTDIR)
@rm -f $(NAME)
re : fclean all
.PHONY : all bonus clean fclean re