-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (34 loc) · 1.52 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
#******************************************************************************#
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: pacovali <marvin@codam.nl> +#+ #
# +#+ #
# Created: 2019/01/01 00:00:42 by pacovali #+# #+# #
# Updated: 2019/01/01 00:01:42 by pacovali ######## odam.nl #
# #
#******************************************************************************#
NAME = lem-in
SRCS = assign_distance.c assign_paths.c clean_map.c clean_paths.c \
crossing_paths.c distinct_paths.c main_utils.c main.c overlaying_paths.c \
run_ants.c set_map.c
MKOBJ = @gcc -c -Wall -Wextra -Werror
HDRS = -I libft/
OBJS = assign_distance.o assign_paths.o clean_map.o clean_paths.o \
crossing_paths.o distinct_paths.o main_utils.o main.o overlaying_paths.o \
run_ants.o set_map.o
LFT = libft/libftprintf.a
MKEXE = @gcc -o
all: $(NAME)
$(NAME):
@make -C libft
$(MKOBJ) $(SRCS) $(HDRS) -I.
$(MKEXE) $(NAME) $(OBJS) $(LFT)
clean:
@make -C libft clean
@rm -f $(OBJS) *~
fclean: clean
@make -C libft fclean
@rm -f $(NAME)
re: fclean all