poco/build/vms/pococc.com

41 lines
941 B
Plaintext
Raw Normal View History

2006-10-23 17:40:50 +02:00
$ !
$ ! POCOCC.COM
$ !
2007-02-23 15:50:42 +01:00
$ ! $Id: //poco/Main/build/vms/pococc.com#5 $
2006-10-23 17:40:50 +02:00
$ !
$ ! C compile procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ ptropt = "/POINTER=32"
$ objdir = "OBJ32"
$ ELSE
$ ptropt = "/POINTER=64"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ modeopt = "/NODEBUG"
$ modedef = "NDEBUG"
$ objdir = objdir + "R"
$ ELSE
$ modeopt = "/DEBUG=ALL/NOOPTIMIZE"
$ modedef = "_DEBUG"
$ objdir = objdir + "D"
$ ENDIF
$
$ baseopt = "/STANDARD=RELAXED/ANSI_ALIAS/FLOAT=IEEE_FLOAT/OBJECT=[.''objdir'].OBJ"
$ defines = "/DEFINE=(''modedef' ''projectDefines')"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CC ''baseopt' ''ptropt' ''modeopt' ''defines' ''P1'"
$ ENDIF
$
$ CC 'baseopt' 'ptropt' 'modeopt' 'defines' 'p1'