-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·48 lines (35 loc) · 1.53 KB
/
Makefile
File metadata and controls
executable file
·48 lines (35 loc) · 1.53 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: iariss <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/10/15 18:57:04 by iariss #+# #+# #
# Updated: 2021/01/21 17:12:40 by iariss ### ########.fr #
# #
# **************************************************************************** #
NAME = cub3D.a
EXEC = cub3D
CC = gcc
CFLAGS = -Wall -Werror -Wextra
LIBFT = libft/libft.a
LIBS = -lmlx -framework OpenGL -framework AppKit -lm
SRC = tea.c get_next_line.c get_next_line_utils.c table_utils.c parse.c init.c check.c\
parse2.c player.c ps.c ray.c render.c bmp.c error.c sprite.c projection.c ray2.c ray3.c left.c\
OBJ = $(SRC:.c=.o)
all : $(LIBFT) $(NAME)
$(LIBFT):
make -C libft
$(NAME): $(OBJ)
ar rcs $(NAME) $(OBJ) libft/*.o
$(CC) $(CFLAGS) $(LIBS) $(SRC) $(NAME) -o $(EXEC)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ)
make clean -C libft
fclean: clean
rm -f $(NAME)
make fclean -C libft
re: fclean all