671242f350d172e106580348e24bab66b0d7e6a5vboxsync# makefile for libpng for NetBSD for the standard
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# make obj && make depend && make && make test
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# make includes && make install
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Copyright (C) 2002 Patrick R.L. Welche
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# For conditions of distribution and use, see copyright notice in png.h
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# You should also run makefile.netbsd
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncLOCALBASE?=/usr/local
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncLIBDIR= ${LOCALBASE}/lib
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncMANDIR= ${LOCALBASE}/man
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncINCSDIR=${LOCALBASE}/include/libpng12
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncLIB= png12
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncSHLIB_MAJOR= 0
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncSHLIB_MINOR= 1.2.8
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncSRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync pngwtran.c pngmem.c pngerror.c pngpread.c
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncINCS= png.h pngconf.h
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncMAN= libpng.3 libpngpf.3 png.5
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# something like this for mmx assembler, but it core dumps for me at the moment
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# .if ${MACHINE_ARCH} == "i386"
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# MKLINT= no
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# .else
671242f350d172e106580348e24bab66b0d7e6a5vboxsync CPPFLAGS+=-DPNG_NO_ASSEMBLER_CODE
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# .endif
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCLEANFILES+=pngtest.o pngtest
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncpngtest.o: pngtest.c
671242f350d172e106580348e24bab66b0d7e6a5vboxsync ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncpngtest: pngtest.o libpng.a
671242f350d172e106580348e24bab66b0d7e6a5vboxsync ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsynctest: pngtest
671242f350d172e106580348e24bab66b0d7e6a5vboxsync cd ${.CURDIR} && ${.OBJDIR}/pngtest
671242f350d172e106580348e24bab66b0d7e6a5vboxsync
671242f350d172e106580348e24bab66b0d7e6a5vboxsync.include <bsd.lib.mk>