$!----------------------------------------------------------------------------- $! BUILD_AUTHAGENT_LDAP_1.COM $! $! P1 == LINK or BUILD or empty (builds) $! $! 08-JUL-2006 MGD initial $!----------------------------------------------------------------------------- $! $ ON CONTROLY THEN EXIT 44 $! $ WRITE SYS$OUTPUT "" $ WRITE SYS$OUTPUT "Building ""AUTHAGENT_LDAP""" +- " for ""''F$GETSYI("ARCH_NAME")'"" architecture" $! $ ARCH_NAME = F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE") $ IF ARCH_NAME .EQS. "ALPHA" THEN ARCH_NAME = "AXP" $! $ VMS_VERSION = F$INTEGER(F$EXTRACT(1,1,F$GETSYI("VERSION"))) * 10 +- F$INTEGER(F$EXTRACT(3,1,F$GETSYI("VERSION"))) $ IF VMS_VERSION .LT. 73 $ THEN $ WRITE SYS$OUTPUT "BUILD: requires a minimum of VMS V7.3" $ EXIT $ ENDIF $! $ DEFINES = " /DEFINE=(__VMS_VER=70000000," +- "__CRTL_VER=70000000,CGILIB_OBJECT_MODULE)" $ INCLUDES = " /INCLUDE=[SRC.MISC]" $ WARNINGS= " /WARNING=(DISABLE=(PREOPTW))" $! $ IF F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE") .EQS. "VAX" $ THEN $ CC_OPTIONS = "/DECC /OPTIMIZE /STAND=RELAXED_ANSI /PREFIX=ALL" +- INCLUDES + DEFINES + WARNINGS $ ELSE $ CC_OPTIONS = "/DECC /OPTIMIZE /STAND=RELAXED_ANSI /PREFIX=ALL" +- INCLUDES + DEFINES + WARNINGS $ ENDIF $! $ IF F$SEARCH("OBJ_''ARCH_NAME'.DIR") .EQS. "" - THEN CREATE /DIR [.OBJ_'ARCH_NAME'] $ OBJECT_DIR = "[.OBJ_''ARCH_NAME']" $! $ IF P1 .EQS. "" .OR. P1 .EQS. "BUILD" .OR. P1 .EQS. "COMPILE" $ THEN $ SET NOON $ SET VERIFY $ CC 'CC_OPTIONS' /OBJECT='OBJECT_DIR' AUTHAGENT_LDAP_1 $! 'F$VERIFY(0) $ SET ON $ ENDIF $! $ IF P1 .EQS. "" .OR. P1 .EQS. "BUILD" .OR. P1 .EQS. "LINK" $ THEN $ IF F$SEARCH("''OBJECT_DIR'AUTHAGENT_LDAP_1.OBJ") .EQS. "" $ THEN $ WRITE SYS$OUTPUT "LINK: object module not found" $ EXIT $ ELSE $ CGILIB_OLB = "[SRC.MISC.OBJ_''ARCH_NAME']CGILIB.OLB" $ SET NOON $ SET VERIFY $ LINK /NOTRACE /EXECUTABLE=WASD_EXE:AUTHAGENT_LDAP.EXE - 'OBJECT_DIR'AUTHAGENT_LDAP_1,- 'CGILIB_OLB'/LIBRARY $! 'F$VERIFY(0) $ SET ON $ ENDIF $ ENDIF $ PURGE /NOLOG 'OBJECT_DIR' $! $!-----------------------------------------------------------------------------