~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.mips

  • 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
CC=cc
 
9
CFLAGS=-I../zlib -O -systype sysv -DSYSV -w -Dmips
 
10
#CFLAGS=-O
 
11
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
 
12
 
 
13
#RANLIB=ranlib
 
14
RANLIB=echo
 
15
 
 
16
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
 
17
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
 
18
        pngwtran.o pngmem.o pngerror.o pngpread.o
 
19
 
 
20
all: libpng.a pngtest
 
21
 
 
22
libpng.a: $(OBJS)
 
23
        ar rc $@  $(OBJS)
 
24
        $(RANLIB) $@
 
25
 
 
26
pngtest: pngtest.o libpng.a
 
27
        $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
 
28
 
 
29
test: pngtest
 
30
        ./pngtest
 
31
 
 
32
install: libpng.a
 
33
        -@mkdir $(prefix)/include
 
34
        -@mkdir $(prefix)/lib
 
35
        cp png.h $(prefix)/include
 
36
        cp pngconf.h $(prefix)/include
 
37
        chmod 644 $(prefix)/include/png.h
 
38
        chmod 644 $(prefix)/include/pngconf.h
 
39
        cp libpng.a $(prefix)/lib
 
40
        chmod 644 $(prefix)/lib/libpng.a
 
41
 
 
42
clean:
 
43
        rm -f *.o libpng.a pngtest pngout.png
 
44
 
 
45
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
 
46
writelock:
 
47
        chmod a-w *.[ch35] $(DOCS) scripts/*
 
48
 
 
49
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
50
 
 
51
png.o: png.h pngconf.h
 
52
pngerror.o: png.h pngconf.h
 
53
pngrio.o: png.h pngconf.h
 
54
pngwio.o: png.h pngconf.h
 
55
pngmem.o: png.h pngconf.h
 
56
pngset.o: png.h pngconf.h
 
57
pngget.o: png.h pngconf.h
 
58
pngread.o: png.h pngconf.h
 
59
pngpread.o: png.h pngconf.h
 
60
pngrtran.o: png.h pngconf.h
 
61
pngrutil.o: png.h pngconf.h
 
62
pngtest.o: png.h pngconf.h
 
63
pngtrans.o: png.h pngconf.h
 
64
pngwrite.o: png.h pngconf.h
 
65
pngwtran.o: png.h pngconf.h
 
66
pngwutil.o: png.h pngconf.h