-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (45 loc) · 1.67 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jfelty <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/09/25 23:24:55 by jfelty #+# #+# #
# Updated: 2019/11/30 17:26:21 by jfelty ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
CC = gcc
CFLAGS = -Wall -Wextra -Werror
MLXFLAGS = -framework OpenGL -framework AppKit
MLXLIB = minilibx_macos/libmlx.a
LIBFT = sources/libft/libft.a
SRC = sources/fdf.c \
sources/get_shit.c \
sources/allign_shit.c \
sources/start_shit.c \
sources/draw_shit.c \
sources/hook_shit.c \
sources/line_shit.c \
sources/re_shit.c
all: $(NAME)
$(NAME): lib mlx out
mlx:
@make -C minilibx_macos
lib:
@make -C sources/libft
@echo "libft complete"
#uses make command in library
out:
@$(CC) $(CFLAGS) $(SRC) $(MLXLIB) $(LIBFT) $(MLXFLAGS) -o fdf
@echo "FdF Generation Complete"
clean:
@rm -f $(OBJ)
@make -C sources/libft/ clean
@make -C minilibx_macos/ clean
fclean: clean
@rm -f $(NAME)
@make -C sources/libft/ fclean
re: fclean all
.PHONY: lib out clean all fclean re fdf mlx