~ubuntu-branches/ubuntu/vivid/ploticus/vivid

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Package Import Robot
  • Author(s): Colin Tuckley
  • Date: 2014-01-08 11:02:15 UTC
  • mfrom: (0.1.5)
  • Revision ID: package-import@ubuntu.com-20140108110215-9y3w9z5ezh4yqgxt
Tags: 2.42-1
* New Upstream release.
* Bump Standards-Version to 3.9.5 (No changes required).
* Upstream Bugfix: Instability with multiline attribute in execline.c
  (LP: #692567)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
######## PLOTICUS version 2.41    Copyright 1998-2009 Stephen C. Grubb  http://ploticus.sourceforge.net
 
1
######## PLOTICUS version 2.42    Copyright 1998-2009 Stephen C. Grubb  http://ploticus.sourceforge.net
2
2
########
3
3
######## Use this Makefile to build  pl executable  or  libploticus.  Root permission is not required.
4
4
######## Configure the 3 settings below then do:  make clean; make
13
13
NOX11 = -DNOX11
14
14
NOSWF = -DNOSWF
15
15
EXE = pl
16
 
STATICLIBEXT = a
 
16
LIBEXT = a
17
17
FPIC =
18
18
ARCOM = ar r
19
19
SHARELIBEXT = so.0.0.0
52
52
# XLIBS = -L/usr/openwin/lib -lX11
53
53
# XINCLUDEDIR = -I/usr/openwin/include
54
54
#### mac osx
55
 
# CC = cc
 
55
# CC = cc -arch ppc -arch i386
56
56
# XLIBS = -L/usr/X11R6/lib -lX11
57
57
# XINCLUDEDIR = -I/usr/X11R6/include
58
58
#### cygwin 
68
68
 
69
69
 
70
70
 
71
 
############ Option 4: build static libploticus (unix) with png support (remember to also select setting 2 option 2)
72
 
# STATICLIBEXT = a
 
71
############ Option 4: build static libploticus (unix) with PNG support (remember to also select PNG in Setting 2)
 
72
# LIBEXT = a
73
73
# ARCOM = ar r
74
74
# target: libploticus-static
 
75
#### and if you want X11 enabled uncomment the following line..
 
76
# XOBJ = x11.o interact.o
75
77
 
76
78
 
77
79
 
78
80
############ Option 5: build shared libploticus (unix)
79
81
############ Note: untested by me ... suggestions welcome -sg
80
 
# SHARELIBEXT = so.0.0.0
 
82
# LIBEXT = a
81
83
# FPIC = -fPIC
82
84
# SONAME = libploticus.so.0
83
85
# SHAREFLAG = -shared -Wl,-soname,$(SONAME)
94
96
############################################################################
95
97
 
96
98
 
97
 
########### Option 1: use bundled GD13 (pseudoGIF only). No additional lib dependencies.
98
 
# exetarget: pl 
99
 
 
100
 
########### Option 2: use bundled GD16 (PNG only).  Requires libpng and zlib.
 
99
########### Option 1: use bundled GD16 (PNG only).  Requires libpng and zlib.
101
100
# exetarget: plpng 
102
101
# GD16LIBS = -lpng -lz
103
 
# GD16H = 
 
102
# GD16H =  -I/usr/local/include
104
103
# ZFLAG = -DWZ
 
104
### Leave the following commented unless libs not in usual places
 
105
### GD16LIBS = /home/scg/lib/libpng.a /home/scg/lib/libz.a
 
106
### GD16H = -I/home/scg/lib
 
107
 
 
108
########### Option 2: use bundled GD13 (GIF only). No additional lib dependencies.
 
109
# exetarget: pl 
105
110
 
106
111
########### Option 3: use your own GD resource.  Requires GD 1.84+, libpng, zlib, libjpeg
107
112
# exetarget: plgd18 
110
115
# GDFREETYPE = 
111
116
# ZFLAG = -DWZ
112
117
 
113
 
########### Option 4: use your own GD resource with FreeType2 fonts enabled.  
 
118
########### Option 4: use your own GD resource with FreeType2 (ttf) fonts enabled.  
114
119
###########           Requires GD 1.84+, libpng, zlib, libjpeg and libfreetype
115
120
exetarget: plgd18 
116
121
GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
125
130
 
126
131
 
127
132
################################################################
128
 
######## Third question.
 
133
######## Settings 3:
129
134
######## Other various settings you may want to make.
130
135
################################################################
131
136
 
136
141
#optional for non-standard location:  MINGH = -I/home/scg/lib
137
142
 
138
143
 
 
144
#### To set a hard-coded directory for prefabs files, edit the PREFABS_DIR define in pl.h before doing the build.
 
145
#### If the installer does this, users won't be required to have PLOTICUS_PREFABS environment variable defined.
 
146
 
 
147
 
139
148
#### If you do a "make install", where do you want the executable(s) to be moved to?
140
 
# INSTALLBIN = /usr/local/bin
141
 
INSTALLBIN = ./
 
149
INSTALLBIN = /usr/local/bin
142
150
 
143
 
#### To set a hard-coded directory for prefabs files, uncomment & edit the following..
144
 
#### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined.
145
 
#### This option not available for win32
146
 
PREFABS_DIR = "/usr/share/ploticus"
147
151
 
148
152
#### For LOCALE support (non-roman alphabets & collation), uncomment the following..
149
153
LOCALEOBJ = localef.o
193
197
LIBS = $(XLIBS) -lm $(ADDLIBS) 
194
198
 
195
199
CFLAGS = $(FPIC) $(WALL) -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(LOCALE_FLAG) \
196
 
  $(NOGD) $(NOX11) $(NOPS) $(NOSVG) $(NOSWF) $(XINCLUDEDIR) $(MINGH) -DPREFABS_DIR=\"$(PREFABS_DIR)\"
 
200
  $(NOGD) $(NOX11) $(NOPS) $(NOSVG) $(NOSWF) $(XINCLUDEDIR) $(MINGH) 
197
201
 
198
202
OBJ = proc_annotate.o proc_areadef.o proc_axis.o proc_bars.o proc_rect.o proc_breakaxis.o \
199
203
  proc_categories.o proc_curvefit.o proc_settings.o proc_drawcommands.o \
224
228
plnogd: pl.o $(OBJ) $(XOBJ) nogdfiles
225
229
        $(CC) pl.o devstuff.o $(OBJ) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(EXE)
226
230
 
227
 
# libploticus.a
228
 
libploticus-static: $(OBJ) api.o gd18files $(XOBJ)
229
 
        $(RMCOM) libploticus.$(STATICLIBEXT)
230
 
        $(ARCOM) libploticus.$(STATICLIBEXT) $(OBJ) api.o devstuff.o grgd.o $(XOBJ)
 
231
# libploticus.a with png
 
232
libploticus-static: $(OBJ) $(XOBJ) api.o gd00files gd16files
 
233
        $(RMCOM) libploticus.$(LIBEXT)
 
234
        $(ARCOM) libploticus.$(LIBEXT) $(OBJ) $(XOBJ) api.o $(GD16) $(GD)
231
235
 
232
236
# this one needs work... suggestions welcome
233
 
libploticus-so: $(OBJ) api.o gd18files $(XOBJ)
 
237
libploticus-so: $(OBJ) $(GDOBJ)
234
238
        $(RMCOM) libploticus.$(SHARELIBEXT)
235
 
        $(CC) $(SHAREFLAG) -o libploticus.$(SHARELIBEXT) $(OBJ) api.o devstuff.o grgd.o $(XOBJ) $(LIBS) $(GD18LIBS)
236
 
 
237
 
apitest: apitest.o
238
 
        echo "note: you may need to edit Makefile_api to specify additional libs for the following command.."
239
 
#       $(CC) apitest.o libploticus.$(SHARELIBEXT) -lm -o apitest
240
 
        $(CC) apitest.o libploticus.$(SHARELIBEXT) $(XLIBS) /usr/lib/libpng.a /usr/lib/libz.a -lm -lgd -o apitest
241
 
 
242
 
#         some additional libraries likely will be required here..
243
 
#         -lgd -lpng -lz -ljpeg -lfreetype
 
239
        $(CC) $(SHAREFLAG) -o libploticus.$(SHARELIBEXT) $(OBJ) $(GDOBJ)
 
240
 
244
241
 
245
242
gd00files: 
246
 
        $(CC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c
 
243
        $(CC) $(FPIC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c
247
244
        echo "done with gd00files" > gd00files
248
245
 
249
246
gd13files: 
253
250
        echo "done with gd13files" > gd13files
254
251
 
255
252
gd16files: 
256
 
        $(CC) -c $(WALL) grgd.c -DGD16 -DPLOTICUS -I./ -I./gd16 -o grgd16.o
257
 
        $(CC) -c $(CFLAGS) devstuff.c -DGD16 -o devstuff16.o
258
 
        $(CC) -c -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
 
253
        $(CC) -c $(WALL) $(FPIC) grgd.c -DGD16 -DPLOTICUS -I./ -I./gd16 -o grgd16.o
 
254
        $(CC) -c $(CFLAGS) $(FPIC) devstuff.c -DGD16 -o devstuff16.o
 
255
        $(CC) -c $(FPIC) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
259
256
        echo "done with gd16files" > gd16files
260
257
 
261
258
gd18files:
278
275
        $(RMCOM) *.o gd??files 
279
276
 
280
277
distclean:  clean
281
 
        $(RMCOM) $(EXE) libploticus.$(STATICLIBEXT) libploticus.$(SHARELIBEXT)
 
278
        $(RMCOM) $(EXE) libploticus.$(LIBEXT) libploticus.$(SHARELIBEXT)
282
279
 
283
280
 
284
281
########