-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.54 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: tluzing <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/09/18 17:53:28 by tluzing #+# #+# #
# Updated: 2018/09/18 18:00:53 by tluzing ### ########.fr #
# #
# **************************************************************************** #
NAME= lem_in
CFLAGS = -Wall -Wextra -Werror
SRCS = srcs/is_error.c srcs/initialize_struct.c srcs/lem_in.c srcs/create_list.c srcs/movement.c\
srcs/store_info.c srcs/solution.c
OBJS = is_error.o initialize_struct.o lem_in.o create_list.o movement.o store_info.o solution.o
HEADERS = -I libft/includes -I includes/
LIB = libft/libft.a
$(NAME) :
@make fclean -C libft/
@make -C libft/
@make clean -C libft/
@gcc $(CFLAGS) -c $(SRCS) $(HEADERS)
@gcc $(CFLAGS) $(OBJS) -o $(NAME) $(LIB)
@make clean
@echo "\x1B[32mlem_in compiled successfully_axis\x1B[1m"
all : $(NAME)
clean :
@rm -rf $(OBJS)
fclean : clean
@make fclean -C libft/
@rm -rf $(NAME)
re : fclean all