diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:40:55 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:40:55 +0100 |
commit | 9b431298d0346ce2a181771e9cc78b83c97737f1 (patch) | |
tree | 268d5d29b307bccc1611b4180035e9ccc23edb90 /libmlx/Makefile | |
parent | Added back minilibx, added gitignore (diff) | |
download | 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.gz 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.bz2 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.xz 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.zst 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.zip |
Renamed minilibx to mlx
Diffstat (limited to 'libmlx/Makefile')
-rw-r--r-- | libmlx/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libmlx/Makefile b/libmlx/Makefile new file mode 100644 index 0000000..2e44836 --- /dev/null +++ b/libmlx/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 |