-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 1.39 KB
/
Makefile
File metadata and controls
41 lines (34 loc) · 1.39 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dwalda-r <dwalda-r@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/12/11 17:47:48 by dwalda-r #+# #+# #
# Updated: 2019/08/07 18:07:10 by dwalda-r ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
FLAGS = -Wall -Werror -Wextra
SRC_DIR = src/
INC_DIR = includes/
LIB_DIR = libft/
LIB_NAME = libft.a
SRCS = *.c
INCS = *.h
OBJ = $(SRCS:.c=.o)
NAME = fdf
all: $(LIB_NAME) $(NAME)
$(LIB_NAME):
make -C $(LIB_DIR) $(LIB_NAME)
$(NAME): $(LIB_NAME)
$(CC) -c $(SRC_DIR)$(SRCS) -I $(INC_DIR) -I $(LIB_DIR) $(FLAGS)
$(CC) $(OBJ) -o $(NAME) -L $(LIB_DIR) -lft -lmlx -framework OpenGL -framework AppKit
clean:
make -C $(LIB_DIR) clean
rm -f $(OBJ)
fclean: clean
make -C $(LIB_DIR) fclean
rm -f $(NAME)
re: fclean all