File: Makefile.in

package info (click to toggle)
gnuplot 3.5beta6.347-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,032 kB
  • ctags: 4,235
  • sloc: ansic: 42,086; makefile: 561; asm: 539; sh: 386; objc: 379; csh: 297; pascal: 194; perl: 138; lisp: 88
file content (432 lines) | stat: -rw-r--r-- 15,118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
############################################################
#
# $Id: Makefile.in,v 1.50 1998/06/18 14:55:00 ddenholm Exp $
#
# GNUPLOT Makefile.in for autoconf (Unix X11 support)
# Adapted from makefile.unx by djm@gnu.ai.mit.edu
############################################################

# default target

all: @ERRORFIX@ gnuplot @GNUPLOT_X11@ doc demo/binary1


# this tells GNU make not to export variables into the environment
# But other makes dont understand its significance, so it must
# not be the first target in the file. So it is here, before
# any variables are created, but after the default target
.NOEXPORT:


SHELL = /bin/sh

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libexecdir = @libexecdir@
datadir = @datadir@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
srcdir = @srcdir@
top_builddir = .
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@SET_MAKE@

HELPFILE=$(datadir)/gnuplot.gih

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

CC     = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS  = @DEFS@ @X_INCLUDES@
INCLUDES = -I. -I$(top_srcdir)
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@

# Additional devices you can add.
# -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
# -DGPR         Apollo Graphics Primitive Resource (fixed-size window)
# -DCGI         SCO CGI
# -DIRIS4D      IRIS4D series computer
# -DSUN         Sun Microsystems Workstation
# -DLINUXVGA	Linux PC with SuperVGA library
# -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
# -DUNIXPLOT    unixplot
# -DGNUGRAPH    use GNU graphics version of UNIX plot library
#               This can only be used in combination with -DUNIXPLOT
TERMFLAGS = @TERMFLAGS@

#  -lplot if you have -DUNIXPLOT in TERMFLAGS
#  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
#  -lgl_s if -DIRIS4D in TERMFLAGS
#  -lccgi if -DCGI in TERMFLAGS
#  -lvga if -DLINUXVGA in TERMFLAGS
#  -L/usr/somewhere/gd -lgd  if gif driver used
TERMLIBS = @TERMLIBS@

LIBS = @LIBS@
XLIBS = @X_LIBRARIES@

# Where to send email about bugs and comments (locally)
EMAIL=submit@bugs.debian.org

# Lasergnu is a handy shell script for creating a plot from the
# command line and sending it directly to the printer. It currently
# supports PostScript and imagen printers, and probably would need
# tailoring to your site.
# Use lasergnu_install to install lasergnu.
# Use lasergnu_noinstall to not install lasergnu (default).
LASERGNU = @LASERGNU@

############################################################
# -DREADLINE:
#   If READLINE is defined, then command-line editing is supported.
#   Otherwise, your normal terminal editing is all you get.
#   Some machines will not support this, and they will turn this
#   option off (for example, apollos running SR10.2 or SR10.3 and
#   loaded with BSD4.3 instead of SYS5). Note: problems with
#   gnuplot prompts have been noted when this feature is selected
#   on IBM RS/6000 AIX, and compile errors are encountered on
#   Sequent Dynix 3 and Convex OS 9.0.
# -DNOCWDRC:
#   If NOCWDRC is defined, then any .gnuplot in the current directory
#   is not read on startup. This is a security consideration
#   especially for root users ( we recommend you define -DNOCWDRC ).
# -ISC22 to circumvent missing plots past the first on ISC 2.2

#  -DNO_MEMSET if you don't have memset()
#  -DHAVE_BZERO if you have bzero() instead and no memset().
#    This works only if the second argument to memset() is 0! 
#  -DNO_MEMCPY if you don't have memcpy()
#  -DHAVE_BCOPY if you have bcopy() instead and no memcpy()
#  -DGAMMA=foo if your gamma function is called foo(). Apollos and
#    Linux have lgamma(3m). The default is -DGAMMA=gamma.
#  -DHAVE_GETCWD if your unix uses getcwd() instead of getwd()
#    this is needed by HP-UX and Cray Unicos systems.
#  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
#    "every other plot" problem.
#  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
#    option is needed on SVR3 platforms with incomplete support for
#    the BSD select() system call
#  -DHAVE_LOCALE if your system uses the 'setlocale' function to
#    support foreign charactersets (currently only ISO8859-1).
#  -DSYSTEM_TIME to use the system-provided set of time routines -
#    in case the gnuplot routines in time.c misbehave
#  -Dunix is required to explicitly define "unix" for SCO and IBM
#          RS/6000 running AIX 3.2

