makefile.ne12bsd revision 671242f350d172e106580348e24bab66b0d7e6a5
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# makefile for libpng for NetBSD for the standard
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# make obj && make depend && make && make test
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# make includes && make install
21f450f4fd5fd60f951de44878aae015ed0342e3Adam Moore# Copyright (C) 2002 Patrick R.L. Welche
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# For conditions of distribution and use, see copyright notice in png.h
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# You should also run makefile.netbsd
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreLIBDIR= ${LOCALBASE}/lib
4f2de35716c5df46152747980516af484d0ab208Adam MooreMANDIR= ${LOCALBASE}/man
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreINCSDIR=${LOCALBASE}/include/libpng12
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreSHLIB_MAJOR= 0
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreSHLIB_MINOR= 1.2.8
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam MooreSRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
08e054017132cdd838955bc0af15889f1f2a7b42Adam MooreMAN= libpng.3 libpngpf.3 png.5
0dca577a07715960da42d47787eecc25b285182fAdam MooreCPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
08e054017132cdd838955bc0af15889f1f2a7b42Adam Moore# something like this for mmx assembler, but it core dumps for me at the moment
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# .if ${MACHINE_ARCH} == "i386"
f647f9c7909e84a0b19f09de42ce82a715e2d52aAdam Moore# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore CPPFLAGS+=-DPNG_NO_ASSEMBLER_CODE
0771d781138a507b3e657573703f511291640bf3Adam MooreCLEANFILES+=pngtest.o pngtest
0771d781138a507b3e657573703f511291640bf3Adam Moore ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
0771d781138a507b3e657573703f511291640bf3Adam Moore ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
9c42541e375e7bb70c53012b3012d70f1a380254Adam Mooretest: pngtest
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore cd ${.CURDIR} && ${.OBJDIR}/pngtest