]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.freebsd
Fix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash.
[wxWidgets.git] / src / png / scripts / makefile.freebsd
... / ...
CommitLineData
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
8PREFIX?= /usr/local
9SHLIB_VER?= 16
10
11LIB= png
12SHLIB_MAJOR= ${SHLIB_VER}
13SHLIB_MINOR= 0
14NO_PROFILE= YES
15NO_OBJ= YES
16
17# where make install puts libpng.a and png.h
18DESTDIR= ${PREFIX}
19LIBDIR= /lib
20INCS= png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
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 \
27 libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
28
29# where make install finds libz.a and zlib.h
30ZLIBLIB= /usr/lib
31ZLIBINC= /usr/include
32
33LDADD+= -lm -lz
34#LDADD+= -lm -lz -lssp_nonshared # for OSVERSION < 800000 ?
35
36DPADD+= ${LIBM} ${LIBZ}
37
38CFLAGS+= -I. -I${ZLIBINC}
39
40SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
41 pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
42 pngwtran.c pngmem.c pngerror.c pngpread.c
43
44pngtest: pngtest.o libpng.a
45 ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -L${ZLIBLIB} \
46 -lpng ${LDADD}
47
48CLEANFILES= pngtest pngtest.o pngout.png
49
50test: pngtest
51 ./pngtest
52
53# see scripts/pnglibconf.mak for more options
54pnglibconf.h: scripts/pnglibconf.h.prebuilt
55 cp scripts/pnglibconf.h.prebuilt $@
56
57DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
58writelock:
59 chmod a-w *.[ch35] $(DOCS) scripts/*
60
61.include <bsd.lib.mk>