-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 1.33 KB
/
Makefile
File metadata and controls
40 lines (29 loc) · 1.33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jalwahei <jalwahei@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/28 15:25:35 by jalwahei #+# #+# #
# Updated: 2023/02/07 20:04:09 by jalwahei ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
SRCS = main.c add_images.c so_long_val.c so_long_move.c so_valid.c
OBJS = $(SRCS:.c=.o)
CFLAGS = -Wall -Wextra -Werror
LIBFT = libft
all: $(NAME)
$(NAME): $(OBJS)
make -C ./libft
make -C ./ft_printf
make -C ./mlx
$(CC) $(CFLAGS) $(SRCS) -framework OpenGL -framework AppKit ./mlx/libmlx.a ./libft/libft.a ./ft_printf/libftprintf.a -o $(NAME)
%.o: %.c
cc $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all