#
# You probably don't need to change anything below here.
#

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
ACCONFIG = acconfig.h
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
CONFIG_HEADER_IN = $(top_srcdir)/config.hin
CONFIG_HEADER = config.h

####################################################################
#


# definitions for macros used in makefile.all (updated automatically)

O=o
T=$(srcdir)/term/
D=$(srcdir)/docs/
L=$(srcdir)/docs/latextut/
M=$(srcdir)/demos

#standard unix make does not support included makefiles.
#we inline the contents of makefile.all here
#it will be updated using a script whenever makefile.all is changed


#<<<makefile.all>>>
########################################################
#
# $Id: Makefile.in,v 1.50 1998/06/18 14:55:00 ddenholm Exp $
#
########################################################
#
# Please note that this is NOT a standalone makefile
# it is intended to be merged into, or included by
# other makefiles once some macros have been defined
#
# If this segment appears in a makefile other than makefile.all,
# do not modify it in situ. This segment will be entirely
# replaced in all makefiles whenever makefile.all is updated
#
# If you are porting gnuplot to a new system, it would
# be very helpful if you could include this one in it.
# This reduces the amount of work required when files are
# added to the distribution
#
# note that there exists a file gnuplot.opt which lists all the
# core files (but without extension)
#
# please define
# O as the object extension
# T as the prefix for terminals (eg term/ or [.term])
# D as the prefix for docs (eg docs/)
# L as the prefix for latex tutorial (eg docs/latextut/ or [.docs.latextut])
# M as the prefix for demos (eg demo/)


####################################################################
# List of object files except version.$(O)
COREOBJS = alloc.$(O) binary.$(O) bitmap.$(O) command.$(O) contour.$(O)\
	datafile.$(O) eval.$(O) fit.$(O) graphics.$(O) graph3d.$(O) help.$(O)\
	hidden3d.$(O) internal.$(O) interpol.$(O) matrix.$(O) misc.$(O)\
	parse.$(O) plot.$(O) plot2d.$(O) plot3d.$(O) readline.$(O)\
	scanner.$(O) set.$(O) show.$(O) specfun.$(O) standard.$(O) stdfn.$(O)\
	term.$(O) time.$(O) util.$(O) util3d.$(O)

####################################################################
# List of source files
# Used for making shar files, lint, and some dependencies.
DIRS = term demo docs $(D)latextut

CSOURCE1 = alloc.c binary.c bitmap.c command.c contour.c datafile.c eval.c fit.c
CSOURCE2 = graphics.c graph3d.c help.c hidden3d.c internal.c interpol.c
CSOURCE3 = matrix.c misc.c parse.c plot.c plot2d.c plot3d.c readline.c
CSOURCE4 = scanner.c set.c show.c specfun.c standard.c stdfn.c term.c time.c util.c util3d.c version.c


CSOURCE5 = $(T)ai.trm $(T)amiga.trm $(T)aed.trm \
	$(T)cgi.trm $(T)corel.trm $(T)cgm.trm \
	$(T)djsvga.trm $(T)dumb.trm \
	$(T)dxf.trm $(T)dxy.trm $(T)debug.trm \
	$(T)emxvga.trm $(T)eepic.trm $(T)epson.trm $(T)excl.trm \
	$(T)fig.trm $(T)gif.trm $(T)grass.trm $(T)hp26.trm $(T)hp2648.trm $(T)hpgl.trm \
	$(T)hp500c.trm $(T)hpljii.trm $(T)metafont.trm \
	$(T)apollo.trm $(T)gpr.trm $(T)hppj.trm $(T)compact.c
CSOURCE6 = $(T)impcodes.h $(T)imagen.trm $(T)next.trm $(T)object.h \
	$(T)iris4d.trm $(T)kyo.trm $(T)latex.trm $(T)mif.trm \
	$(T)pbm.trm $(T)pslatex.trm $(T)gpic.trm $(T)png.trm
CSOURCE7 = $(T)post.trm $(T)pstricks.trm $(T)qms.trm $(T)regis.trm \
	$(T)rgip.trm $(T)sun.trm \
	$(T)t410x.trm $(T)tek.trm $(T)texdraw.trm \
	$(T)tgif.trm $(T)tpic.trm \
	$(T)unixpc.trm $(T)unixplot.trm \
	$(T)v384.trm $(T)vws.trm $(T)x11.trm $(T)xlib.trm
