-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (39 loc) · 1.51 KB
/
Makefile
File metadata and controls
45 lines (39 loc) · 1.51 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fcharbon <fcharbon@student.42london.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/16 19:56:15 by fcharbon #+# #+# #
# Updated: 2024/12/19 14:34:45 by fcharbon ### ########.fr #
# #
# **************************************************************************** #
NAME := fdf
CC := gcc
CFLAGS := -Wall -Werror -Wextra -g
SRCS := src/map_reading.c \
src/coords_maxxing.c \
src/point_scaling.c \
src/maths_in_3D.c \
src/print_that_jawn.c \
src/linecon.c \
src/breadham.c \
src/mlx_business.c \
src/freeallthemandem.c \
src/rotation_and_translation.c \
src/colours.c \
src/main.c
INCLUDE := fdf.h
OBJ := $(SRCS:.c=.o)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(NAME): $(OBJ)
$(CC) $(OBJ) -lft -Lincludes/libft -Lincludes/mlx_linux -lm -lmlx_Linux -lXext -lX11 -lz -o $(NAME)
all: $(NAME)
clean:
/bin/rm -f $(OBJ)
fclean: clean
/bin/rm -f $(NAME) mlxtest
re: fclean all
.PHONY: all clean fclean re