From cc816e2ce98e4f6b8deee3d86343b46111f43bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Fri, 20 Dec 2024 13:48:47 +0100 Subject: [PATCH] build: adding rules to makefile (for mlx stuff) --- Makefile | 12 ++++++++++-- maps/.cub | 8 ++++---- maps/empty.cub | 0 maps/empty_textures.cub | 28 ++++++++++++++++++++++++++++ textures/empty.xpm | 0 5 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 maps/empty.cub create mode 100644 maps/empty_textures.cub create mode 100644 textures/empty.xpm diff --git a/Makefile b/Makefile index 2f058c2..487cba3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# **************************************************************************** # + # # # ::: :::::::: # # Makefile :+: :+: :+: # @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/12/17 10:57:46 by rparodi ### ########.fr # +# Updated: 2024/12/20 13:11:09 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -117,6 +117,14 @@ build/libft.a: build/libmlx.a: @make --no-print-directory -C $(MLX_DIR) +get_mlx: + @git clone https://github.com/42Paris/minilibx-linux + +get_mlx-intra: + @wget https://cdn.intra.42.fr/document/document/26097/minilibx-linux.tgz --no-check-certificate + @tar -xvpf ./minilibx-linux.tgz + @rm -rf ./minilibx-linux.tgz + # Dependences for all $(NAME): $(OBJ) build/libft.a build/libmlx.a @mkdir -p $(OBJDIRNAME) diff --git a/maps/.cub b/maps/.cub index eba4ccc..dba1964 100644 --- a/maps/.cub +++ b/maps/.cub @@ -1,7 +1,7 @@ -SO ./textures/b.xpm -NO ./textures/wasteland_32.xpm -WE ./textures/sandy_32.xpm -EA ./textures/cobblestone_32.xpm +SO ./textures/chiseled_tuff.xpm +NO ./textures/chiseled_tuff_bricks.xpm +WE ./textures/chiseled_stone_bricks.xpm +EA ./textures/chiseled_tuff_bricks_top.xpm F 0,255,0 C 0,255,255 diff --git a/maps/empty.cub b/maps/empty.cub new file mode 100644 index 0000000..e69de29 diff --git a/maps/empty_textures.cub b/maps/empty_textures.cub new file mode 100644 index 0000000..2c103ba --- /dev/null +++ b/maps/empty_textures.cub @@ -0,0 +1,28 @@ +SO ./textures/chiseled_tuff.xpm +NO ./textures/chiseled_tuff_bricks.xpm +WE ./textures/chiseled_stone_bricks.xpm +EA ./textures/chiseled_tuff_bricks_top.xpm + +F 0,255,0 +C 0,255,255 + + + + + + + + + + + + + +1111111111111111111111 +100000000S0000000000001 +10000000000000000000001 +10000000000000000000001 +11111011101100111110011 +11000000000000000000001 +11110111111111111111111 +11111111 diff --git a/textures/empty.xpm b/textures/empty.xpm new file mode 100644 index 0000000..e69de29