-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 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
42
43
44
45
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vlvereta <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/18 13:48:43 by vlvereta #+# #+# #
# Updated: 2018/04/18 13:49:06 by vlvereta ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
NAME = lem-in
OBJ = srcs/lem_in.o srcs/check_input_lines.o srcs/get_rooms_list.o \
srcs/farm_crossing.o srcs/helpers.o
FLAGS = -Wall -Wextra -Werror
LIBFT = make -C $(LIB_FOLDER)
LIB_FOLDER = ./libft/
all: $(NAME)
$(NAME): $(OBJ)
@ $(LIBFT)
@ $(CC) -o $(NAME) $(OBJ) -L$(LIB_FOLDER) -lft
%.o: %.c
@ $(CC) -o $@ -c $< -Iincludes $(FLAGS)
clean:
@ make -C $(LIB_FOLDER) clean
@ rm -f $(OBJ)
fclean: clean
@ make -C $(LIB_FOLDER) fclean
@ rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re