-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·45 lines (38 loc) · 1.51 KB
/
Copy pathMakefile
File metadata and controls
executable file
·45 lines (38 loc) · 1.51 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
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: flagoutt <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2014/11/03 16:32:10 by flagoutt #+# #+# #
# Updated: 2015/03/17 15:56:10 by flagoutt ### ########.fr #
# #
#******************************************************************************#
FLAGS = -Wall -Wextra -Werror
SRCS = srcs/ft_init.c \
srcs/ft_mktable.c \
srcs/mlx_putline.c \
srcs/mlx_putgrid.c \
srcs/mlx_putpxl_img.c \
srcs/mlx_create_img.c \
srcs/mlx_key_hooks.c \
srcs/ft_destroy.c \
srcs/mlx_mouse_hooks.c
SRCO = $(SRCS:.c=.o)
INCLUDE = -Iincludes/
LIBS = -L/usr/X11/lib -lmlx -lXext -lX11 -Llibft/ -lft -lm
NAME = fdf
all: $(NAME)
$(NAME):
make -C libft/
@echo "##### Compile tooooouuuuut #####"
gcc -o $(NAME) main.c $(SRCS) $(FLAGS) $(INCLUDE) $(LIBS)
clean:
make clean -C libft/
rm -f $(SRCO)
fclean: clean
make fclean -C libft/
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re