~ubuntu-branches/ubuntu/wily/ntop/wily-proposed

« back to all changes in this revision

Viewing changes to gdchart0.94c/gd-1.8.3/libpng-1.0.8/scripts/makefile.hpux

  • Committer: Bazaar Package Importer
  • Author(s): Dennis Schoen
  • Date: 2002-04-12 11:38:47 UTC
  • Revision ID: james.westby@ubuntu.com-20020412113847-4k4yydw0pzybc6g8
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# makefile for libpng, HPUX (10.20 and 11.00)
 
2
# Copyright (C) 1999, 2000 Glenn Randers-Pehrson
 
3
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
 
4
# contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
 
5
# For conditions of distribution and use, see copyright notice in png.h
 
6
 
 
7
# Where the zlib library and include files are located
 
8
ZLIBLIB=/opt/zlib/lib
 
9
ZLIBINC=/opt/zlib/include
 
10
 
 
11
CC=cc
 
12
CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
 
13
CCFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
 
14
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
 
15
 
 
16
RANLIB=ranlib
 
17
 
 
18
# read libpng.txt or png.h to see why PNGMAJ is 2.  You should not
 
19
# have to change it.
 
20
PNGMAJ = 2
 
21
PNGMIN = 1.0.8
 
22
PNGVER = $(PNGMAJ).$(PNGMIN)
 
23
 
 
24
# where make install puts libpng.a and png.h
 
25
prefix=/opt/libpng
 
26
 
 
27
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
 
28
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
 
29
        pngwtran.o pngmem.o pngerror.o pngpread.o
 
30
 
 
31
OBJSDLL = $(OBJS:.o=.pic.o)
 
32
 
 
33
.SUFFIXES:      .c .o .pic.o
 
34
 
 
35
.c.pic.o:
 
36
        $(CC) -c $(CFLAGS) +z -o $@ $*.c
 
37
 
 
38
all: libpng.a libpng.sl pngtest
 
39
 
 
40
libpng.a: $(OBJS)
 
41
        ar rc $@  $(OBJS)
 
42
        $(RANLIB) $@
 
43
 
 
44
libpng.sl: libpng.sl.$(PNGMAJ)
 
45
        ln -f -s libpng.sl.$(PNGMAJ) libpng.sl
 
46
 
 
47
libpng.sl.$(PNGMAJ): libpng.sl.$(PNGVER)
 
48
        ln -f -s libpng.sl.$(PNGVER) libpng.sl.$(PNGMAJ)
 
49
 
 
50
libpng.sl.$(PNGVER): $(OBJSDLL)
 
51
        $(LD) -b -L$(ZLIBLIB) +s +b $(ZLIBLIB) \
 
52
        +h libpng.sl.$(PNGMAJ) -o libpng.sl.$(PNGVER) $(OBJSDLL) -lz
 
53
 
 
54
pngtest: pngtest.o libpng.a
 
55
        $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
 
56
 
 
57
test: pngtest
 
58
        ./pngtest
 
59
 
 
60
install: libpng.a
 
61
        -@mkdir $(prefix)/include
 
62
        -@mkdir $(prefix)/lib
 
63
        cp png.h $(prefix)/include
 
64
        cp pngconf.h $(prefix)/include
 
65
        chmod 644 $(prefix)/include/png.h
 
66
        chmod 644 $(prefix)/include/pngconf.h
 
67
        cp libpng.a libpng.sl.$(PNGVER) $(prefix)/lib
 
68
        chmod 644 $(prefix)/lib/libpng.a
 
69
        chmod 755 $(prefix)/lib/libpng.sl.$(PNGVER)
 
70
        (cd $(prefix)/lib; ln -f -s libpng.sl.$(PNGVER) libpng.sl.$(MNGMAJ); \
 
71
        ln -f -s libpng.sl.$(PNGMAJ) libpng.sl)
 
72
 
 
73
clean:
 
74
        rm -f *.o libpng.a libpng.sl* pngtest pngout.png
 
75
 
 
76
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
 
77
writelock:
 
78
        chmod a-w *.[ch35] $(DOCS) scripts/*
 
79
 
 
80
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
81
 
 
82
png.o: png.h pngconf.h
 
83
pngerror.o: png.h pngconf.h
 
84
pngrio.o: png.h pngconf.h
 
85
pngwio.o: png.h pngconf.h
 
86
pngmem.o: png.h pngconf.h
 
87
pngset.o: png.h pngconf.h
 
88
pngget.o: png.h pngconf.h
 
89
pngread.o: png.h pngconf.h
 
90
pngrtran.o: png.h pngconf.h
 
91
pngrutil.o: png.h pngconf.h
 
92
pngtest.o: png.h pngconf.h
 
93
pngtrans.o: png.h pngconf.h
 
94
pngwrite.o: png.h pngconf.h
 
95
pngwtran.o: png.h pngconf.h
 
96
pngwutil.o: png.h pngconf.h
 
97
pngpread.o: png.h pngconf.h