summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-10 12:24:33 +0200
committerDominik Kaiser2024-05-10 12:24:33 +0200
commit461f71e2660e6286ffc757ca6b7077c70c80b6cf (patch)
tree4a65d2387c6964ee9357d1ad17e7f9f5094ee99e
parent7e992a69a2031f630f1e30b0d864c0e4e7d32067 (diff)
downloadso_long-461f71e2660e6286ffc757ca6b7077c70c80b6cf.tar.gz
so_long-461f71e2660e6286ffc757ca6b7077c70c80b6cf.zip
Update Include path
-rw-r--r--Makefile4
-rw-r--r--include/so_long.h9
2 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d851d7b..4ce3ecf 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,9 @@ OBJ_DIR := obj
OBJ := $(addprefix $(OBJ_DIR)/, $(SRC:%.c=%.o))
-all: $(NAME)
+all: libmlx $(NAME)
-$(NAME): $(OBJ) | libft libmlx
+$(NAME): $(OBJ) | libft
@$(CC) $(CFLAGS) $(HEADERS) $^ -o $@ $(LIBS)
@echo "[$(NAME)] Created binary."
diff --git a/include/so_long.h b/include/so_long.h
index b2bf7d7..7365a30 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */
-/* Updated: 2024/05/10 12:11:11 by dkaiser ### ########.fr */
+/* Updated: 2024/05/10 12:24:12 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,8 +14,7 @@
# define SO_LONG_H
# define PLAYER_MOVE_SPEED 3
-
-# include "../MLX42/include/MLX42/MLX42.h"
+# include "MLX42/MLX42.h"
# include "libft.h"
enum e_direction
@@ -50,8 +49,8 @@ typedef struct s_game
} t_game;
int init(t_game *game);
-void loop(void *game);
+void loop(void *game);
int draw(t_game *game);
-void on_key_input(mlx_key_data_t event, void *params);
+void on_key_input(mlx_key_data_t event, void *params);
#endif // SO_LONG_H