-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (32 loc) · 1.42 KB
/
Makefile
File metadata and controls
46 lines (32 loc) · 1.42 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
46
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cgleason <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/08/05 19:47:07 by cgleason #+# #+# #
# Updated: 2018/08/29 12:23:55 by cgleason ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
CC = @gcc
CFLAGS = -Wall -Wextra -Werror
LIBFT = -L./libft -lft
MINILIBX = -L./minilibx_macos -lmlx -framework OpenGL -framework AppKit
SRC = main.c interpolators.c press_and_click.c colors.c helpers.c hooks.c \
draw_squad.c
OBJS = $(SRC:.c=.o)
$(NAME): libft/libft.a $(OBJS) fdf.h
$(CC) $(CFLAGS) $(LIBFT) $(MINILIBX) $(OBJS) -o $(NAME)
libft/libft.a:
@cd libft && make
.PHONY: clean fclean all re
clean:
@rm -f $(OBJS)
@cd libft && make clean
fclean: clean
@rm -f $(NAME)
@cd libft && make fclean
all: $(NAME)
re: fclean all