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

« back to all changes in this revision

Viewing changes to gdchart0.94c/gd-1.8.3/Makefile

  • 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
#Depending on your system, you will need to modify this makefile.
 
2
 
 
3
#If you do not have gcc, change the setting for COMPILER, but you must
 
4
#use an ANSI standard C compiler (NOT the old SunOS 4.1.3 cc
 
5
#compiler; get gcc if you are still using it). 
 
6
COMPILER=gcc
 
7
 
 
8
#If the ar command fails on your system, consult the ar manpage
 
9
#for your system. 
 
10
AR=ar
 
11
 
 
12
#If you don't have FreeType, libjpeg and/or Xpm installed, including the
 
13
#header files, uncomment this (default).
 
14
CFLAGS=-O
 
15
#If you do have FreeType, libjpeg and/or Xpm fully installed, uncomment a
 
16
#variation of this and comment out the line above. See also LIBS below.
 
17
#CFLAGS=-O  -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
 
18
 
 
19
#If you don't have FreeType and/or Xpm fully installed, uncomment this
 
20
#(default).
 
21
 
 
22
#PLEASE NOTE: YOU MAY HAVE TO JUGGLE THE ORDER OF THE LIBRARIES.
 
23
#Some systems are very picky about link order. They don't all agree
 
24
#on the right order, either.
 
25
 
 
26
LIBS=-L../zlib-1.1.3 -lm -lgd libpng-1.0.8/libpng.a -lz
 
27
 
 
28
#If you do have FreeType, JPEG and/or Xpm fully installed, uncomment a 
 
29
#variation of this and comment out the line above. Note that
 
30
#Xpm requires X11. See also CFLAGS above.
 
31
 
 
32
#PLEASE NOTE: YOU MAY HAVE TO JUGGLE THE ORDER OF THE LIBRARIES.
 
33
#Some systems are very picky about link order. They don't all agree
 
34
#on the right order, either.
 
35
 
 
36
#LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11
 
37
 
 
38
#Typical install locations for freetype, zlib, xpm, libjpeg and libpng header files.
 
39
#If yours are somewhere else, change this. 
 
40
#-I. is important to ensure that the version of gd you are installing
 
41
#is used, and not an older release in your directory tree somewhere.
 
42
 
 
43
INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -Ilibpng-1.0.8/ -I../zlib-1.1.3
 
44
 
 
45
#Typical install locations for freetype, zlib, xpm and libpng libraries.
 
46
#If yours are somewhere else, other than a standard location
 
47
#such as /lib or /usr/lib, then change this. Be sure to keep
 
48
#-L. as this allows the gd library itself to be found.
 
49
#Put -L. first so that old versions of the gd library elsewhere
 
50
#on your system can't cause conflicts while building a new one.
 
51
LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib
 
52
 
 
53
#Location where libgd.a should be installed by "make install".
 
54
INSTALL_LIB=/usr/local/lib
 
55
 
 
56
#Location where .h files should be installed by "make install".
 
57
INSTALL_INCLUDE=/usr/local/include
 
58
 
 
59
#Location where useful non-test programs should be installed by "make install".
 
60
INSTALL_BIN=/usr/local/bin
 
61
 
 
62
#
 
63
#
 
64
# Changes should not be required below here.
 
65
#
 
66
#
 
67
 
 
68
VERSION=1.8.1
 
69
 
 
70
CC=$(COMPILER) $(INCLUDEDIRS)
 
71
LINK=$(CC) $(LIBDIRS) $(LIBS)
 
72
 
 
73
PROGRAMS=$(BIN_PROGRAMS) $(TEST_PROGRAMS)
 
74
 
 
75
BIN_PROGRAMS=pngtogd pngtogd2 gdtopng gd2topng gd2copypal gdparttopng webpng
 
76
TEST_PROGRAMS=gdtest gddemo gd2time gdtestttf
 
77
 
 
78
all: libgd.a $(PROGRAMS)
 
79
 
 
80
install: libgd.a $(BIN_PROGRAMS)
 
81
        sh ./install-item 644 libgd.a $(INSTALL_LIB)/libgd.a
 
82
        sh ./install-item 755 pngtogd $(INSTALL_BIN)/pngtogd
 
