]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.netbsd
use INVALID_SOCKET instead of -1 to avoid signed/unsigned comparison warning
[wxWidgets.git] / src / png / scripts / makefile.netbsd
CommitLineData
0272a10d
VZ
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
5# Copyright (C) 2007 Glenn Randers-Pehrson
6# For conditions of distribution and use, see copyright notice in png.h
7
8# You should also run makefile.ne0bsd
9
10LOCALBASE?=/usr/local
11LIBDIR= ${LOCALBASE}/lib
12MANDIR= ${LOCALBASE}/man
13INCSDIR=${LOCALBASE}/include/libpng
14
15LIB= png
16SHLIB_MAJOR= 3
17SHLIB_MINOR= 1.2.20
18SRCS= 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
21INCS= png.h pngconf.h
22MAN= libpng.3 libpngpf.3 png.5
23
24CPPFLAGS+=-I${.CURDIR}
25
26# something like this for mmx assembler, but it core dumps for me at the moment
27# .if ${MACHINE_ARCH} == "i386"
28# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
29# MKLINT= no
30# .else
31 CPPFLAGS+=-DPNG_NO_MMX_CODE
32# .endif
33
34CLEANFILES+=pngtest.o pngtest
35
36pngtest.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>