aboutsummaryrefslogtreecommitdiffstats
path: root/minilibx/Makefile
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 14:31:57 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 14:31:57 +0100
commit4fa8a129e6ecfa168604568673cfbdaa2c8e34b0 (patch)
tree6e97965f1a32c007533eadb15becb4b9405867ea /minilibx/Makefile
parentReverted map to normal size (diff)
download42-cub3d-4fa8a129e6ecfa168604568673cfbdaa2c8e34b0.tar.gz
42-cub3d-4fa8a129e6ecfa168604568673cfbdaa2c8e34b0.tar.bz2
42-cub3d-4fa8a129e6ecfa168604568673cfbdaa2c8e34b0.tar.xz
42-cub3d-4fa8a129e6ecfa168604568673cfbdaa2c8e34b0.tar.zst
42-cub3d-4fa8a129e6ecfa168604568673cfbdaa2c8e34b0.zip
Renamed minilibx
Diffstat (limited to 'minilibx/Makefile')
-rw-r--r--minilibx/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/minilibx/Makefile b/minilibx/Makefile
new file mode 100644
index 0000000..2e44836
--- /dev/null
+++ b/minilibx/Makefile
@@ -0,0 +1,24 @@
+#
+#
+
+NOM=libmlx.a
+SRC= mlx_shaders.c mlx_new_window.m mlx_init_loop.m mlx_new_image.m mlx_xpm.c mlx_int_str_to_wordtab.c
+SRC+= mlx_png.c mlx_mouse.m
+OBJ1=$(SRC:.c=.o)
+OBJ=$(OBJ1:.m=.o)
+CFLAGS+=-O2
+
+# add to match string put with X11 in size and position
+CFLAGS+= -DSTRINGPUTX11
+
+all: $(NOM)
+
+$(NOM): $(OBJ)
+ ar -r $(NOM) $(OBJ)
+ ranlib $(NOM)
+
+clean:
+ rm -f $(NOM) $(OBJ) *~
+ rm -f mlx_app
+
+re: clean all