version 1.1.1.1, 2000/01/09 17:00:53 |
version 1.1.1.2, 2000/01/22 14:15:53 |
|
|
# |
# |
# $Id$ |
# $Id$ |
# |
# |
|
# GNUPLOT Makefile for VMS |
# |
# |
# GNUPLOT Makefile |
|
# for VMS |
|
# |
|
# use with the MAKE that was posted by Tony Ivanov (tony@gvgpvd.GVG.TEK.COM) |
# use with the MAKE that was posted by Tony Ivanov (tony@gvgpvd.GVG.TEK.COM) |
# in comp.os.vms on 5 December 1988 |
# in comp.os.vms on 5 December 1988 |
# |
# |
|
# Modified 23 June 1999 to work with MMK; it should also work with MMS. |
|
# John.Hasstedt@sunysb.edu. |
|
# |
|
# You can define a macro on the command line to specify the compiler, either |
|
# VAXC or GNUC; if you do not specify either, it uses DECC. If you are |
|
# compiling on Alpha, you should also define __ALPHA__ (MMK does this for you, |
|
# for MMS, use MMS/DESCRIP=MAKEFILE.VMS/MACRO=__ALPHA__). |
|
|
########### COMPILE OPTIONS ########### |
########### COMPILE OPTIONS ########### |
|
|
|
.IFDEF VAXC |
# select these lines for DECC |
CC=CC |
# |
|
# WHICHRTL=DECCRTL |
|
# PREFIXALL=/prefix=all |
|
# |
|
# select these lines for VAXC |
|
|
|
WHICHRTL=VAXCRTL |
WHICHRTL=VAXCRTL |
CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt |
CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt |
|
PREFIXALL= |
|
CRTL_SHARE= |
|
EXTRADEFS= |
|
EXTRAOBJ= |
|
EXTRALIB= |
|
.ELSE |
|
.IFDEF GNUC |
|
CC=GCC |
|
WHICHRTL=VAXCRTL |
|
CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt |
|
PREFIXALL= |
|
CRTL_SHARE= |
|
EXTRADEFS= |
|
EXTRAOBJ= |
|
EXTRALIB=,gnu_cc:[000000]gcclib/lib |
|
.ELSE # DECC |
|
CC=CC |
|
WHICHRTL=DECCRTL |
|
PREFIXALL=/prefix=all |
|
CRTL_SHARE= |
|
.IFDEF __ALPHA__ |
|
EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_LGAMMA,HAVE_UNISTD_H |
|
.ELSE |
|
EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_UNISTD_H |
|
EXTRAOBJ= |
|
EXTRALIB= |
|
.ENDIF |
|
.ENDIF |
|
|
# uncomment the following line for gnu cc |
|
# EXTRALIB=,gnu_cc:[000000]gcclib/lib |
|
|
|
#maybe ABJ and AXE if that's your local convention for alpha |
#maybe ABJ and AXE if that's your local convention for alpha |
#(that's how I build vax and axp programs in same directory) |
#(that's how I build vax and axp programs in same directory) |
O=OBJ |
O=OBJ |
|
|
# NOOP NO Optimiser |
# NOOP NO Optimiser |
# take out X11 if you dont want windows support |
# take out X11 if you dont want windows support |
# pipes compiles with popen emulation (from VMS perl-5 port) |
# pipes compiles with popen emulation (from VMS perl-5 port) |
CFLAGS = /NOOP/define=(NO_GIH,X11,PIPES,$(WHICHRTL)) $(PREFIXALL) |
CFLAGS = /define=(NO_GIH,X11,PIPES$(EXTRADEFS),$(WHICHRTL)) $(PREFIXALL) |
|
|
TERMFLAGS = /include=[.term] |
TERMFLAGS = /include=[.term] |
|
|
|
|
############## okay, that's enough fiddling ############### |
############## okay, that's enough fiddling ############### |
|
|
OBJS1 = alloc.$O,binary.$O,bitmap.$O,command.$O,contour.$O,datafile.$O,eval.$O, |
OBJS1 = alloc.$(O),binary.$(O),bitmap.$(O),command.$(O),contour.$(O),datafile.$(O),eval.$(O), |
OBJS2 = fit.$O,graphics.$O,graph3d.$O,hidden3d.$O,internal.$O,interpol.$O, |
OBJS2 = fit.$(O),graphics.$(O),graph3d.$(O),help.$(O),hidden3d.$(O),internal.$(O),interpol.$(O), |
OBJS3 = matrix.$O,misc.$O,parse.$O,plot.$O,plot2d.$O,plot3d.$O,scanner.$O,set.$O, |
OBJS3 = matrix.$(O),misc.$(O),parse.$(O),plot.$(O),plot2d.$(O),plot3d.$(O),scanner.$(O),set.$(O), |
OBJS4 = show.$O,specfun.$O,standard.$O,stdfn.$O,term.$O,time.$O,util.$O,util3d.$O,version.$O,vms.$O |
OBJS4 = show.$(O),specfun.$(O),standard.$(O),stdfn.$(O),term.$(O),time.$(O),util.$(O),util3d.$(O),version.$(O),vms.$(O) |
OBJS = $(OBJS1)$(OBJS2)$(OBJS3)$(OBJS4)$(EXTRAOBJ) |
OBJS = $(OBJS1)$(OBJS2)$(OBJS3)$(OBJS4)$(EXTRAOBJ) |
|
|
CSOURCE1 = command.c set.c show.c |
CSOURCE1 = command.c set.c show.c |
CSOURCE2 = help.c graphics.c graph3d.c internal.c |
CSOURCE2 = help.c graphics.c graph3d.c internal.c |
CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c standard.c stdfn.c |
CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c standard.c stdfn.c |
CSOURCE4 = bitmap.c term.c time.c util.c version.c interpol.c fit.c matrix.c |
CSOURCE4 = bitmap.c term.c time.c util.c version.c interpol.c fit.c matrix.c |
CSOURCE5 = [.term]aed.trm [.term]cgi.trm [.term]dumb.trm [.term]dxf.trm [.term]dxy.trm \ |
CSOURCE5 = [.term]aed.trm [.term]cgi.trm [.term]dumb.trm [.term]dxf.trm [.term]dxy.trm \ |
[.term]eepic.trm [.term]epson.trm [.term]fig.trm [.term]hp26.trm \ |
[.term]eepic.trm [.term]epson.trm [.term]fig.trm [.term]hp26.trm \ |
[.term]hp2648.trm [.term]hpgl.trm [.term]hpljii.trm |
[.term]hp2648.trm [.term]hpgl.trm [.term]hpljii.trm |
CSOURCE6 = [.term]impcodes.h [.term]imagen.trm [.term]object.h \ |
CSOURCE6 = [.term]impcodes.h [.term]imagen.trm [.term]object.h \ |
[.term]iris4d.trm [.term]kyo.trm [.term]latex.trm [.term]pbm.trm \ |
[.term]iris4d.trm [.term]kyo.trm [.term]latex.trm [.term]pbm.trm \ |
[.term]pc.trm |
[.term]pc.trm |
CSOURCE7 = [.term]post.trm [.term]qms.trm [.term]regis.trm [.term]sun.trm \ |
CSOURCE7 = [.term]post.trm [.term]qms.trm [.term]regis.trm [.term]sun.trm \ |
[.term]t410x.trm [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm \ |
[.term]t410x.trm [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm \ |
[.term]v384.trm [.term]x11.trm gplt_x11.c |
[.term]v384.trm [.term]x11.trm gplt_x11.c |
CSOURCE8 = contour.c specfun.c interpol.c vms.c |
CSOURCE8 = contour.c specfun.c interpol.c vms.c |
|
|
all : gnuplot.$X gnuplot.hlp gnuplot.hlb |
all : gnuplot.$(X) gnuplot_x11.$(X) gnuplot.hlp gnuplot.hlb [.demo]binary1. |
|
|
gnuplot.$X : $(OBJS) $(EXTRAOBJ) |
gnuplot.$(X) : $(OBJS) $(EXTRAOBJ) |
link /exe=gnuplot.$X vms.$O gnuplot.opt/opt $(EXTRAOBJ) $(EXTRALIB) $(CRTL_SHARE) |
link /exe=gnuplot.$(X) vms.$(O),gnuplot.opt/opt$(EXTRAOBJ)$(EXTRALIB)$(CRTL_SHARE) |
|
|
gnuplot.hlp : doc2hlp.$X [.docs]gnuplot.doc [.docs]doc2hlp.com |
gnuplot_x11.$(X) : gplt_x11.$(O) stdfn.$(O) |
$$@[.docs]doc2hlp.com |
link /exe=gnuplot_x11.$(X) gplt_x11.$(O),stdfn.$(O),x11.opt/option$(CRTL_SHARE) |
|
|
|
gplt_x11.o : gplt_x11.c |
|
$(CC) $(CFLAGS) $(X11FLAGS) |
|
|
|
[.demo]binary1. [.demo]binary2. [.demo]binary3. : bf_test.$(X) |
|
set default [.demo] |
|
run [-]bf_test.$(X) |
|
set default [-] |
|
|
|
bf_test.$(X) : bf_test.$(O) binary.$(O) alloc.$(O) |
|
link /exe=bf_test.exe bf_test.$(O),binary.$(O),alloc.$(O) |
|
|
|
gnuplot.hlp : doc2hlp.$(X) [.docs]gnuplot.doc |
|
define/user sys$input [.docs]gnuplot.doc |
|
define/user sys$output []gnuplot.hlp |
|
run doc2hlp |
|
|
gnuplot.hlb : gnuplot.hlp |
gnuplot.hlb : gnuplot.hlp |
library/create/help gnuplot.hlb gnuplot.hlp |
library/create/help gnuplot.hlb gnuplot.hlp |
|
|
doc2hlp.$X: [.docs]doc2hlp.c [.docs]termdoc.c |
doc2hlp.$(X) : [.docs]doc2hlp.c [.docs]termdoc.c |
$(CC) /include=([.docs],[],[.term]) [.docs]doc2hlp.c [.docs]termdoc.c |
$(CC) /include=([.docs],[],[.term]) [.docs]doc2hlp.c,[.docs]termdoc.c |
link /exe=doc2hlp.$X doc2hlp termdoc $(CTRL_SHARE) |
link /exe=doc2hlp.$(X) doc2hlp,termdoc$(CRTL_SHARE) |
|
|
term.$O: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7) |
term.$(O) : term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7) |
$(CC) $(CFLAGS) $(TERMFLAGS) term.c /object=term.$O |
$(CC) $(CFLAGS) $(TERMFLAGS) term.c /object=term.$(O) |
|
|
$(OBJS): plot.h |
$(OBJS) : plot.h |
|
|
command.$O help.$O misc.$O: help.h |
command.$(O) help.$(O) misc.$(O) : help.h |
|
|
command.$O graphics.$O graph3d.$O misc.$O plot.$O set.$O show.$O term.O interpol.$O: setshow.h |
command.$(O) graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.O interpol.$(O) : setshow.h |
|
|
command.$O fit.$O matrix.$O: fit.h |
command.$(O) fit.$(O) matrix.$(O) : fit.h |
|
|
fit.$O matrix.$O: matrix.h |
fit.$(O) matrix.$(O) : matrix.h |
|
|
bitmap.$O term.$O: bitmap.h |
bitmap.$(O) term.$(O) : bitmap.h |
|
|
clean : |
clean : |
purge/log |
purge/log |
del/log *.$O;* |
delete/log *.$(O);* |
|
delete/log [.demo]binary1.;*,binary2.;*,binary3.;* |