Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -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 |
| 4 | # Copyright (C) 2002 Patrick R.L. Welche |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 5 | # Copyright (C) 2007, 2009 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 6 | # For conditions of distribution and use, see copyright notice in png.h |
| 7 | |
| 8 | # You should also run makefile.netbsd |
| 9 | |
| 10 | LOCALBASE?=/usr/local |
| 11 | LIBDIR= ${LOCALBASE}/lib |
| 12 | MANDIR= ${LOCALBASE}/man |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 13 | INCSDIR=${LOCALBASE}/include/libpng14 |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 14 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 15 | LIB= png14 |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 16 | SHLIB_MAJOR= 0 |
Glenn Randers-Pehrson glennrp@comcast.net | 11a3c7b | 2009-05-15 20:33:24 -0500 | [diff] [blame] | 17 | SHLIB_MINOR= 1.4.0beta59 |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 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 |
| 21 | INCS= png.h pngconf.h |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 22 | MAN= libpng.3 libpngpf.3 png.5 |
| 23 | |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 24 | CPPFLAGS+=-I${.CURDIR} |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 25 | |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 26 | # We should be able to do something like this instead of the manual |
| 27 | # uncommenting, but it core dumps for me at the moment: |
| 28 | # .if ${MACHINE_ARCH} == "i386" |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 29 | # MKLINT= no |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 30 | # .endif |
| 31 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 32 | CLEANFILES+=pngtest.o pngtest |
| 33 | |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 34 | pngtest.o: pngtest.c |
| 35 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} |
| 36 | |
| 37 | pngtest: pngtest.o libpng.a |
| 38 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm |
| 39 | |
| 40 | test: pngtest |
| 41 | cd ${.CURDIR} && ${.OBJDIR}/pngtest |
| 42 | |
| 43 | .include <bsd.lib.mk> |