-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (27 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: apuchill <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/04/06 17:29:07 by apuchill #+# #+# #
# Updated: 2021/03/07 18:43:38 by apuchill ### ########.fr #
# #
# **************************************************************************** #
PROJECT_DIR = ../ft_printf/
LIB = -L$(PROJECT_DIR) -lftprintf
CC = clang
CFLAGS = -Wall -Wextra -Werror
RM = /bin/rm -f
NAME = a.out
all: $(NAME)
$(NAME):
@make re -C $(PROJECT_DIR)
@$(CC) $(CFLAGS) -o $(NAME) main.c $(LIB)
@sh test_header.sh && ./$(NAME) && sh test_footer.sh
# @echo "" && cd $(PROJECT_DIR) && make fclean
fclean: clean
@$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re