VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/scripts/makefile.freebsd@ 78327

Last change on this file since 78327 was 58796, checked in by vboxsync, 9 years ago

libpng 1.2.54 unmodified

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# makefile for libpng under FreeBSD
2# Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov
3#
4# This code is released under the libpng license.
5# For conditions of distribution and use, see the disclaimer
6# and license in png.h
7
8PREFIX?= /usr/local
9SHLIB_VER?= 5
10
11LIB= png
12SHLIB_MAJOR= ${SHLIB_VER}
13SHLIB_MINOR= 0
14NOPROFILE= YES
15NOOBJ= YES
16
17# where make install puts libpng.a and png.h
18DESTDIR= ${PREFIX}
19LIBDIR= /lib
20INCS= png.h pngconf.h
21INCSDIR= /include/libpng
22INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
23MAN= libpng.3 libpngpf.3 png.5
24MANDIR= /man/man
25SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
26 libpng/pngconf.h ${INCSDIR}/../pngconf.h
27LDADD+= -lm -lz
28DPADD+= ${LIBM} ${LIBZ}
29
30CFLAGS+= -I.
31.if (${MACHINE_ARCH} != "i386")
32CFLAGS+= -DPNG_CONFIGURE_LIBPNG -DPNG_NO_MMX_CODE
33.endif
34
35SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
36 pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
37 pngwtran.c pngmem.c pngerror.c pngpread.c
38
39pngtest: pngtest.o libpng.a
40 ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm
41
42CLEANFILES= pngtest pngtest.o pngout.png
43
44test: pngtest
45 ./pngtest
46
47DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
48writelock:
49 chmod a-w *.[ch35] $(DOCS) scripts/*
50
51.include <bsd.lib.mk>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette