-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 1.62 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dgonor <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/04 15:56:34 by dgonor #+# #+# #
# Updated: 2017/11/04 16:28:43 by dgonor ### ########.fr #
# #
# **************************************************************************** #
NAME = lem-in
LIB = ./libft/libft.a
FLAGS = -Wall -Wextra -Werror
SRCS = del_data.c lem_in.c move_objects.c pars_lem_in.c set_data.c \
shortest_path.c valid_data.c adjacency_list.c check_data.c \
ways_management.c del_management.c print_data.c \
OBJS = $(SRCS:.c=.o)
HEADERS = ft_lem.h
all: $(NAME)
$(NAME): $(OBJS) $(LIB)
@gcc -c $(SRCS) $(FLAGS)
@gcc $(OBJS) $(LIB) -o $(NAME)
@echo "\x1b[35mYour PROGRAM $(NAME) has been successfully created!\x1b[0m"
$(LIB):
@make -C libft
clean:
@make -C libft clean
@rm -rf $(OBJS)
@echo "\x1b[36mObject files $(NAME) have been deleted!\x1b[0m"
fclean: clean
@make -C libft fclean
@rm -rf $(NAME)
@echo "\x1b[32mExecutable files $(NAME) have been deleted!\x1b[0m"
re: fclean all
.PHONY: all clean fclean re