CSOURCE8 = bf_test.c gplt_x11.c

CORETERM = $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)

NEXTSRC  = epsviewe.m epsviewe.h
# not C code, but still needed

DEMOS = $(M)1.dat $(M)2.dat $(M)3.dat $(M)contours.dem \
	$(M)controls.dem $(M)electron.dem $(M)glass.dat $(M)param.dem \
	$(M)polar.dem $(M)simple.dem $(M)surface1.dem \
	$(M)surface2.dem $(M)using.dat $(M)using.dem $(M)world.cor \
	$(M)world.dat $(M)world.dem \
	$(M)err.dat $(M)poldat.dem $(M)errorbar.dem \
	$(M)all.dem $(M)animate.dem $(M)bivariat.dem \
	$(M)prob.dem $(M)stat.inc $(M)prob2.dem $(M)random.dem \
	$(M)discrete.dem $(M)hidden.dem $(M)airfoil.dem $(M)gnuplot.rot\
	$(M)binary.dem $(M)spline.dem $(M)steps.dem $(M)steps.dat \
	$(M)multimsh.dem $(M)whale.dat $(M)hemisphr.dat \
	$(M)scatter.dem $(M)scatter2.dat $(M)singulr.dem $(M)klein.dat

ETC = Copyright 0README README.gnu README.ami makefile.unx makefile.vms \
	linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
	lasergnu makefile.r makefile.nt makefile.g 0FAQ 0BUGS\
	$(T)README History gnuplot.el intergra.x11 0INSTALL\
	README.3p2 README.3p3 README.3p4 README.pro README.nex README.x11 \
	README.3d README.mf README.win configure configure.in Makefile.in \
	$(ACCONFIG) $(ACLOCAL_M4) $(CONFIG_HEADER_IN) missing stamp-h.in


# Documentation and help files
DOCS1 = $(D)makefile.org $(D)README $(D)checkdoc.c $(D)doc2gih.c \
	$(D)doc2hlp.c $(D)doc2hlp.com $(D)doc2ms.c $(D)doc2tex.c \
	$(D)gnuplot.1 $(D)lasergnu.1 $(D)toc_entr.sty $(D)doc2info.pl \
	$(D)titlepag.ms $(D)titlepag.tex $(D)makefile.ami \
	$(D)doc2rtf.c $(D)Makefile.in
DOCS2 = $(D)gnuplot.doc $(D)gpcard.tex
DOCS3 = $(L)makefile.org $(L)eg1.plt \
	$(L)eg2.plt $(L)eg3.dat $(L)eg3.plt \
	$(L)eg4.plt $(L)eg5.plt $(L)eg6.plt \
	$(L)header.tex $(L)tutorial.tex \
	$(L)linepoin.plt $(L)Makefile.in

DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)

#########################################################################

# Simple Dependencies
# - note that VMS requires space before and after the :


$(COREOBJS) : plot.h protos.h stdfn.h

help.$(O) misc.$(O) : help.h

protos.h: alloc.h

graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.$(O) : setshow.h

fit.$(O) : fit.c fit.h matrix.h plot.h

matrix.$(O) : matrix.c matrix.h fit.h

bitmap.$(O) term.$(O) : bitmap.h

term.$(O) : term.h $(CORETERM)

#>>>makefile.all<<<

####################################################

# (that's the end of makefile.all, by the way...)

# List of object files except version.o

OBJS = $(COREOBJS) @NEXTOBJS@


#########################################################################

gnuplot: $(OBJS) version.o
	$(CC) -o $@ $(OBJS) version.o $(LDFLAGS) $(TERMLIBS) $(LIBS)

gnuplot_x11: gplt_x11.o
	$(CC) -o $@ gplt_x11.o $(LDFLAGS) $(XLIBS) $(LIBS)

docs/allterm.h: $(CORETERM)
	cat $(T)*.trm > docs/allterm.h

doc: docs/allterm.h
	( cd docs; $(MAKE) $(MFLAGS) gnuplot.gih )

demo/binary1 demo/binary2 demo/binary3: bf_test
	( wd=`pwd`; cd $(srcdir)/demo; $$wd/bf_test )

bf_test: bf_test.o binary.o alloc.o
	$(CC) -o $@ bf_test.o binary.o alloc.o $(LDFLAGS) $(LIBS)

