-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.42 KB
/
Makefile
File metadata and controls
45 lines (36 loc) · 1.42 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kikiz <kikiz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/03/08 01:09:41 by kikiz #+# #+# #
# Updated: 2025/03/09 18:13:36 by kikiz ### ########.fr #
# #
# **************************************************************************** #
NAME = pipex
CFLAGS = -Wall -Wextra -Werror
CC = cc
MAKEFLAGS += --no-print-directory
PRINTF = printf/libftprintf.a
LIBFT = libft/libft.a
SRCS = pipex.c utils.c error.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(SRCS)
@echo "compiling..."
@make -C ./libft -s
@make -C ./printf -s
@$(CC) $(CFLAGS) -o $(NAME) $(SRCS) $(LIBFT) $(PRINTF)
clean:
@echo "🧹clean..."
@rm -f $(OBJS)
@make -C libft clean
@make -C printf clean
fclean: clean
@rm -f $(NAME)
@make -C libft fclean
@make -C printf fclean
re: fclean all
.PHONY: all clean fclean re