-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ybachar <ybachar@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/11 19:42:52 by ybachar #+# #+# #
# Updated: 2023/01/16 21:52:20 by ybachar ### ########.fr #
# #
# **************************************************************************** #
SRCS = get_next_line.c get_next_line_utils.c hooks.c map_checker.c so_long_util.c so_long.c so_long_util_t.c
OBJS = ${SRCS:.c=.o}
NAME = so_long
CC = gcc
CFLAGS = -Wall -Wextra -Werror -lmlx -framework OpenGL -framework AppKit
RM = rm -f
$(NAME) : ${SRCS}
make -C ft_printf
${CC} ${CFLAGS} ${SRCS} ./ft_printf/libftprintf.a -o so_long
all: ${NAME}
clean:
make clean -C ft_printf
${RM} so_long
fclean: clean
make fclean -C ft_printf
re: fclean all