-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1.49 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: reda-con <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/11/28 19:03:01 by reda-con #+# #+# #
# Updated: 2018/12/07 11:09:18 by reda-con ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
CC = gcc
CFLAGS = -Wall -Werror -Wextra
SRC = main.c fillit.c map.c get_pieces.c check_piece.c point.c norme.c
INC = fillit.h
OBJ = main.o fillit.o map.o get_pieces.o check_piece.o point.o norme.o
all: $(NAME)
$(NAME):
@cd libft ; $(MAKE) -f Makefile
@$(CC) $(CFLAGS) -c $(SRC)
@$(CC) $(CFLAGS) $(OBJ) -o $(NAME) -L./libft -lft
@echo "\x1b[32;1;4m[Fillit Compiled]\n\033[0m"
clean:
@cd libft ; rm -rf obj/
@rm -rf $(OBJ)
@echo "\x1b[31mObjects Cleared\n\033[0m"
fclean: clean
@cd libft ; rm -f libft.a
@rm -rf $(NAME)
@echo "\x1b[31m$(NAME) Cleared\n \033[0m"
re: fclean all
.PHONY: all clean flcean re