]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.freebsd
Use the data scheme to load resources in the WebKitGTK+ implementation, rather than...
[wxWidgets.git] / src / png / scripts / makefile.freebsd
CommitLineData
0272a10d 1# makefile for libpng under FreeBSD
b61cc19c
PC
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
0272a10d
VZ
7
8PREFIX?= /usr/local
b61cc19c 9SHLIB_VER?= 14
0272a10d
VZ
10
11LIB= png
12SHLIB_MAJOR= ${SHLIB_VER}
13SHLIB_MINOR= 0
14NOPROFILE= YES
15NOOBJ= YES
16
17# where make install puts libpng.a and png.h
18DESTDIR= ${PREFIX}
19LIBDIR= /lib
b61cc19c 20INCS= png.h pngconf.h pngpriv.h
0272a10d
VZ
21INCSDIR= /include/libpng
22INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
23MAN= libpng.3 libpngpf.3 png.5
24MANDIR= /man/man
25SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
26 libpng/pngconf.h ${INCSDIR}/../pngconf.h
27LDADD+= -lm -lz
28DPADD+= ${LIBM} ${LIBZ}
29
30CFLAGS+= -I.
0272a10d
VZ
31
32SRCS= 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
36pngtest: pngtest.o libpng.a
37 ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm
38
39CLEANFILES= pngtest pngtest.o pngout.png
40
41test: pngtest
42 ./pngtest
43
44DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
45writelock:
46 chmod a-w *.[ch35] $(DOCS) scripts/*
47
48.include <bsd.lib.mk>