]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.freebsd
Fixed player dialog listbox size and app icon on wxGTK
[wxWidgets.git] / src / png / scripts / makefile.freebsd
CommitLineData
0272a10d
VZ
1# makefile for libpng under FreeBSD
2# Copyright (C) 2002, 2007 Glenn Randers-Pehrson and Andrey A. Chernov
3# For conditions of distribution and use, see copyright notice in png.h
4
5PREFIX?= /usr/local
6SHLIB_VER?= 5
7
8LIB= png
9SHLIB_MAJOR= ${SHLIB_VER}
10SHLIB_MINOR= 0
11NOPROFILE= YES
12NOOBJ= YES
13
14# where make install puts libpng.a and png.h
15DESTDIR= ${PREFIX}
16LIBDIR= /lib
17INCS= png.h pngconf.h
18INCSDIR= /include/libpng
19INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
20MAN= libpng.3 libpngpf.3 png.5
21MANDIR= /man/man
22SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
23 libpng/pngconf.h ${INCSDIR}/../pngconf.h
24LDADD+= -lm -lz
25DPADD+= ${LIBM} ${LIBZ}
26
27CFLAGS+= -I.
28.if (${MACHINE_ARCH} != "i386")
29CFLAGS+= -DPNG_NO_MMX_CODE
30.endif
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>