summaryrefslogtreecommitdiff
path: root/mlx/Makefile
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-09 13:58:50 +0200
committerDominik Kaiser2024-05-09 13:58:50 +0200
commit7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc (patch)
tree92cffacb52f96bfc3a2e52419d7ae3b3234e37b7 /mlx/Makefile
parent0673f8b572b575bd5f3f9297cff615d61494dcdf (diff)
downloadso_long-7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc.tar.gz
so_long-7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc.zip
Add MiniLibX
Diffstat (limited to 'mlx/Makefile')
-rw-r--r--mlx/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/mlx/Makefile b/mlx/Makefile
new file mode 100644
index 0000000..2e44836
--- /dev/null
+++ b/mlx/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