makefile.netbsd 1.2 KB
Newer Older
1 2 3
# makefile for libpng for NetBSD for the standard
# make obj && make depend && make && make test
# make includes && make install
4
# Copyright (C) 2002 Patrick R.L. Welche
5 6
# For conditions of distribution and use, see copyright notice in png.h

7 8
# You should also run makefile.ne0bsd

9 10 11
LOCALBASE?=/usr/local
LIBDIR=	${LOCALBASE}/lib
MANDIR= ${LOCALBASE}/man
12
INCSDIR=${LOCALBASE}/include/libpng
13

14 15
LIB=	png
SHLIB_MAJOR=	3
16
SHLIB_MINOR=	1.2.4beta3
17
SRCS=	pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
18 19
		pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
		pngwtran.c pngmem.c pngerror.c pngpread.c
20 21
INCS=	png.h pngconf.h
MAN=	libpng.3 libpngpf.3 png.5
22

23
CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
24

25 26
# something like this for mmx assembler, but it core dumps for me at the moment
# .if ${MACHINE_ARCH} == "i386"
27
#   CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
28 29
#   MKLINT= no
# .else
30
    CPPFLAGS+=-DPNG_NO_ASSEMBLER_CODE
31
# .endif
32

33
CLEANFILES+=pngtest.o pngtest
34

35 36
pngtest.o:	pngtest.c
	${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
37

38 39
pngtest:	pngtest.o libpng.a
	${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
40

41 42
test:	pngtest
	cd ${.CURDIR} && ${.OBJDIR}/pngtest
43

44
.include <bsd.lib.mk>