Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 1 | # makefile for libpng for NetBSD for the standard |
| 2 | # make obj && make depend && make && make test |
| 3 | # make includes && make install |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 4 | # Copyright (C) 2002 Patrick R.L. Welche |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 5 | # For conditions of distribution and use, see copyright notice in png.h |
| 6 | |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 7 | # You should also run makefile.ne0bsd |
| 8 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 9 | LOCALBASE?=/usr/local |
| 10 | LIBDIR= ${LOCALBASE}/lib |
| 11 | MANDIR= ${LOCALBASE}/man |
Glenn Randers-Pehrson | fcbd787 | 2002-04-07 16:35:38 -0500 | [diff] [blame] | 12 | INCSDIR=${LOCALBASE}/include/libpng |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 13 | |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 14 | LIB= png |
| 15 | SHLIB_MAJOR= 3 |
Glenn Randers-Pehrson | 94d9362 | 2004-11-01 22:38:54 -0600 | [diff] [blame^] | 16 | SHLIB_MINOR= 1.2.8beta2 |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 17 | SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 18 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ |
| 19 | pngwtran.c pngmem.c pngerror.c pngpread.c |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 20 | INCS= png.h pngconf.h |
| 21 | MAN= libpng.3 libpngpf.3 png.5 |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 22 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 23 | CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 24 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 25 | # something like this for mmx assembler, but it core dumps for me at the moment |
| 26 | # .if ${MACHINE_ARCH} == "i386" |
Glenn Randers-Pehrson | 5a0be34 | 2001-10-18 20:55:13 -0500 | [diff] [blame] | 27 | # CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 28 | # MKLINT= no |
| 29 | # .else |
Glenn Randers-Pehrson | 5a0be34 | 2001-10-18 20:55:13 -0500 | [diff] [blame] | 30 | CPPFLAGS+=-DPNG_NO_ASSEMBLER_CODE |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 31 | # .endif |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 32 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 33 | CLEANFILES+=pngtest.o pngtest |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 34 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 35 | pngtest.o: pngtest.c |
| 36 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 37 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 38 | pngtest: pngtest.o libpng.a |
| 39 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 40 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 41 | test: pngtest |
| 42 | cd ${.CURDIR} && ${.OBJDIR}/pngtest |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 43 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 44 | .include <bsd.lib.mk> |