-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 1.38 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: abarriel <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/19 11:33:06 by abarriel #+# #+# #
# Updated: 2017/03/20 09:24:49 by abarriel ### ########.fr #
# #
# **************************************************************************** #
NAME = lem-in
SRC = lemin.c parser.c room.c tube.c algo.c print.c path.c tools.c send.c algo_.c
OBJ = $(addprefix srcs/,$(SRC:.c=.o))
INCLUDES = ./includes/lemin.h
CFLAGS = -Wall -Wextra -Werror -I./includes/ -Ilibft/includes/
all: makefile libft $(NAME)
libft:
@make -C libft
$(NAME): libft $(OBJ) $(INCLUDES)
@gcc $(OBJ) -o $(NAME) -Llibft -lft
clean:
@make clean -C libft
@rm -rf $(OBJ)
fclean: clean
@rm -rf $(NAME) $(OBJ)
@make fclean -C libft
re: fclean all
.PHONY: clean fclean re libft all