-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 698 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 698 Bytes
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
CC=cc
CFLAGS=-Werror -Wextra -Wall -I libft/includes -I minilibx_macos -I includes
LFLAGS=-L libft/ -lft -L minilibx_macos/ -lmlx -framework OpenGL -framework AppKit
NAME=fdf
SRC=fdf.c file_reader.c rotate.c convert.c
OBJ=$(SRC:%.c=%.o)
.PHONY: clean fclean all re norm norme debug
VPATH = src obj libft/includes includes
$(NAME): $(OBJ)
@make -C libft/
@make -C minilibx_macos/
@$(CC) -o $(NAME) obj/* $(LFLAGS)
@echo done
all: $(NAME)
%.o: %.c
@mkdir -p obj
$(CC) -g $(CFLAGS) -o obj/$@ -c $<
clean:
@rm -rf obj/
@make -C libft clean
@make -C minilibx_macos clean
fclean: clean
rm -f $(NAME)
make -C libft fclean
re: fclean all
norm:
norminette src/. includes/*
norme: norm