]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libpng/lib/dist/scripts/makefile.freebsd
update
[l4.git] / l4 / pkg / libpng / lib / dist / scripts / makefile.freebsd
1 # makefile for libpng under FreeBSD
2 # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov
3 #
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
9 SHLIB_VER?=     16
10
11 LIB=            png
12 SHLIB_MAJOR=    ${SHLIB_VER}
13 SHLIB_MINOR=    0
14 NO_PROFILE=     YES
15 NO_OBJ=          YES
16
17 # where make install puts libpng.a and png.h
18 DESTDIR=        ${PREFIX}
19 LIBDIR=         /lib
20 INCS=           png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h             pnginfo.h pngdebug.h
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                 libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
28
29 LDADD+=         -lm -lz
30 #LDADD+=         -lm -lz -lssp_nonshared   # for OSVERSION < 800000 ?
31
32 DPADD+=         ${LIBM} ${LIBZ}
33
34 CFLAGS+= -I.
35
36 SRCS=   png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
37         pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
38         pngwtran.c pngmem.c pngerror.c pngpread.c
39
40 pngtest: pngtest.o libpng.a
41         ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm
42
43 CLEANFILES= pngtest pngtest.o pngout.png
44
45 test: pngtest
46         ./pngtest
47
48 # see scripts/pnglibconf.mak for more options
49 pnglibconf.h: scripts/pnglibconf.h.prebuilt
50         cp scripts/pnglibconf.h.prebuilt $@
51
52 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
53 writelock:
54         chmod a-w *.[ch35] $(DOCS) scripts/*
55
56 .include <bsd.lib.mk>