-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.48 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mfortin <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/11/23 20:51:06 by mfortin #+# #+# #
# Updated: 2016/03/29 13:18:11 by mfortin ### ########.fr #
# #
# **************************************************************************** #
FLAG = -Wall -Wextra -Werror
NAME = wolf3d
SRC = src/main.c \
src/parsing.c \
src/wolf.c \
src/key_biding.c \
src/action_biding.c \
src/mapping.c \
src/utilities.c
OBJ = $(SRC:.c=.o)
MLX = -lmlx -framework OpenGL -framework AppKit
all: $(NAME)
$(NAME): $(OBJ)
@make -k -C libft
@gcc $(FLAG) -o $(NAME) $(OBJ) $(MLX) -Llibft -lft
@echo "$(NAME) created"
%.o: %.c
@gcc $(FLAG) -c $< -o $@
clean:
@make clean -k -C libft
@rm -f $(OBJ)
@echo "$(NAME) *.o deleted"
fclean: clean
@make fclean -k -C libft
@rm -f $(NAME)
@echo "$(NAME) deleted"
re: fclean all
.PHONY: all, clean, fclean, re