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
8 # You should also run makefile.ne0bsd
11 LIBDIR= ${LOCALBASE}/lib
12 MANDIR= ${LOCALBASE}/man
13 INCSDIR=${LOCALBASE}/include/libpng
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
22 MAN= libpng.3 libpngpf.3 png.5
24 CPPFLAGS+=-I${.CURDIR}
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
31 CPPFLAGS+=-DPNG_NO_MMX_CODE
34 CLEANFILES+=pngtest.o pngtest
37 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
39 pngtest: pngtest.o libpng.a
40 ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
43 cd ${.CURDIR} && ${.OBJDIR}/pngtest