aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a2d0fb8..18e2181 100644
--- a/Makefile
+++ b/Makefile
@@ -5,23 +5,23 @@ CC = gcc
CCFLAGS = -I$(LIBFT_PATH) -I$(MINILIBX_PATH) -I. -Wall -Wextra #-Werror
LDFLAGS = -L$(LIBFT_PATH) -lft \
-L$(MINILIBX_PATH) -lmlx \
- -framework OpenGL -framework AppKit
+ -framework OpenGL -framework AppKit -lm
NAME = cub3D
SRC = main.c event.c parse/parse.c parse/parse_east_texture.c \
parse/parse_north_texture.c parse/parse_south_texture.c \
parse/parse_west_texture.c parse/parse_ceilling_color.c \
parse/parse_floor_color.c parse/parse_resolution.c \
- parse/parse_sprite_texture.c
+ parse/parse_sprite_texture.c graphics.c
OBJ = $(SRC:.c=.o)
INCLUDE = cub3d.h
all: libft_all minilibx_all $(NAME)
-$(NAME): $(OBJ) $(INCLUDE)
+$(NAME): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ)
-%.o: %.c
+%.o: %.c $(INCLUDE)
$(CC) $(CCFLAGS) -c -o $@ $<
clean: libft_clean minilibx_clean