File: descrip.mms

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 (209 lines) | stat: -rw-r--r-- 5,877 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
!         
! GNUPLOT Makefile for VMS, Vers. 2.0, 1996/07/09
!
! "$ MMS" or "$ MMK" makes GNUPLOT.(E,A)XE, gnuplot_X11.(E,A)XE, GNUPLOT.HLB
! "$ MMS ALL" makes in addition GNUPLOT.HTML, GNUPLOT.TEX
! "$ MMS/MACRO=VAXC" or "$ MMS/MACRO=GNUC" for the other compilers.
!
! (Rolf Niepraschk, niepraschk@ptb.de)
!

.IFDEF SCNDCALL  !------------------- second call ------------

.IFDEF AXP
O=ABJ
X=AXE
.ELSE
O=OBJ
X=EXE
.ENDIF

T = [.TERM]
D = [.DOCS]
L = [.DOCS.LATEXTUT]
M = [.DEMO]

DEFAULT : gnuplot.$(X) gnuplot_X11.$(X) $(M)binary1 gnuplot.hlb
	@ !

ALL : DEFAULT gnuplot.html $(D)gnuplot.tex
	@ !

.IFDEF GNUC
CC = GCC
CFLAGS = /NOOP/define=(ANSI_C,NO_GIH,NO_LOCALE_H,X11,PIPES,VAXCRTL)
CRTL_SHARE = ,GNU_CC:[000000]GCCLIB.OLB/lib,$(CWD)linkopt.vms/opt
.ENDIF

.IFDEF VAXC
CFLAGS = /STAND=VAXC/NOOP/define=(NO_GIH,NO_LOCALE_H,X11,PIPES,VAXCRTL)
CRTL_SHARE = ,linkopt.vms/opt
.ENDIF

.IFDEF DECC
! A more conservative set of definitions is
!CFLAGS = /NOOP/define=(ANSI_C,NO_GIH,NO_LOCALE_H,X11,PIPES,DECCRTL)-
!/prefix=all
! but the following definitions work with OpenVMS Alpha V6.2 and DEC C V5.3
CFLAGS = /define=(ANSI_C,HAVE_LGAMMA,HAVE_ERF,HAVE_UNISTD_H,HAVE_GETCWD,-
NO_GIH,X11,PIPES,DECCRTL) /prefix=all/warnings=disable=ADDRCONSTEXT
CRTL_SHARE =
.ENDIF	
	
.SUFFIXES :                   ! clear the suffix list first
.SUFFIXES : .$(X) .$(O) .C 
.C.$(O) :
	$(CC) /OBJ=$@ $(CFLAGS) $< 
                  
.$(O).$(X) :         
	LINK /EXE=$@ $(CRTL_SHARE) $+ 
          	            
X11_LIB = SYS$SHARE:DECW$XLIBSHR/SHARE
X11OPT_FILE = x11vms.opt
OPT_FILE = gnuplot.opt

CREATE_OPT = @genopt.com
PURGE = purge /nolog
CD = SET DEFAULT
CWD = SYS$DISK:[]
SAY = WRITE SYS$OUTPUT
 
TERMFLAGS = /INCL=($(T),$(CWD))   
         
.INCLUDE MAKEFILE.ALL 

OBJS = $(COREOBJS) version.$(O) vms.$(O)

.FIRST
	@ MAKEDIR = F$ENVIRONMENT("DEFAULT")
     
.LAST
!	@ IF F$SEARCH("$(OPT_FILE)") .NES. "" THEN DELETE /NOLOG $(OPT_FILE);*
!	@ IF F$SEARCH("*.$(O)",).NES."" THEN $(PURGE) *.$(O)
!	@ IF F$SEARCH("*.$(X)",).NES."" THEN $(PURGE) *.$(X)
!	@ IF F$SEARCH("*.HLP",).NES."" THEN $(PURGE) *.HLP
!	@ IF F$SEARCH("*.HLB",).NES."" THEN $(PURGE) *.HLB
	@ IF F$SEARCH("*.HTML",).NES."" THEN $(PURGE) *.HTML
	@ IF F$SEARCH("*.DVI",).NES."" THEN $(PURGE) *.DVI
	
$(OPT_FILE) : $(OBJS)
              @ LIST := $+
              @ $(CREATE_OPT) $@/write LIST
              
gnuplot.$(X) : $(OBJS) $(OPT_FILE) 
	link /exe=$@ $(OPT_FILE)/opt $(CRTL_SHARE)  
	@ $(SAY) ""
	@ $(SAY) "Your gnuplot executable is $@"
	@ $(SAY) ""

gnuplot_X11.$(X) : gplt_x11.$(O) $(X11OPT_FILE) 
	LINK /EXE=$@ GPLT_X11.$(O), $(X11OPT_FILE)/opt $(CRTL_SHARE)
	@ $(SAY) ""
	@ $(SAY) "Your gnuplot_x11 executable is $@"
	@ $(SAY) ""
			                
term.$(O) : term.c term.h $(CORETERM) 
	$(CC) /OBJ=$@ $(CFLAGS) $(TERMFLAGS) $*.c 
         
$(X11OPT_FILE) : 
           @ OPEN/WRITE OUT_FILE $(X11OPT_FILE)
           @ WRITE OUT_FILE "$(X11_LIB)"
           @ CLOSE OUT_FILE
           
