~ubuntu-branches/ubuntu/maverick/ntop/maverick

« back to all changes in this revision

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

  • 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
 
2
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
 
3
# For conditions of distribution and use, see copyright notice in png.h
 
4
 
 
5
# where make install puts libpng.a and png.h
 
6
prefix=/usr/local
 
7
 
 
8
# Where the zlib library and include files are located
 
9
#ZLIBLIB=/usr/local/lib
 
10
#ZLIBINC=/usr/local/include
 
11
ZLIBLIB=../zlib
 
12
ZLIBINC=../zlib
 
13
 
 
14
CC=cc
 
15
 
 
16
WARNMORE=-fullwarn
 
17
# You can add the -n32 option; then zlib must also be compiled with -n32
 
18
CFLAGS=-I$(ZLIBINC) -O $(WARNMORE) # -g -DPNG_DEBUG=5
 
19
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
 
20
 
 
21
RANLIB=echo
 
22
#RANLIB=ranlib
 
23
 
 
24
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
 
25
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
 
26
        pngwtran.o pngmem.o pngerror.o pngpread.o
 
27
 
 
28
all: libpng.a pngtest
 
29
 
 
30
libpng.a: $(OBJS)
 
31
        ar rc $@  $(OBJS)
 
32
        $(RANLIB) $@
 
33
 
 
34
pngtest: pngtest.o libpng.a
 
35
        $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
 
36
 
 
37
test: pngtest
 
38
        ./pngtest
 
39
 
 
40
install: libpng.a
 
41
        -@mkdir $(prefix)/include
 
42
        -@mkdir $(prefix)/lib
 
43
        cp png.h $(prefix)/include
 
44
        cp pngconf.h $(prefix)/include
 
45
        chmod 644 $(prefix)/include/png.h
 
46
        chmod 644 $(prefix)/include/pngconf.h
 
47
        cp libpng.a $(prefix)/lib
 
48
        chmod 644 $(prefix)/lib/libpng.a
 
49
 
 
50
clean:
 
51
        rm -f *.o libpng.a pngtest pngout.png
 
52
 
 
53
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
 
54
writelock:
 
55
        chmod a-w *.[ch35] $(DOCS) scripts/*
 
56
 
 
57
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
58
 
 
59
png.o: png.h pngconf.h
 
60
pngerror.o: png.h pngconf.h
 
61
pngrio.o: png.h pngconf.h
 
62
pngwio.o: png.h pngconf.h
 
63
pngmem.o: png.h pngconf.h
 
64
pngset.o: png.h pngconf.h
 
65
pngget.o: png.h pngconf.h
 
66
pngread.o: png.h pngconf.h
 
67
pngrtran.o: png.h pngconf.h
 
68
pngrutil.o: png.h pngconf.h
 
69
pngtest.o: png.h pngconf.h
 
70
pngtrans.o: png.h pngconf.h
 
71
pngwrite.o: png.h pngconf.h
 
72
pngwtran.o: png.h pngconf.h
 
73
pngwutil.o: png.h pngconf.h
 
74
pngpread.o: png.h pngconf.h
 
75