# Customize the helpname definition for your site. HELPLIB = """LIB:MAILUAF""" # Martin Marietta Labs local definition HELPLIB = """MAILUAF""" # mailuaf.hlb will be in sys$help # uncomment following PFLAGS, CFLAGS & LINKFLAGS for TESTING #PFLAGS = /list/nooptimize #CFLAGS = /list/nooptimize/define=(helplib_name=$(HELPLIB)) #LINKFLAGS= # uncomment following PFLAGS, CFLAGS & LINKFLAGS for PRODUCTION PFLAGS = /nolist/optimize/nodebug CFLAGS = /nolist/optimize/nodebug/define=(helplib_name=$(HELPLIB)) LINKFLAGS= /nodebug/notrace PGM = mailuaf TBL = $(PGM)_table P = .pas C = .c CLD = .cld O = .obj OA = .obj_axp OV = .obj_vaxc E = .exe L = .lis HLP = .hlp HLB = .hlb OPT = .opt # Change BIN and LIB for local usage. BIN = bin: # Martin Marietta Labs local definition BIN = sys$common:[sysexe] # mailuaf.exe will be in sys$system LIB = lib: # Martin Marietta Labs local definition LIB = sys$common:[syshlp] # mailuaf.hlb will be in sys$help # Customize INSTCMD: # rename/log if source directory is on same device as BIN & LIB. # copy/log if source directory is on different device than BIN & LIB. INSTCMD = rename/log INSTCMD = copy/log compile : $(PGM)$(E) compile_only: $(PGM)$(O) $(TBL)$(O) $(PGM)$(E) : $(PGM)$(O) $(PGM)$(OPT) $(TBL)$(O) link /exec=$(PGM)$(E) $(LINKFLAGS) $(PGM)$(OPT)/opt # uncomment either of following two lines depending on language #$(PGM)$(O) : $(PGM)$(P) $(PGM)$(O) : $(PGM)$(C) $(TBL)$(O) : $(TBL)$(CLD) set command/object $(TBL)$(CLD) purge : - purge $(PGM).*,$(TBL).*,makefile.,descrip.mms,$(PGM)_build.com clean : if f$search("$(PGM)$(L)") .nes. "" then \ delete/nolog $(PGM)$(L);* if f$search("$(PGM)$(O)") .nes. "" then \ delete/nolog $(PGM)$(O);* if f$search("$(PGM)$(OA)") .nes. "" then \ delete/nolog $(PGM)$(OA);* if f$search("$(PGM)$(OV)") .nes. "" then \ delete/nolog $(PGM)$(OV);* if f$search("$(TBL)$(L)") .nes. "" then \ delete/nolog $(TBL)$(L);* if f$search("$(TBL)$(O)") .nes. "" then \ delete/nolog $(TBL)$(O);* if f$search("$(TBL)$(OA)") .nes. "" then \ delete/nolog $(TBL)$(OA);* if f$search("$(TBL)$(OV)") .nes. "" then \ delete/nolog $(TBL)$(OV);* clobber : if f$search("$(PGM)$(E)") .nes. "" then \ delete/nolog $(PGM)$(E);* install : compile $(INSTCMD) $(PGM)$(E) $(BIN)$(PGM)$(E) install_purge : install if f$search("$(BIN)$(PGM)$(E)") .nes. "" then \ purge $(BIN)$(PGM)$(E) helplib : $(PGM)$(HLP) librarian/help/create=block=20 $(PGM)$(HLB) $(PGM)$(HLP) helplib_install : helplib $(INSTCMD) $(PGM)$(HLB) $(LIB)$(PGM)$(HLB) set file/protection=(g:r,w:r) $(LIB)$(PGM)$(HLB) helplib_install_purge : install_helplib purge $(LIB)$(PGM)$(HLB) save_axp_obj: compile rename/log $(PGM)$(O) $(PGM)$(OA) rename/log $(TBL)$(O) $(TBL)$(OA) save_vaxc_obj: compile rename/log $(PGM)$(O) $(PGM)$(OV) rename/log $(TBL)$(O) $(TBL)$(OV)