gnuplot.hlb : gnuplot.hlp 
	@ IF "''F$SEARCH("$@")'" .EQS. "" THEN LIBRARY/CREATE/HELP $@
	LIBRARY $@ $<    
	
!gnuplot.hlp : doc2hlp.$(X) $(D)gnuplot.doc 
!        CREATE_DOC := $ $(CWD)$<
!        CREATE_DOC $(D)gnuplot.doc $@

$(D)gnuplot.rnh : doc2rnh.$(X) $(D)gnuplot.doc
        CREATE_DOC := $ $(CWD)$<
        CREATE_DOC $(D)gnuplot.doc $@

gnuplot.hlp : $(D)gnuplot.rnh 
        RUNOFF $(D)gnuplot.rnh 

gnuplot.html : doc2html.$(X) $(D)gnuplot.doc 
        CREATE_DOC := $ $(CWD)$<
        CREATE_DOC $(D)gnuplot.doc $@

$(D)gnuplot.tex : doc2tex.$(X) $(D)gnuplot.doc 
        CREATE_DOC := $ $(CWD)$<
        CREATE_DOC $(D)gnuplot.doc $@  

gnuplot.dvi : $(D)gnuplot.tex $(D)titlepag.tex $(D)toc_entr.sty
	$(CD) $(D)
	LATEX $*
	LATEX $*
	RENAME $@ 'MAKEDIR'$@
	$(CD) 'MAKEDIR'
        
doc2rnh.$(X) : doc2rnh.$(O)    	
doc2hlp.$(X) : doc2hlp.$(O)    	
doc2html.$(X) : doc2html.$(O)          
doc2tex.$(X) : doc2tex.$(O)  

!doc2hlp.$(O) doc2html.$(O) doc2tex.$(O) : $(D)termdoc.c $(D)allterm.h
!	$(CC) /OBJ=$@ $(CFLAGS) $(TERMFLAGS) $(D)$*.c
doc2rnh.$(O) doc2hlp.$(O) doc2html.$(O) doc2tex.$(O) : $(D)termdoc.c $(D)allterm.h
	$(CC) /OBJ=$@ $(CFLAGS) $(TERMFLAGS) $(D)$*.c
		  		
$(D)allterm.h : $(CORETERM)
!       COPY /CONCATENATE $+ $@ !!!
        COPY /CONCATENATE $(T)*.trm $@

$(M)binary1 $(M)binary2 $(M)binary3 : bf_test.$(X)
	$(CD) $(M)
	RUN 'MAKEDIR'$<
	@ $(CD) 'MAKEDIR'

bf_test.$(X) : bf_test.$(O) binary.$(O) alloc.$(O)             

CLEAN :
	IF F$SEARCH("*.$(O)",).NES."" THEN DEL *.$(O);*
	IF F$SEARCH("$(M)bf_test.$(X)",).NES."" THEN DEL $(M)bf_test.$(X);*
	IF F$SEARCH("doc2tex.$(X)",).NES."" THEN DEL doc2tex.$(X);*
	IF F$SEARCH("doc2html.$(X)",).NES."" THEN DEL doc2html.$(X);*
	IF F$SEARCH("$(D)allterm.h",).NES."" THEN DEL $(D)allterm.h;*
	IF F$SEARCH("gnuplot.hlp",).NES."" THEN DEL gnuplot.hlp;*

VERYCLEAN : CLEAN
	IF F$SEARCH("gnuplot.$(X)",).NES."" THEN DEL gnuplot.$(X);*
	IF F$SEARCH("gnuplot.dvi",).NES."" THEN DEL gnuplot.dvi;*
	IF F$SEARCH("gnuplot.html",).NES."" THEN DEL gnuplot.html;*
	IF F$SEARCH("gnuplot.hlb",).NES."" THEN DEL gnuplot.hlb;*
	IF F$SEARCH("$(D)gnuplot.tex",).NES."" THEN DEL $(D)gnuplot.tex;*
	IF F$SEARCH("$(M)binary1.",).NES."" THEN DEL $(M)binary1.;*
	IF F$SEARCH("$(M)binary2.",).NES."" THEN DEL $(M)binary2.;*
	IF F$SEARCH("$(M)binary3.",).NES."" THEN DEL $(M)binary3.;*
	
.ELSE	!------------------- first call ------------

SAY = WRITE SYS$OUTPUT

? $(MMSTARGETS) : DEFAULT
	@ !

DEFAULT :

.IFDEF GNUC
	@ CCOMP = "GNUC=1"
	@ $(SAY) "Making Gnuplot with GNUC..."
.ELSE
.IFDEF VAXC
	@ CCOMP = "VAXC=1"
	@ $(SAY) "Making Gnuplot with VAXC..."	
.ELSE
	@ CCOMP = "DECC=1"	
	@ $(SAY) "Making Gnuplot with DECC..."	
.ENDIF
.ENDIF	
	@ $(SAY) ""		
	@ PARAM = "/MACRO=(SCNDCALL=1,''CCOMP')"
	@ IF F$GETSYI("ARCH_TYPE") .NE. 1 THEN \
	  PARAM = "/MACRO=(SCNDCALL=1,''CCOMP',AXP=1)"
	@ $(MMS)/IGNORE=WARNING 'PARAM' $(MMSTARGETS)	! second call
		
.ENDIF	! SCNDCALL