]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.ne12bsd
fixing typo, thanks to Angelo Mottola
[wxWidgets.git] / src / png / scripts / makefile.ne12bsd
1 # makefile for libpng for NetBSD for the standard
2 # make obj && make depend && make && make test
3 # make includes && make install
4 # Copyright (C) 2002 Patrick R.L. Welche
5 # Copyright (C) 2007 Glenn Randers-Pehrson
6 # For conditions of distribution and use, see copyright notice in png.h
7
8 # You should also run makefile.netbsd
9
10 LOCALBASE?=/usr/local
11 LIBDIR= ${LOCALBASE}/lib
12 MANDIR= ${LOCALBASE}/man
13 INCSDIR=${LOCALBASE}/include/libpng12
14
15 LIB= png12
16 SHLIB_MAJOR= 0
17 SHLIB_MINOR= 1.2.20
18 SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
19 pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
20 pngwtran.c pngmem.c pngerror.c pngpread.c
21 INCS= png.h pngconf.h
22 MAN= libpng.3 libpngpf.3 png.5
23
24 CPPFLAGS+=-I${.CURDIR}
25
26 # something like this for mmx assembler, but it core dumps for me at the moment
27 # .if ${MACHINE_ARCH} == "i386"
28 # CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
29 # MKLINT= no
30 # .else
31 CPPFLAGS+=-DPNG_NO_MMX_CODE
32 # .endif
33
34 CLEANFILES+=pngtest.o pngtest
35
36 pngtest.o: pngtest.c
37 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
38
39 pngtest: pngtest.o libpng.a
40 ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
41
42 test: pngtest
43 cd ${.CURDIR} && ${.OBJDIR}/pngtest
44
45 .include <bsd.lib.mk>