-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (46 loc) · 1.69 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
50
51
52
53
54
55
56
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dstepane <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/03/02 17:27:03 by dstepane #+# #+# #
# Updated: 2019/03/02 17:27:05 by dstepane ### ########.fr #
# #
# **************************************************************************** #
NAME = dstepane.filler
CC = gcc
FLAGS = -Wall -Wextra -Werror
HEAD = ./filler.h
SRC = main.c \
parser.c \
purgatory.c \
heat_map.c \
algorithm.c
OBJS = $(SRC:.c=.o)
LIBFT = libft/libft.a
VISUALS = visuals/visualizer
.PHONY: all clean fclean re
all: $(NAME)
$(NAME): $(LIBFT) $(OBJS) $(VISUALS)
@$(CC) $(FLAGS) $(OBJS) $(LIBFT) -o $(NAME)
@echo "\033[32m\033[100mFiller executable compiled.\033[0m\033[49m"
$(LIBFT):
@make -C libft
$(VISUALS):
@make -C visuals
$(OBJS):
@$(CC) $(FLAGS) -c $(SRC)
@echo "\033[32mFiller object files compiled.\033[0m"
clean:
@rm -f $(OBJS)
@make clean -C libft
@make clean -C visuals
@echo "\033[31mFiller object files removed.\033[0m"
fclean: clean
@rm -f $(NAME)
@make fclean -C libft
@make fclean -C visuals
@echo "\033[31mFiller executable removed.\033[0m"
re: fclean all