author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 06 Jul 2010 15:10:48 +0300 | |
changeset 30 | 5dc02b23752f |
parent 0 | 1918ee327afb |
permissions | -rw-r--r-- |
0 | 1 |
# makefile for libpng under FreeBSD |
2 |
# Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
# |
0 | 4 |
# This code is released under the libpng license. |
5 |
# For conditions of distribution and use, see the disclaimer |
|
6 |
# and license in png.h |
|
7 |
||
8 |
PREFIX?= /usr/local |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
9 |
SHLIB_VER?= 14 |
0 | 10 |
|
11 |
LIB= png |
|
12 |
SHLIB_MAJOR= ${SHLIB_VER} |
|
13 |
SHLIB_MINOR= 0 |
|
14 |
NOPROFILE= YES |
|
15 |
NOOBJ= YES |
|
16 |
||
17 |
# where make install puts libpng.a and png.h |
|
18 |
DESTDIR= ${PREFIX} |
|
19 |
LIBDIR= /lib |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
20 |
INCS= png.h pngconf.h pngpriv.h |
0 | 21 |
INCSDIR= /include/libpng |
22 |
INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk |
|
23 |
MAN= libpng.3 libpngpf.3 png.5 |
|
24 |
MANDIR= /man/man |
|
25 |
SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \ |
|
26 |
libpng/pngconf.h ${INCSDIR}/../pngconf.h |
|
27 |
LDADD+= -lm -lz |
|
28 |
DPADD+= ${LIBM} ${LIBZ} |
|
29 |
||
30 |
CFLAGS+= -I. |
|
31 |
||
32 |
SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ |
|
33 |
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ |
|
34 |
pngwtran.c pngmem.c pngerror.c pngpread.c |
|
35 |
||
36 |
pngtest: pngtest.o libpng.a |
|
37 |
${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm |
|
38 |
||
39 |
CLEANFILES= pngtest pngtest.o pngout.png |
|
40 |
||
41 |
test: pngtest |
|
42 |
./pngtest |
|
43 |
||
44 |
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
|
45 |
writelock: |
|
46 |
chmod a-w *.[ch35] $(DOCS) scripts/* |
|
47 |
||
48 |
.include <bsd.lib.mk> |