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

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