! Shell$Rules.Mms ! ! IDENT V3.5 ! !************************************************************************* ! * ! © Copyright 2005 Hewlett-Packard Development Company, L.P. * ! * ! Confidential computer software. Valid license from HP required for * ! possession, use or copying. Consistent with FAR 12.211 and 12.212, * ! Commercial Computer Software, Computer Software Documentation, and * ! Technical Data for Commercial Items are licensed to the U.S. * ! Government under vendor's standard commercial license. * ! * !************************************************************************* ! # # Facility: MMS, DEC/Shell # # Abstract: This file contains the default rules used by MMS. # If the macro $(SCALIBRARY) is defined (meaning /SCA was # specified on the command line), the SCA rules are enabled. # # ENVIRONMENT: VAX/VMS User Mode, DEC/Shell CLI # # CREATION DATE: January 1987 # # MODIFIED BY: # 008 6-DEC-2005 Nirmala HS # Changed for QXCM1000304326,To replace invalid /xref_data with # valid /analysis_data qualifier for f90 compiler. # # 007 5-Jun-1996 P. Gilbert # Added DEC Fortran 90 support # # 006 12-Mar-1990 DG # Add misc. new rules/suffixes for SDML, RALLY, Rdb/SQL, ACMS, # TDMS. # # 005 26-Feb-1990 DG # Add DECforms support. # # 004 2-Jun-1989 DG. # Add SCAN and COBOL/SCA support # # 003 12-Mar-1987 TT # Remove author's full name. Fix typo in comment. # # 002 12-Mar-1987 JPK # Updated rules to include SCA rules. # # # Suffixes: # .suffixes .suffixes : .anl .exe .olb .mlb .hlb .tlb .flb .obj .form .bli .b32 .c .cob - .f90$mod .f90 .f77 .for .f - .bas .b16 .pli .pen .pas .mac .mar .cld .msg .cor .dbl .rpg - .scn .ifdl .rba .rc .rco .rfo .rpa .sc .sco .sfo .spa .spl .sqlmod - .rgk .rgc .mem .rno .hlp .rnh .l32 .req .r32 .l16 .r16 .txt .h - .frm .mms .ddl .com .dat .opt .cdo .sdml .adf .gdf .ldf .mdf .rdf .tdf .adf~ .anl~ .b16~ .b32~ .bas~ .bli~ .c~ .cdo~ .cld~ .cob~ - .com~ .cor~ .dat~ .dbl~ .ddl~ - .for~ .f90~ .f77~ .f~ - .frm~ .gdf~ .hlp~ .h~ .ifdl~ - .ldf~ .mac~ .mar~ .mdf~ .mms~ .msg~ .opt~ .pas~ .pli~ .r16~ .r32~ - .rba~ .rc~ .rco~ .rdf~ .req~ .rfo~ .rgc~ .rnh~ .rno~ .rpa~ .rpg~ - .sc~ .scn~ .sco~ .sdml~ .sfo~ .spa~ .spl~ .sqlmod~ .tdf~ .txt~ # # Macros: # as = macro basic = basic bliss = bliss bliss16 = bliss/pdp11 cc = cc cms = cms cmscomment = "" cmsflags = /gen=$(mms$cms_gen) cobol = cobol coral = coral dibol = dibol fms = fms forms = forms fort = fortran f90 = f90 libr = library link = link macro = macro pascal = pascal pli = pli rally = rally rpg = rpg runoff = runoff sca = sca scan = scan scaflags = /log anlflags = /output=$*.anl cddflags = cldflags = corflags = /nolist/object=$*.obj dblflags = /nolist/object=$*.obj fmsflags = /replace forms_exobj_flags = /nolist/output=$*.obj forms_trans_flags = /nolist/output=$*.form librflags = /replace linkflags = /trace/nomap/exec=$*.exe mflags = /nolist/object=$*.obj msgflags = /nolist/object=$*.obj penvflags = /nolist ralflags = rflags = /output=$* rpgflags = /nolist/object=$*.obj .ifdef SCALIBRARY # /SCA specified # # Define Macro that will load .ANA file into SCA library # shell$sca_rule = ( \ set -d ; \ test -r '$(scalibrary)sca$event.dat' || $(sca) create library $(scaflags) '$(scalibrary)' ; \ $(sca) set library $(scaflags) '$(scalibrary)' ; \ $(sca) load $(scaflags) $*.ana \ ) # # Define Macro that will load .XREF file into SCA library # shell$sca_xref_rule = ( \ set -d ; \ test -r '$(scalibrary)sca$event.dat' || $(sca) create library $(scaflags) '$(scalibrary)' ; \ $(sca) set library $(scaflags) '$(scalibrary)' ; \ $(sca) import $(scaflags) $*.xref \ $(sca) load $(scaflags) $*.ana \ ) # # Define flags macros for SCA # basflags = /nolist/object=$*.obj/analysis_data=$*.ana bflags = /nolist/object=$*.obj/analysis_data=$*.ana blibflags = /nolist/analysis_data=$*.ana cflags = /nolist/object=$*.obj/analysis_data=$*.ana fflags = /nolist/object=$*.obj/analysis_data=$*.ana f90flags = /nolist/object=$*.obj/analysis_data=$*.ana # Changed for QXCM1000304326 pflags = /nolist/object=$*.obj/analysis_data=$*.ana pliflags = /nolist/object=$*.obj/analysis_data=$*.ana scanflags = /nolist/object=$*.obj/analysis_data=$*.ana .else # /NOSCA specified # # Define flags macros for NOSCA # basflags = /nolist/object=$*.obj bflags = /nolist/object=$*.obj blibflags = /nolist cflags = /nolist/object=$*.obj cobflags = /nolist/object=$*.obj fflags = /nolist/object=$*.obj f90flags = /nolist/object=$*.obj pflags = /nolist/object=$*.obj pliflags = /nolist/object=$*.obj scanflags = /nolist/object=$*.obj .endif # # Rules: # .exe.anl : dcl analyze/image $(anlflags) $< .obj.exe : dcl $(link) $(linkflags) $< .obj.anl : dcl analyze/object $(anlflags) $< .rno.mem : dcl $(runoff) $(rflags) $< .rnh.hlp : dcl $(runoff) $(rflags) $< .cld.obj : dcl set command /object=$* $(cldflags) $< .cor.obj : dcl $(coral) $(corflags) $< .dbl.obj : dcl $(dibol) $(dblflags) $< .form.obj : $(forms) extract object $(forms_exobj_flags) $< .ifdl.form : $(forms) translate $(forms_trans_flags) $< .mar.obj : dcl $(macro) $(mflags) $< .mac.obj : dcl $(macro) $(mflags) $< .msg.obj : dcl message $(msgflags) $< .pas.pen : dcl $(pascal) /environ=$@ $(penvflags) $< .rgc.rgk : $(rally) define keys $(ralflags) $< $@ .rpg.obj : dcl $(rpg) $(rpgflags) $< .obj.olb : test -r '$@' || dcl $(libr)/create $@ dcl $(libr) $(librflags) $@ $< .mac.mlb : test -r '$@' || dcl $(libr)/create/mac $@ dcl $(libr) $(librflags) $@ $< .mar.mlb : test -r '$@' || dcl $(libr)/create/mac $@ dcl $(libr) $(librflags) $@ $< .hlp.hlb : test -r '$@' || dcl $(libr)/create/help $@ dcl $(libr) $(librflags) $@ $< .txt.tlb : test -r '$@' || dcl $(libr)/create/text $@ dcl $(libr) $(librflags) $@ $< .frm.flb : test -r '$@' && dcl $(fms)/library $(fmsflags) $@ test -r '$@' || dcl $(fms)/library/create $@ $< .ifdef SCALIBRARY # /SCA specified .bas.obj : dcl $(basic) $(basflags) $< $(shell$sca_rule) .bli.obj : dcl $(bliss) $(bflags) $< $(shell$sca_rule) .b32.obj : dcl $(bliss) $(bflags) $< $(shell$sca_rule) .c.obj : dcl $(cc) $(cflags) $< $(shell$sca_rule) .for.obj : dcl $(fort) $(fflags) $< $(shell$sca_rule) .f90.f90$mod : dcl $(f90) $(f90flags) $< $(shell$sca_rule) # Changed for QXCM1000304326, .f90.obj : dcl $(f90) $(f90flags) $< $(shell$sca_rule) # Changed for QXCM1000304326, .f77.obj : dcl $(fort) $(fflags) $< $(shell$sca_rule) .f.obj : dcl $(fort) $(fflags) $< $(shell$sca_rule) .pas.obj : dcl $(pascal) $(pflags) $< $(shell$sca_rule) .pli.obj : dcl $(pli) $(pliflags) $< $(shell$sca_rule) .scn.obj : dcl $(scan) $(scanflags) $< $(shell$sca_rule) .req.l32 : dcl $(bliss) /library=$@ $(blibflags) $< $(shell$sca_rule) .r32.l32 : dcl $(bliss) /library=$@ $(blibflags) $< $(shell$sca_rule) .else # /NOSCA specified .bas.obj : dcl $(basic) $(basflags) $< .bli.obj : dcl $(bliss) $(bflags) $< .b32.obj : dcl $(bliss) $(bflags) $< .c.obj : dcl $(cc) $(cflags) $< .cob.obj : dcl $(cobol) $(cobflags) $< .for.obj : dcl $(fort) $(fflags) $< .f90.f90$mod : dcl $(f90) $(f90flags) $< .f90.obj : dcl $(f90) $(f90flags) $< .f77.obj : dcl $(fort) $(fflags) $< .f.obj : dcl $(fort) $(fflags) $< .pas.obj : dcl $(pascal) $(pflags) $< .pli.obj : dcl $(pli) $(pliflags) $< .scn.obj : dcl $(scan) $(scanflags) $< .req.l32 : dcl $(bliss) /library=$@ $(blibflags) $< .r32.l32 : dcl $(bliss) /library=$@ $(blibflags) $< .b16.obj : dcl $(bliss16) $(bflags) $< .r16.l16 : dcl $(bliss16) /library=$@ $(blibflags) $< .endif # # CMS Rules # # set the appropriate cms library and fetch the given file and generation # from it shell$cms_rule = \ ( set -d ; $(cms) set libr '$@' ; $(cms) fetch '$<' '$(cmsflags)' '$(cmscomment)' ) .adf~.adf : ; $(shell$cms_rule) .anl~.anl : ; $(shell$cms_rule) .b16~.b16 : ; $(shell$cms_rule) .b32~.b32 : ; $(shell$cms_rule) .bas~.bas : ; $(shell$cms_rule) .bli~.bli : ; $(shell$cms_rule) .c~.c : ; $(shell$cms_rule) .cdo~.cdo : ; $(shell$cms_rule) .cld~.cld : ; $(shell$cms_rule) .cob~.cob : ; $(shell$cms_rule) .cor~.cor : ; $(shell$cms_rule) .com~.com : ; $(shell$cms_rule) .dat~.dat : ; $(shell$cms_rule) .dbl~.dbl : ; $(shell$cms_rule) .ddl~.ddl : ; $(shell$cms_rule) .for~.for : ; $(shell$cms_rule) .f90~.f90 : ; $(shell$cms_rule) .f77~.f77 : ; $(shell$cms_rule) .f~.f : ; $(shell$cms_rule) .frm~.frm : ; $(shell$cms_rule) .gdf~.gdf : ; $(shell$cms_rule) .h~.h : ; $(shell$cms_rule) .hlp~.hlp : ; $(shell$cms_rule) .ifdl~.ifdl : ; $(shell$cms_rule) .ldf~.ldf : ; $(shell$cms_rule) .mac~.mac : ; $(shell$cms_rule) .mar~.mar : ; $(shell$cms_rule) .mdf~.mdf : ; $(shell$cms_rule) .mms~.mms : ; $(shell$cms_rule) .msg~.msg : ; $(shell$cms_rule) .opt~.opt : ; $(shell$cms_rule) .pas~.pas : ; $(shell$cms_rule) .pli~.pli : ; $(shell$cms_rule) .r16~.r16 : ; $(shell$cms_rule) .r32~.r32 : ; $(shell$cms_rule) .rba~.rba : ; $(shell$cms_rule) .rc~.rc : ; $(shell$cms_rule) .rco~.rco : ; $(shell$cms_rule) .req~.req : ; $(shell$cms_rule) .rfo~.rfo : ; $(shell$cms_rule) .rgc~.rgc : ; $(shell$cms_rule) .rnh~.rnh : ; $(shell$cms_rule) .rno~.rno : ; $(shell$cms_rule) .rpa~.rpa : ; $(shell$cms_rule) .rpg~.rpg : ; $(shell$cms_rule) .sc~.sc : ; $(shell$cms_rule) .scn~.scn : ; $(shell$cms_rule) .sco~.sco : ; $(shell$cms_rule) .sdml~.sdml : ; $(shell$cms_rule) .sfo~.sfo : ; $(shell$cms_rule) .spa~.spa : ; $(shell$cms_rule) .spl~.spl : ; $(shell$cms_rule) .sqlmod~.sqlmod : ; $(shell$cms_rule) .tdf~.tdf : ; $(shell$cms_rule) .txt~.txt : ; $(shell$cms_rule)