-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (35 loc) · 1.45 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vroussea <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/11/24 09:55:27 by vroussea #+# #+# #
# Updated: 2016/07/25 17:12:44 by vroussea ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
INCLUDES = libft/libft.a
HEADER = fractol.h
MKINC = make -C libft/
MLX = -lmlx -framework OpenGL -framework AppKit
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SOURCES = main.c event.c draw.c fractals.c tools.c pixel_test.c
OBJS = $(SOURCES:.c=.o)
all : $(NAME)
$(NAME) : $(OBJS) $(HEADER) Makefile
$(MKINC)
$(CC) $(CFLAGS) -c $(SOURCES)
$(CC) $(CFLAGS) -o $(NAME) $(OBJS) $(INCLUDES) $(MLX)
norm :
norminette $(SOURCES) fractol.h
meteo :
curl http://wttr.in/Paris
clean :
-rm -f $(OBJS)
fclean : clean
$(MKINC) fclean
-rm -f $(NAME)
re : fclean all