Blame scripts/makefile.netbsd

Packit 0ba690
# makefile for libpng for NetBSD for the standard
Packit 0ba690
# make obj && make depend && make && make test
Packit 0ba690
# make includes && make install
Packit 0ba690
# Copyright (C) 2002 Patrick R.L. Welche
Packit 0ba690
# Copyright (C) 2007-2009 Glenn Randers-Pehrson
Packit 0ba690
#
Packit 0ba690
# This code is released under the libpng license.
Packit 0ba690
# For conditions of distribution and use, see the disclaimer
Packit 0ba690
# and license in png.h
Packit 0ba690
Packit 0ba690
# You should also run makefile.ne12bsd
Packit 0ba690
Packit 0ba690
LOCALBASE?=/usr/local
Packit 0ba690
LIBDIR=	${LOCALBASE}/lib
Packit 0ba690
MANDIR= ${LOCALBASE}/man
Packit 0ba690
INCSDIR=${LOCALBASE}/include
Packit 0ba690
Packit 0ba690
LIB=	png
Packit 0ba690
SHLIB_MAJOR=	3
Packit 0ba690
SHLIB_MINOR=	1.2.57
Packit 0ba690
SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
Packit 0ba690
	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
Packit 0ba690
	pngwtran.c pngmem.c pngerror.c pngpread.c
Packit 0ba690
INCS=	png.h pngconf.h
Packit 0ba690
MAN=	libpng.3 libpngpf.3 png.5
Packit 0ba690
Packit 0ba690
CPPFLAGS+=-I${.CURDIR}
Packit 0ba690
Packit 0ba690
# We should be able to do something like this instead of the manual
Packit 0ba690
# uncommenting, but it core dumps for me at the moment:
Packit 0ba690
# .if ${MACHINE_ARCH} == "i386"
Packit 0ba690
#   CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
Packit 0ba690
#   MKLINT= no
Packit 0ba690
# .else
Packit 0ba690
    CPPFLAGS+=-DPNG_NO_MMX_CODE
Packit 0ba690
# .endif
Packit 0ba690
Packit 0ba690
CLEANFILES+=pngtest.o pngtest
Packit 0ba690
Packit 0ba690
pngtest.o:	pngtest.c
Packit 0ba690
	${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
Packit 0ba690
Packit 0ba690
pngtest:	pngtest.o libpng.a
Packit 0ba690
	${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
Packit 0ba690
Packit 0ba690
test:	pngtest
Packit 0ba690
	cd ${.CURDIR} && ${.OBJDIR}/pngtest
Packit 0ba690
Packit 0ba690
.include <bsd.lib.mk>