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 glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 5 | # Copyright (C) 2007, 2009 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | 3e61d79 | 2009-06-24 09:31:28 -0500 | [diff] [blame] | 6 | # |
| 7 | # This code is released under the zlib-libpng license. |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 8 | # For conditions of distribution and use, see copyright notice in png.h |
| 9 | |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 10 | # You should also run makefile.ne0bsd |
| 11 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 12 | LOCALBASE?=/usr/local |
| 13 | LIBDIR= ${LOCALBASE}/lib |
| 14 | MANDIR= ${LOCALBASE}/man |
Glenn Randers-Pehrson | fcbd787 | 2002-04-07 16:35:38 -0500 | [diff] [blame] | 15 | INCSDIR=${LOCALBASE}/include/libpng |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 16 | |
Glenn Randers-Pehrson | 4fb046a | 2002-04-15 09:25:51 -0500 | [diff] [blame] | 17 | LIB= png |
| 18 | SHLIB_MAJOR= 3 |
Glenn Randers-Pehrson | d84748a | 2009-06-24 08:17:34 -0500 | [diff] [blame] | 19 | SHLIB_MINOR= 1.4.0beta65 |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 20 | SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ |
| 21 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ |
| 22 | pngwtran.c pngmem.c pngerror.c pngpread.c |
| 23 | INCS= png.h pngconf.h |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 24 | MAN= libpng.3 libpngpf.3 png.5 |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 25 | |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 26 | CPPFLAGS+=-I${.CURDIR} |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 27 | |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 28 | # We should be able to do something like this instead of the manual |
| 29 | # uncommenting, but it core dumps for me at the moment: |
| 30 | # .if ${MACHINE_ARCH} == "i386" |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 31 | # MKLINT= no |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 32 | # .endif |
| 33 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 34 | CLEANFILES+=pngtest.o pngtest |
| 35 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 36 | pngtest.o: pngtest.c |
| 37 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 38 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 39 | pngtest: pngtest.o libpng.a |
| 40 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 41 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 42 | test: pngtest |
| 43 | cd ${.CURDIR} && ${.OBJDIR}/pngtest |
Glenn Randers-Pehrson | 82ae383 | 2001-04-20 10:32:10 -0500 | [diff] [blame] | 44 | |
Glenn Randers-Pehrson | 3283539 | 2001-04-27 08:29:32 -0500 | [diff] [blame] | 45 | .include <bsd.lib.mk> |