1 CFLAGS
=-Wall
-g
-O3
-fPIC
-I
$(shell pwd
)/include
5 DOCDIR
=$(DESTDIR
)/share
/doc
/libglpng
7 all: libglpng.a libglpng.so
.1.45
12 libglpng.so
.1.45: glpng.o
13 gcc
$(CFLAGS
) $(SHAREDLIBFLAGS
) -Wl
,-soname
=libglpng.so
.1 -Wl
,--whole-archive
$< -Wl
,--no-whole-archive
$(LDFLAGS
) -o
$@
21 install: libglpng.a libglpng.so
.1.45
22 for i in
include include/GL lib
; do \
23 install -m
755 -d
$(DESTDIR
)/$$i; \
25 for i in
$(DOCDIR
) $(DOCDIR
)/examples
; do \
26 install -m
755 -d
$$i; \
28 install -m
644 glpng.htm
$(DOCDIR
)/glpng.html
29 install -m
644 Example
/Stunt.png Example
/Test.c
$(DOCDIR
)/examples
30 install -m
644 include/GL
/glpng.h
$(DESTDIR
)/include/GL
31 install -m
644 libglpng.
* $(DESTDIR
)/lib
32 ln
-s libglpng.so
.1.45 $(DESTDIR
)/lib
/libglpng.so
.1
33 ln
-s libglpng.so
.1.45 $(DESTDIR
)/lib
/libglpng.so