-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rvan-der <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/12/11 14:44:06 by rvan-der #+# #+# #
# Updated: 2017/04/08 15:17:44 by rvan-der ### ########.fr #
# #
# **************************************************************************** #
NAME = lem-in
CC = gcc
CFLAG = -Wall -Werror -Wextra
SRC = find_paths.c main_lem_in.c read_map.c set_flow_info.c get_room.c \
path_list.c read_rooms.c set_tools.c check_input.c path_tools.c \
room_list.c delete_ft.c play.c select_paths.c error_ft.c error2_ft.c \
link_tools.c read_links.c select_tools.c select_best_set.c check_args.c \
color_output.c split_lines.c
OBJ = $(SRC:.c=.o)
.SUFFIXES:
all: $(NAME)
$(NAME): $(SRC)
make -C libft
$(CC) $(CFLAG) -c $(SRC)
$(CC) $(OBJ) -Llibft -lft -o $(NAME)
clean:
make -C libft clean
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
rm -f libft/libft.a
re: fclean all