-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.53 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: Jburlama <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/03/12 19:07:05 by Jburlama #+# #+# #
# Updated: 2024/04/02 15:47:11 by Jburlama ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
CFLAGS = -Wall -Wextra -Werror
LIB = -Lminilibx-linux -lmlx -lXext -lX11 -Iminilibx-linux
RM = rm -f
CFILES = main.c utils.c events.c render_sets.c zoom.c fractols.c fern.c
MINILIBX = minilibx-linux/libmlx_Linux.a
MINILIBX_REP = minilibx-linux
LIBFT = libft/libft.a
all: ${NAME}
${NAME}: ${CFILES} ${MINILIBX} ${LIBFT}
@${CC} $^ ${LIB} ${CFLAGS} -o $@
${MINILIBX}: ${MINILIBX_REP}
@rm -rf minilibx-linux/.git
@make -C $^
${MINILIBX_REP}:
@git clone https://github.com/42Paris/minilibx-linux.git
${LIBFT}: libft
@make -C libft
bonus: ${NAME}
clean:
@make clean -C libft
fclean:
@make fclean -C libft
@${RM} ${NAME}
re: fclean all