blob: b550bb823ca1dcbbe719217365ca1168b99e022a [file] [log] [blame]
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -05001# 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.net7ecf7bd2009-05-02 15:36:08 -05005# Copyright (C) 2007, 2009 Glenn Randers-Pehrson
Glenn Randers-Pehrson3e61d792009-06-24 09:31:28 -05006#
7# This code is released under the zlib-libpng license.
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -05008# For conditions of distribution and use, see copyright notice in png.h
9
10# You should also run makefile.netbsd
11
12LOCALBASE?=/usr/local
13LIBDIR= ${LOCALBASE}/lib
14MANDIR= ${LOCALBASE}/man
Glenn Randers-Pehrson17218292006-04-20 07:20:46 -050015INCSDIR=${LOCALBASE}/include/libpng14
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050016
Glenn Randers-Pehrsonbeb572e2006-08-19 13:59:24 -050017LIB= png14
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050018SHLIB_MAJOR= 0
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -050019SHLIB_MINOR= 1.4.0beta65
Glenn Randers-Pehrson glennrp@comcast.net7ecf7bd2009-05-02 15:36:08 -050020SRCS= 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
23INCS= png.h pngconf.h
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050024MAN= libpng.3 libpngpf.3 png.5
25
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050026CPPFLAGS+=-I${.CURDIR}
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050027
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050028# 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-Pehrsonb3870ab2006-05-11 09:43:09 -050031# MKLINT= no
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050032# .endif
33
Glenn Randers-Pehrson glennrp@comcast.net7ecf7bd2009-05-02 15:36:08 -050034CLEANFILES+=pngtest.o pngtest
35
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050036pngtest.o: pngtest.c
37 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
38
39pngtest: pngtest.o libpng.a
40 ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
41
42test: pngtest
43 cd ${.CURDIR} && ${.OBJDIR}/pngtest
44
45.include <bsd.lib.mk>