]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.openbsd
Add missing WXK constants for the control keys
[wxWidgets.git] / src / png / scripts / makefile.openbsd
CommitLineData
0272a10d
VZ
1# makefile for libpng
2# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
b61cc19c
PC
3# Copyright (C) 2007-2009 Glenn Randers-Pehrson
4#
5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer
7# and license in png.h
0272a10d
VZ
8
9PREFIX?= /usr/local
10LIBDIR= ${PREFIX}/lib
11MANDIR= ${PREFIX}/man/cat
12
9c0d9ce3 13SHLIB_MAJOR= 15
72281370 14SHLIB_MINOR= 1.5.7
0272a10d
VZ
15
16LIB= png
17SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \
18 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
19 pngwio.c pngwrite.c pngwtran.c pngwutil.c
20
9c0d9ce3 21HDRS= png.h pngconf.h pnglibconf.h
0272a10d 22
970f6abe 23CFLAGS+= -W -Wall
b61cc19c 24CPPFLAGS+= -I${.CURDIR}
0272a10d
VZ
25
26NOPROFILE= Yes
27
9c0d9ce3 28CLEANFILES+= pngtest.o pngtest pnglibconf.h
0272a10d
VZ
29
30MAN= libpng.3 libpngpf.3 png.5
9c0d9ce3
DS
31DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO \
32 libpng-manual.txt
33
34# see scripts/pnglibconf.mak for more options
35pnglibconf.h: scripts/pnglibconf.h.prebuilt
36 cp scripts/pnglibconf.h.prebuilt $@
0272a10d
VZ
37
38pngtest.o: pngtest.c
39 ${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
40
41pngtest: pngtest.o
42 ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm
43
44test: pngtest
45 cd ${.OBJDIR} && env \
46 LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest
47
48beforeinstall:
49 if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \
b61cc19c 50 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include; \
0272a10d
VZ
51 fi
52 if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
53 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
54 fi
55 if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \
56 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \
57 fi
58 if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \
59 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \
60 fi
61 if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
62 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
63 fi
64 if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \
65 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \
66 fi
67
68afterinstall:
69 @rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
70 @rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
71 @rm -f ${DESTDIR}${PREFIX}/include/png.h
72 @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h
9c0d9ce3 73 @rm -f ${DESTDIR}${PREFIX}/include/pnglibconf.h
0272a10d
VZ
74 @rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
75 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
b61cc19c 76 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
0272a10d
VZ
77 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
78 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
79 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
80 -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
81
82.include <bsd.lib.mk>