aboutsummaryrefslogtreecommitdiffstats
path: root/minilibx_linux/Makefile.mk
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 17:01:55 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 17:01:55 +0100
commitb7433e108da26346c189888d0aa07ab0e896a709 (patch)
tree1b861b7fefc1ef791022f5694c105541563e3bf0 /minilibx_linux/Makefile.mk
parentTweaked shadows (diff)
download42-cub3d-b7433e108da26346c189888d0aa07ab0e896a709.tar.gz
42-cub3d-b7433e108da26346c189888d0aa07ab0e896a709.tar.bz2
42-cub3d-b7433e108da26346c189888d0aa07ab0e896a709.tar.xz
42-cub3d-b7433e108da26346c189888d0aa07ab0e896a709.tar.zst
42-cub3d-b7433e108da26346c189888d0aa07ab0e896a709.zip
GNU libx
Diffstat (limited to 'minilibx_linux/Makefile.mk')
-rw-r--r--minilibx_linux/Makefile.mk71
1 files changed, 71 insertions, 0 deletions
diff --git a/minilibx_linux/Makefile.mk b/minilibx_linux/Makefile.mk
new file mode 100644
index 0000000..4f919ac
--- /dev/null
+++ b/minilibx_linux/Makefile.mk
@@ -0,0 +1,71 @@
+##
+## Makefile for MiniLibX in /home/boulon/work/c/raytraceur/minilibx
+##
+## Made by Olivier Crouzet
+## Login <ol@epitech.net>
+##
+## Started on Tue Oct 5 15:56:43 2004 Olivier Crouzet
+## Last update Tue May 15 15:41:20 2007 Olivier Crouzet
+##
+
+## Please use configure script
+
+
+INC = %%%%
+HT = %%%%
+DOCP = %%%%
+
+CC = gcc
+
+NAME = libmlx.a
+
+SRC = mlx_init.c \
+ mlx_new_window.c \
+ mlx_pixel_put.c \
+ mlx_loop.c \
+ mlx_mouse_hook.c \
+ mlx_key_hook.c \
+ mlx_expose_hook.c \
+ mlx_loop_hook.c \
+ mlx_int_anti_resize_win.c \
+ mlx_int_do_nothing.c \
+ mlx_int_wait_first_expose.c \
+ mlx_int_get_visual.c \
+ mlx_flush_event.c \
+ mlx_string_put.c \
+ mlx_new_image.c \
+ mlx_get_data_addr.c \
+ mlx_put_image_to_window.c \
+ mlx_get_color_value.c \
+ mlx_clear_window.c \
+ mlx_xpm.c \
+ mlx_int_str_to_wordtab.c \
+ mlx_destroy_window.c \
+ mlx_int_param_event.c \
+ mlx_int_set_win_event_mask.c \
+ mlx_hook.c \
+ mlx_rgb.c \
+ mlx_destroy_image.c
+
+OBJ = $(SRC:.c=.o)
+CFLAGS = -O3 -I$(INC)
+
+DESTDIR = /usr/local
+
+all: $(NAME) $(DOCP)
+
+$(NAME): $(OBJ)
+ ar -r $(NAME) $(OBJ)
+ ranlib $(NAME)
+
+do_cp:
+ cp $(NAME) libmlx_$(HT).a
+
+clean:
+ rm -f $(OBJ) $(NAME) *~ core *.core
+
+install:
+ mkdir -p $(DESTDIR)/lib && cp $(NAME) $(DESTDIR)/lib
+ mkdir -p $(DESTDIR)/lib/pkgconfig && cp mlx.pc $(DESTDIR)/lib/pkgconfig
+ mkdir -p $(DESTDIR)/include && cp mlx.h $(DESTDIR)/include
+ mkdir -p $(DESTDIR)/man/man3 && cp man/man3/*.3 $(DESTDIR)/man/man3