~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/libpng/scripts/makefile.freebsd

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

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