~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# makefile for libpng on DEC Alpha Unix
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
 
# read libpng.txt or png.h to see why PNGMAJ is 2.  You should not
15
 
# have to change it.
16
 
PNGMAJ = 2
17
 
PNGMIN = 1.0.8
18
 
PNGVER = $(PNGMAJ).$(PNGMIN)
19
 
 
20
 
CC=cc
21
 
CFLAGS=-std -w1 -I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
22
 
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
23
 
 
24
 
#RANLIB=echo
25
 
RANLIB=ranlib
26
 
 
27
 
 
28
 
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
29
 
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
30
 
        pngwtran.o pngmem.o pngerror.o pngpread.o
31
 
 
32
 
all: libpng.so libpng.a pngtest
33
 
 
34
 
libpng.a: $(OBJS)
35
 
        ar rc $@  $(OBJS)
36
 
        $(RANLIB) $@
37
 
 
38
 
libpng.so: libpng.so.$(PNGMAJ)
39
 
        ln -f -s libpng.so.$(PNGMAJ) libpng.so
40
 
 
41
 
libpng.so.$(PNGMAJ): libpng.so.$(PNGVER)
42
 
        ln -f -s libpng.so.$(PNGVER) libpng.so.$(PNGMAJ)
43
 
 
44
 
libpng.so.$(PNGVER): $(OBJS)
45
 
        $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) -lz -lm
46
 
 
47
 
pngtest: pngtest.o libpng.a
48
 
        $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
49
 
 
50
 
test: pngtest
51
 
        ./pngtest
52
 
 
53
 
install: libpng.a libpng.so.$(PNGVER)
54
 
        -@mkdir $(prefix)/include
55
 
        -@mkdir $(prefix)/lib
56
 
        cp png.h $(prefix)/include
57
 
        cp pngconf.h $(prefix)/include
58
 
        chmod 644 $(prefix)/include/png.h
59
 
        chmod 644 $(prefix)/include/pngconf.h
60
 
        cp libpng.a $(prefix)/lib
61
 
        cp libpng.so.$(PNGVER) $(prefix)/lib
62
 
        chmod 644 $(prefix)/lib/libpng.a
63
 
        chmod 644 $(prefix)/lib/libpng.so.$(PNGVER)
64
 
        -@/bin/rm -f $(LIBPATH)/libpng.so.$(PNGMAJ) $(LIBPATH)/libpng.so
65
 
        (cd $(LIBPATH); ln -f -s libpng.so.$(PNGVER) libpng.so.$(PNGMAJ); \
66
 
         ln -f -s libpng.so.$(PNGMAJ) libpng.so)
67
 
 
68
 
clean:
69
 
        rm -f *.o libpng.a pngtest pngout.png libpng.so*
70
 
 
71
 
# DO NOT DELETE THIS LINE -- make depend depends on it.
72
 
 
73
 
png.o: png.h pngconf.h
74
 
pngerror.o: png.h pngconf.h
75
 
pngrio.o: png.h pngconf.h
76
 
pngwio.o: png.h pngconf.h
77
 
pngmem.o: png.h pngconf.h
78
 
pngset.o: png.h pngconf.h
79
 
pngget.o: png.h pngconf.h
80
 
pngread.o: png.h pngconf.h
81
 
pngrtran.o: png.h pngconf.h
82
 
pngrutil.o: png.h pngconf.h
83
 
pngtest.o: png.h pngconf.h
84
 
pngtrans.o: png.h pngconf.h
85
 
pngwrite.o: png.h pngconf.h
86
 
pngwtran.o: png.h pngconf.h
87
 
pngwutil.o: png.h pngconf.h
88
 
pngpread.o: png.h pngconf.h
89