-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (44 loc) · 2.04 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: atoulous <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/06/17 21:56:41 by atoulous #+# #+# #
# Updated: 2016/09/27 16:42:49 by atoulous ### ########.fr #
# #
# **************************************************************************** #
NAME = wolf3d
SRC = Sources/events.c Sources/events_mouse.c Sources/events_moves.c \
Sources/floor_raycasting.c Sources/ft_exit_free.c Sources/ft_minecraft.c \
Sources/load_textures.c Sources/lunch_wolf3d.c Sources/parse_map.c \
Sources/wall_raycasting.c Sources/wolf3d.c Sources/draw_weapons.c \
Sources/draw_options.c
OBJ = $(SRC:.c=.o)
CF = gcc -Wall -Werror -Wextra
LIBS = -LLibs/libft/ -LLibs/minilibx_macos/
$(NAME): $(OBJ)
@echo
@echo "\033[33m @@@@\033[0m"
@echo "\033[33m@ @ @@@ @ @@@@@ @ @@@\033[0m"
@echo "\033[33m@ @ @ @ @ @ @@@ @ @\033[0m"
@echo "\033[33m@ @ @ @ @ @ @@@ @ @ @\033[0m"
@echo "\033[33m@ @ @ @ @ @ @ @ @ @ @\033[0m"
@echo " \033[33m@@ @@ @@@ @@@@@ @ @@@@@ @@@@\033[0m by atoulous"
@echo
@make -C Libs/libft
@make -C Libs/minilibx_macos
@$(CF) $(LIBS) -lft -lmlx -framework OpenGL -framework AppKit -o $@ $^
@echo "\033[32mwolf3d well compiled\033[0m"
all: $(NAME)
%.o: %.c
@$(CF) -o $@ -c $<
clean:
@make clean -C Libs/libft
@make clean -C Libs/minilibx_macos
@rm -f $(OBJ)
fclean: clean
@make fclean -C Libs/libft
@rm -f $(NAME)
re: fclean all