Annotation of OpenXM_contrib/gnuplot/makefile.vms, Revision 1.1.1.2
1.1 maekawa 1: #
1.1.1.2 ! maekawa 2: # $Id: makefile.vms,v 1.4.2.2 1999/10/20 14:04:13 lhecking Exp $
1.1 maekawa 3: #
1.1.1.2 ! maekawa 4: # GNUPLOT Makefile for VMS
1.1 maekawa 5: #
6: # use with the MAKE that was posted by Tony Ivanov (tony@gvgpvd.GVG.TEK.COM)
7: # in comp.os.vms on 5 December 1988
8: #
1.1.1.2 ! maekawa 9: # Modified 23 June 1999 to work with MMK; it should also work with MMS.
! 10: # John.Hasstedt@sunysb.edu.
! 11: #
! 12: # You can define a macro on the command line to specify the compiler, either
! 13: # VAXC or GNUC; if you do not specify either, it uses DECC. If you are
! 14: # compiling on Alpha, you should also define __ALPHA__ (MMK does this for you,
! 15: # for MMS, use MMS/DESCRIP=MAKEFILE.VMS/MACRO=__ALPHA__).
1.1 maekawa 16:
17: ########### COMPILE OPTIONS ###########
18:
1.1.1.2 ! maekawa 19: .IFDEF VAXC
! 20: CC=CC
1.1 maekawa 21: WHICHRTL=VAXCRTL
22: CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt
1.1.1.2 ! maekawa 23: PREFIXALL=
! 24: CRTL_SHARE=
! 25: EXTRADEFS=
! 26: EXTRAOBJ=
! 27: EXTRALIB=
! 28: .ELSE
! 29: .IFDEF GNUC
! 30: CC=GCC
! 31: WHICHRTL=VAXCRTL
! 32: CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt
! 33: PREFIXALL=
! 34: CRTL_SHARE=
! 35: EXTRADEFS=
! 36: EXTRAOBJ=
! 37: EXTRALIB=,gnu_cc:[000000]gcclib/lib
! 38: .ELSE # DECC
! 39: CC=CC
! 40: WHICHRTL=DECCRTL
! 41: PREFIXALL=/prefix=all
! 42: CRTL_SHARE=
! 43: .IFDEF __ALPHA__
! 44: EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_LGAMMA,HAVE_UNISTD_H
! 45: .ELSE
! 46: EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_UNISTD_H
! 47: EXTRAOBJ=
! 48: EXTRALIB=
! 49: .ENDIF
! 50: .ENDIF
1.1 maekawa 51:
52: #maybe ABJ and AXE if that's your local convention for alpha
53: #(that's how I build vax and axp programs in same directory)
54: O=OBJ
55: X=EXE
56:
57: # NOOP NO Optimiser
58: # take out X11 if you dont want windows support
59: # pipes compiles with popen emulation (from VMS perl-5 port)
1.1.1.2 ! maekawa 60: CFLAGS = /define=(NO_GIH,X11,PIPES$(EXTRADEFS),$(WHICHRTL)) $(PREFIXALL)
1.1 maekawa 61: TERMFLAGS = /include=[.term]
62:
63:
64: ############## okay, that's enough fiddling ###############
65:
1.1.1.2 ! maekawa 66: OBJS1 = alloc.$(O),binary.$(O),bitmap.$(O),command.$(O),contour.$(O),datafile.$(O),eval.$(O),
! 67: OBJS2 = fit.$(O),graphics.$(O),graph3d.$(O),help.$(O),hidden3d.$(O),internal.$(O),interpol.$(O),
! 68: OBJS3 = matrix.$(O),misc.$(O),parse.$(O),plot.$(O),plot2d.$(O),plot3d.$(O),scanner.$(O),set.$(O),
! 69: OBJS4 = show.$(O),specfun.$(O),standard.$(O),stdfn.$(O),term.$(O),time.$(O),util.$(O),util3d.$(O),version.$(O),vms.$(O)
1.1 maekawa 70: OBJS = $(OBJS1)$(OBJS2)$(OBJS3)$(OBJS4)$(EXTRAOBJ)
71:
1.1.1.2 ! maekawa 72: CSOURCE1 = command.c set.c show.c
! 73: CSOURCE2 = help.c graphics.c graph3d.c internal.c
1.1 maekawa 74: CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c standard.c stdfn.c
75: CSOURCE4 = bitmap.c term.c time.c util.c version.c interpol.c fit.c matrix.c
76: CSOURCE5 = [.term]aed.trm [.term]cgi.trm [.term]dumb.trm [.term]dxf.trm [.term]dxy.trm \
77: [.term]eepic.trm [.term]epson.trm [.term]fig.trm [.term]hp26.trm \
1.1.1.2 ! maekawa 78: [.term]hp2648.trm [.term]hpgl.trm [.term]hpljii.trm
1.1 maekawa 79: CSOURCE6 = [.term]impcodes.h [.term]imagen.trm [.term]object.h \
80: [.term]iris4d.trm [.term]kyo.trm [.term]latex.trm [.term]pbm.trm \
1.1.1.2 ! maekawa 81: [.term]pc.trm
1.1 maekawa 82: CSOURCE7 = [.term]post.trm [.term]qms.trm [.term]regis.trm [.term]sun.trm \
83: [.term]t410x.trm [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm \
84: [.term]v384.trm [.term]x11.trm gplt_x11.c
85: CSOURCE8 = contour.c specfun.c interpol.c vms.c
86:
1.1.1.2 ! maekawa 87: all : gnuplot.$(X) gnuplot_x11.$(X) gnuplot.hlp gnuplot.hlb [.demo]binary1.
! 88:
! 89: gnuplot.$(X) : $(OBJS) $(EXTRAOBJ)
! 90: link /exe=gnuplot.$(X) vms.$(O),gnuplot.opt/opt$(EXTRAOBJ)$(EXTRALIB)$(CRTL_SHARE)
1.1 maekawa 91:
1.1.1.2 ! maekawa 92: gnuplot_x11.$(X) : gplt_x11.$(O) stdfn.$(O)
! 93: link /exe=gnuplot_x11.$(X) gplt_x11.$(O),stdfn.$(O),x11.opt/option$(CRTL_SHARE)
1.1 maekawa 94:
1.1.1.2 ! maekawa 95: gplt_x11.o : gplt_x11.c
! 96: $(CC) $(CFLAGS) $(X11FLAGS)
! 97:
! 98: [.demo]binary1. [.demo]binary2. [.demo]binary3. : bf_test.$(X)
! 99: set default [.demo]
! 100: run [-]bf_test.$(X)
! 101: set default [-]
! 102:
! 103: bf_test.$(X) : bf_test.$(O) binary.$(O) alloc.$(O)
! 104: link /exe=bf_test.exe bf_test.$(O),binary.$(O),alloc.$(O)
! 105:
! 106: gnuplot.hlp : doc2hlp.$(X) [.docs]gnuplot.doc
! 107: define/user sys$input [.docs]gnuplot.doc
! 108: define/user sys$output []gnuplot.hlp
! 109: run doc2hlp
1.1 maekawa 110:
111: gnuplot.hlb : gnuplot.hlp
112: library/create/help gnuplot.hlb gnuplot.hlp
113:
1.1.1.2 ! maekawa 114: doc2hlp.$(X) : [.docs]doc2hlp.c [.docs]termdoc.c
! 115: $(CC) /include=([.docs],[],[.term]) [.docs]doc2hlp.c,[.docs]termdoc.c
! 116: link /exe=doc2hlp.$(X) doc2hlp,termdoc$(CRTL_SHARE)
1.1 maekawa 117:
1.1.1.2 ! maekawa 118: term.$(O) : term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
! 119: $(CC) $(CFLAGS) $(TERMFLAGS) term.c /object=term.$(O)
1.1 maekawa 120:
1.1.1.2 ! maekawa 121: $(OBJS) : plot.h
1.1 maekawa 122:
1.1.1.2 ! maekawa 123: command.$(O) help.$(O) misc.$(O) : help.h
1.1 maekawa 124:
1.1.1.2 ! maekawa 125: command.$(O) graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.O interpol.$(O) : setshow.h
1.1 maekawa 126:
1.1.1.2 ! maekawa 127: command.$(O) fit.$(O) matrix.$(O) : fit.h
1.1 maekawa 128:
1.1.1.2 ! maekawa 129: fit.$(O) matrix.$(O) : matrix.h
1.1 maekawa 130:
1.1.1.2 ! maekawa 131: bitmap.$(O) term.$(O) : bitmap.h
1.1 maekawa 132:
133: clean :
134: purge/log
1.1.1.2 ! maekawa 135: delete/log *.$(O);*
! 136: delete/log [.demo]binary1.;*,binary2.;*,binary3.;*
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>