-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (47 loc) · 1.83 KB
/
Makefile
File metadata and controls
67 lines (47 loc) · 1.83 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tarchimb <tarchimb@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/17 11:24:39 by tarchimb #+# #+# #
# Updated: 2021/12/11 09:05:17 by tarchimb ### ########.fr #
# #
# **************************************************************************** #
SRCS = srcs/ft_parsing.c \
srcs/ft_parsing_2.c \
srcs/ft_window.c \
srcs/ft_convert_map_to_iso.c \
srcs/ft_hooks.c \
OBJS = ${SRCS:.c=.o}
INCLUDES = Includes/fdf.h \
Includes/libft.h \
Minilibx/mlx.h \
LIBINCLUDES = -IIncludes -IMinilibx
CC = gcc
CFLAGS = -Wall -Wextra -Werror -g -fsanitize=address
NAME = ./libfdf.a
MLXFLAGS = -framework OpenGL -framework AppKit
LIBS = ./libmlx.dylib \
./libft.a \
${NAME} \
RM = rm -rf
all: ${NAME} gc
%.o: %.c ${INCLUDES}
${CC} ${CFLAGS} ${LIBINCLUDES} -c $< -o $@
gc: ${LIBS}
${CC} ${CFLAGS} ${MLXFLAGS} ${LIBS} ${LIBINCLUDES} fdf.c -o fdf
$(NAME): ${OBJS} ${INCLUDES}
make -C ./Minilibx
make -C ./Libft
ar rcs ${NAME} ${OBJS}
clean:
@${RM} ${OBJS} ${OBJSBONUS}
make clean -C ./Minilibx
make clean -C ./Libft
fclean: clean
make fclean -C ./Libft
@${RM} ${LIBS}
re: fclean all
.PHONY: all clean fclean re