blob: 2e44836e246fda717ca130ebc1b69a51ae4551da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|