83
        sh ./install-item 755 pngtogd2 $(INSTALL_BIN)/pngtogd2
 
84
        sh ./install-item 755 gdtopng $(INSTALL_BIN)/gdtopng
 
85
        sh ./install-item 755 gd2topng $(INSTALL_BIN)/gd2topng
 
86
        sh ./install-item 755 gd2copypal $(INSTALL_BIN)/gd2copypal
 
87
        sh ./install-item 755 gdparttopng $(INSTALL_BIN)/gdparttopng
 
88
        sh ./install-item 755 webpng $(INSTALL_BIN)/webpng
 
89
        sh ./install-item 755 bdftogd $(INSTALL_BIN)/bdftogd
 
90
        sh ./install-item 644 gd.h $(INSTALL_INCLUDE)/gd.h
 
91
        sh ./install-item 644 gdcache.h $(INSTALL_INCLUDE)/gdcache.h
 
92
        sh ./install-item 644 gd_io.h $(INSTALL_INCLUDE)/gd_io.h
 
93
        sh ./install-item 644 gdfontg.h $(INSTALL_INCLUDE)/gdfontg.h
 
94
        sh ./install-item 644 gdfontl.h $(INSTALL_INCLUDE)/gdfontl.h
 
95
        sh ./install-item 644 gdfontmb.h $(INSTALL_INCLUDE)/gdfontmb.h
 
96
        sh ./install-item 644 gdfonts.h $(INSTALL_INCLUDE)/gdfonts.h
 
97
        sh ./install-item 644 gdfontt.h $(INSTALL_INCLUDE)/gdfontt.h
 
98
 
 
99
gddemo: gddemo.o libgd.a
 
100
        $(CC) gddemo.o -o gddemo        $(LIBDIRS) $(LIBS)
 
101
 
 
102
pngtogd: pngtogd.o libgd.a
 
103
        $(CC) pngtogd.o -o pngtogd      $(LIBDIRS) $(LIBS) 
 
104
 
 
105
webpng: webpng.o libgd.a
 
106
        $(CC) webpng.o -o webpng        $(LIBDIRS) $(LIBS)
 
107
 
 
108
pngtogd2: pngtogd2.o libgd.a
 
109
        $(CC) pngtogd2.o -o pngtogd2    $(LIBDIRS) $(LIBS)
 
110
 
 
111
gdtopng: gdtopng.o libgd.a
 
112
        $(CC) gdtopng.o -o gdtopng      $(LIBDIRS) $(LIBS)
 
113
 
 
114
gd2topng: gd2topng.o libgd.a
 
115
        $(CC) gd2topng.o -o gd2topng    $(LIBDIRS) $(LIBS)
 
116
 
 
117
gd2copypal: gd2copypal.o libgd.a
 
118
        $(CC) gd2copypal.o -o gd2copypal        $(LIBDIRS) $(LIBS)
 
119
 
 
120
gdparttopng: gdparttopng.o libgd.a
 
121
        $(CC) gdparttopng.o -o gdparttopng      $(LIBDIRS) $(LIBS)
 
122
 
 
123
gdtest: gdtest.o libgd.a
 
124
        $(CC) gdtest.o -o gdtest        $(LIBDIRS) $(LIBS)
 
125
 
 
126
gd2time: gd2time.o libgd.a
 
127
        $(CC) gd2time.o -o gd2time      $(LIBDIRS) $(LIBS)
 
128
 
 
129
gdtestttf: gdtestttf.o libgd.a
 
130
        $(CC) gdtestttf.o -o gdtestttf  $(LIBDIRS) $(LIBS)
 
131
 
 
132
libgd.a: gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \
 
133
        gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o \
 
134
        gdfontg.o gdtables.o gdttf.o gdcache.o gdkanji.o  wbmp.o gd_wbmp.o \
 
135
        gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
 
136
        rm -f libgd.a
 
137
        $(AR) rc libgd.a gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o \
 
138
                gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o \
 
139
                gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \
 
140
                gdtables.o gdttf.o gdcache.o gdkanji.o wbmp.o gd_wbmp.o
 
141
        -ranlib libgd.a
 
142
 
 
143
clean:
 
144
        rm -f *.o *.a ${PROGRAMS} test/gdtest.jpg test/gdtest.wbmp
 
145