$!----------------------------------------------------------------------------- $! BUILD_GIFT.COM $! Builds the GIFT utility for both VAX and AXP systems (separately) $! $! 08-JUL-2002 MGD /DECC on VAX compile $! 09-AUG-1996 MGD yet another quick hack $!----------------------------------------------------------------------------- $! $ ON CONTROLY THEN EXIT 44 $! $ WRITE SYS$OUTPUT "" $ WRITE SYS$OUTPUT "Building ""GIFT""" +- " for ""''F$GETSYI("ARCH_NAME")'"" architecture" $! $ ARCH_NAME = F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE") $ IF ARCH_NAME .EQS. "ALPHA" THEN ARCH_NAME = "AXP" $! $ IF F$SEARCH("OBJ_''ARCH_NAME'.DIR") .EQS. "" - THEN CREATE /DIR [.OBJ_'ARCH_NAME'] $ OBJECT_DIR = "[.OBJ_''ARCH_NAME']" $! $ DEFINES = "/DEFINE=(__VMS_VER=70000000,__CRTL_VER=70000000)" $! $ IF F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE") .EQS. "VAX" $ THEN $ SET VERIFY $ IF P1 .NES. "LINK" $ THEN $ CC /DECC /STANDARD=VAXC 'DEFINES' /OBJECT='OBJECT_DIR' Gift $ CC /DECC /STANDARD=VAXC 'DEFINES' /OBJECT='OBJECT_DIR' GiftCgi $ ENDIF $ LINK /EXECUTABLE=WASD_EXE:GIFT.EXE - 'OBJECT_DIR'Gift, - 'OBJECT_DIR'GiftCgi $! 'F$VERIFY(0) $ ELSE $ SET VERIFY $ IF P1 .NES. "LINK" $ THEN $ CC /STANDARD=VAXC 'DEFINES' /OBJECT='OBJECT_DIR' Gift $ CC /STANDARD=VAXC 'DEFINES' /OBJECT='OBJECT_DIR' GiftCgi $ ENDIF $ LINK /EXECUTABLE=WASD_EXE:GIFT.EXE - 'OBJECT_DIR'gift, - 'OBJECT_DIR'GiftCgi $! 'F$VERIFY(0) $ ENDIF $ PURGE /NOLOG 'OBJECT_DIR' $! $!-----------------------------------------------------------------------------