blob: 8ed681270f8365d7c426a4ec1122ff35a05eba8d [file] [log] [blame]
Glenn Randers-Pehrson32835392001-04-27 08:29:32 -05001# makefile for libpng for NetBSD for the standard
2# make obj && make depend && make && make test
3# make includes && make install
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -05004# 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-Pehrson82ae3832001-04-20 10:32:10 -05008# For conditions of distribution and use, see copyright notice in png.h
9
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050010# You should also run makefile.ne0bsd
11
Glenn Randers-Pehrson32835392001-04-27 08:29:32 -050012LOCALBASE?=/usr/local
13LIBDIR= ${LOCALBASE}/lib
14MANDIR= ${LOCALBASE}/man
Glenn Randers-Pehrsonfcbd7872002-04-07 16:35:38 -050015INCSDIR=${LOCALBASE}/include/libpng
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -050016
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050017LIB= png
18SHLIB_MAJOR= 3
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-Pehrson32835392001-04-27 08:29:32 -050024MAN= libpng.3 libpngpf.3 png.5
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -050025
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050026CPPFLAGS+=-I${.CURDIR}
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -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-Pehrson32835392001-04-27 08:29:32 -050036pngtest.o: pngtest.c
37 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -050038
Glenn Randers-Pehrson32835392001-04-27 08:29:32 -050039pngtest: pngtest.o libpng.a
40 ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -050041
Glenn Randers-Pehrson32835392001-04-27 08:29:32 -050042test: pngtest
43 cd ${.CURDIR} && ${.OBJDIR}/pngtest
Glenn Randers-Pehrson82ae3832001-04-20 10:32:10 -050044
Glenn Randers-Pehrson32835392001-04-27 08:29:32 -050045.include <bsd.lib.mk>