errorfix: $(srcdir)/errorfix.sh
	$(srcdir)/errorfix.sh $(srcdir)
	touch errorfix

################################################################

install: all $(LASERGNU)
	$(srcdir)/mkinstalldirs $(bindir)
	$(srcdir)/mkinstalldirs $(datadir)
	$(srcdir)/mkinstalldirs $(mandir)/man1
	$(INSTALL_PROGRAM) gnuplot $(bindir)/gnuplot
	test ! -f gnuplot_x11 || $(INSTALL_PROGRAM) gnuplot_x11 $(libexecdir)/gnuplot_x11
	-$(INSTALL_DATA) $(srcdir)/docs/gnuplot.1 $(mandir)/man1/gnuplot.1
	( cd docs; $(MAKE) $(MFLAGS) install datadir=$(datadir) )
	@LINUXSUID@

lasergnu_install: lasergnu docs/lasergnu.1
	$(INSTALL_PROGRAM) $(srcdir)/lasergnu $(libexecdir)/lasergnu
	$(INSTALL_DATA) $(srcdir)/docs/lasergnu.1 $(mandir)/man1/lasergnu.1

lasergnu_noinstall:

uninstall:
	rm -f $(bindir)/gnuplot $(bindir)/gnuplot_x11
	rm -f $(mandir)/man1/gnuplot.1 $(mandir)/man1/lasergnu.1
	( cd docs; $(MAKE) $(MFLAGS) uninstall datadir=$(datadir) )

################################################################
# Dependencies

.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS) $<

command.o: command.c fit.h help.h setshow.h
	$(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<

term.o: term.c term.h $(CORETERM)
	$(CC) -c $(TERMFLAGS) $(CPPFLAGS) $(INCLUDES) -I./term -I$(top_srcdir)/term $(DEFS) $(CFLAGS) $<

version.o: version.c
	$(CC) -c -DCONTACT=\"$(EMAIL)\" $(CPPFLAGS) $(DEFS) $(CFLAGS) $<

$(COREOBJS) version.o bf_test.o : $(CONFIG_HEADER)

################################################################
# Autoconfig rules
#
# I have enabled these rules, because missing autocconf and
# automake tools are now detected by configure and dealt with.

#$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
#	cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= \
	  INCLUDES="@CPPFLAGS@" TERMLIBS="@TERMLIBS@" \
	  $(SHELL) ./config.status

$(ACLOCAL_M4): configure.in
	cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure
	CPPFLAGS="@CPPFLAGS@" TERMLIBS="@TERMLIBS@" \
	$(SHELL) ./config.status --recheck

$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

$(CONFIG_HEADER): stamp-h
stamp-h: $(CONFIG_HEADER_IN) $(top_builddir)/config.status
	cd $(top_builddir) \
	&& CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER):$(CONFIG_HEADER_IN) \
	   $(SHELL) ./config.status
	@echo timestamp > stamp-h

$(srcdir)/$(CONFIG_HEADER_IN): stamp-h.in
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) $(ACCONFIG)
	cd $(top_srcdir) && $(AUTOHEADER)
	@echo timestamp > $(srcdir)/stamp-h.in

################################################################
# Miscellaneous targets

SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
	$(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)\
	$(CSOURCE8) $(NEXTSRC) $(WINDOWS) $(OS2)

DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)

clean:
# HBB: also delete *~ backup files
# HBB: ... and <program>.exe files (might happen since autoconf
#      now runs even on MSDOS with DJGPP...)
# HBB: don't delete stamp-h. In a nutshell: make clean shouldn't
#      delete files that weren't generated by 'make' originally
	rm -f gnuplot gnuplot_x11 bf_test *.o core *~
	rm -f gnuplot.exe gnuplot_x11.exe bf_test.exe
	rm -f demo/binary? demo/temp.set demo/defaults.ini demo/fit.log \
		demo/soundfit.par
	( cd docs; $(MAKE) $(MFLAGS) clean )

mostlyclean: clean

distclean: clean
	rm -f Makefile config.status config.cache $(CONFIG_HEADER) \
	config.log stamp-h
	rm -f docs/Makefile docs/latextut/Makefile
	test "$(srcdir)" = "$(top_builddir)" || rm -rf docs term

realclean: distclean
	rm -f TAGS docs/TAGS

dist: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
	$(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
	     $(DEMOS) $(BETA) $(DOCS)