Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (44 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
62 lines (44 loc) · 1.73 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bhugh-be <bhugh-be@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/04/05 18:21:10 by bhugh-be #+# #+# #
# Updated: 2019/04/21 18:27:26 by bhugh-be ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
CFLAGS = -Wall -Wextra -Werror
LIB_MLX = -lmlx -framework OpenGL -framework Appkit
LIB_PORTAUDIO = -L/Users/bhugh-be/.brew/lib -lportaudio
LIB_PATH = ./libft
LIB = ./libft/libft.a
SRC = fdf.c\
wu_algorithm.c\
validation.c\
drawmatrix.c\
key_hooks.c\
mouse_hooks.c\
gradient.c\
equalizer.c
INCLUDES = -I ./includes -I ./libft/includes -I/Users/bhugh-be/.brew/include
OBJ_DIR = ./objs
OBJ = $(addprefix $(OBJ_DIR)/,$(SRC:.c=.o))
SRC_DIR = ./srcs
all: $(OBJ_DIR) $(NAME)
$(OBJ_DIR):
@mkdir -p $(OBJ_DIR)
$(OBJ_DIR)/%.o:$(SRC_DIR)/%.c
$(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
$(NAME): $(OBJ)
@make -C $(LIB_PATH)
@gcc -g $(CFLAGS) $(OBJ) $(LIB) -o $(NAME) $(INCLUDES) $(LIB_MLX) $(LIB_PORTAUDIO)
clean:
@make clean -C $(LIB_PATH)
@rm -f $(OBJ)
fclean: clean
@make fclean -C $(LIB_PATH)
@rm -f $(NAME)
re: fclean all