-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 1.2 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pvan-erp <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/04/04 20:50:47 by pvan-erp #+# #+# #
# Updated: 2017/04/04 20:50:49 by pvan-erp ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
SRC = main.c fractol.c sdl_driver.c sdl_handlers.c draw.c julia.c
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror `sdl2-config --cflags --libs`
.PHONY: all clean fclean re
all: $(NAME)
$(NAME): $(SRC)
$(CC) -o $(NAME) $(SRC) $(CFLAGS)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all