-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (43 loc) · 1.66 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
48
49
50
51
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bbrady <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/03/22 13:48:10 by bbrady #+# #+# #
# Updated: 2017/03/22 14:06:03 by bbrady ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
CFLAGS = -Wall -Wextra -Werror -c -Iincludes
CC = gcc
FILE = back_track_helper.c\
back_track.c\
extra_one.c\
extra_two.c\
file_io.c\
fill_matched_pieces_a_e.c\
fill_matched_pieces_f_j.c\
fill_matched_pieces_k_o.c\
fill_matched_pieces_p_s.c\
grid_file.c\
grid_struct.c\
main.c\
piece_filling.c\
piece_matching.c\
OBJ = $(FILE:.c=.o)
SRC_DIR = ./src/
SRC_FILES = $(addprefix $(SRC_DIR),$(FILE))
$(NAME): ./includes/header.h $(SRC_FILES)
@echo "\033[32m["$(NAME)"] compiling "$(NAME)"...\033[0m"
@$(CC) $(CFLAGS) $(SRC_FILES)
@$(CC) $(OBJ) -o fillit
all: $(NAME)
clean:
@echo "\033[31m["$(NAME)"] deleting .o files ...\033[0m"
@rm -f $(OBJ)
fclean: clean
@echo "\033[31m["$(NAME)"] deleting binary "$(NAME)"...\033[0m"
@rm -f $(NAME)
re: fclean all