-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 1.28 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ecortes- <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/09/28 16:26:21 by ecortes- #+# #+# #
# Updated: 2024/10/07 15:52:22 by ecortes- ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Iinclude -Iminilibx-linux -Wall -Wextra -Werror
LDFLAGS = -Lminilibx-linux -lmlx_Linux -lX11 -lXext
SRC = src/main.c src/inti.c src/render.c src/utils.c src/events.c
OBJ = $(SRC:.c=.o)
NAME = fractol
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re