From 975ec3edd112c1a7908c0d97dc49592a22076b71 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 16 Nov 2019 12:45:44 +0100 Subject: Basic render of the map --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit