mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Nico Baggus updated build script for VMS
This commit is contained in:
parent
ff8abfca85
commit
9421d4510a
136
build_vms.com
136
build_vms.com
@ -1,69 +1,69 @@
|
|||||||
$!
|
$!
|
||||||
$
|
$
|
||||||
$ on control_y then goto Common_Exit!
|
$ on control_y then goto Common_Exit!
|
||||||
$ orig = f$environment("DEFAULT")
|
$ orig = f$environment("DEFAULT")
|
||||||
$ loc = f$environment("PROCEDURE")
|
$ loc = f$environment("PROCEDURE")
|
||||||
$ def = f$parse("X.X;1",loc) - "X.X;1"
|
$ def = f$parse("X.X;1",loc) - "X.X;1"
|
||||||
$
|
$
|
||||||
$ set def 'def'
|
$ set def 'def'
|
||||||
$ cc_qual = "/define=HAVE_CONFIG_H=1/include=(""../include/"",""../"",""../../openssl-0_9_6c/include/"")"
|
$ cc_qual = "/define=HAVE_CONFIG_H=1/include=(""../include/"",""../"",""../../openssl-0_9_7/include/"")"
|
||||||
$ if p1 .eqs. "LISTING" then cc_qual = cc_qual + "/LIST/MACHINE"
|
$ if p1 .eqs. "LISTING" then cc_qual = cc_qual + "/LIST/MACHINE"
|
||||||
$ if p1 .eqs. "DEBUG" then cc_qual = cc_qual + "/LIST/MACHINE/DEBUG"
|
$ if p1 .eqs. "DEBUG" then cc_qual = cc_qual + "/LIST/MACHINE/DEBUG"
|
||||||
$ msg_qual = ""
|
$ msg_qual = ""
|
||||||
$ call build "[.lib]" "*.c"
|
$ call build "[.lib]" "*.c"
|
||||||
$ call build "[.src]" "*.c"
|
$ call build "[.src]" "*.c"
|
||||||
$ call build "[.src]" "*.msg"
|
$ call build "[.src]" "*.msg"
|
||||||
$ link /exe=curl.exe [.src]curl/lib/include=main,[.lib]curl/lib, -
|
$ link /exe=curl.exe [.src]curl/lib/include=main,[.lib]curl/lib, -
|
||||||
[-.openssl-0_9_6c.axp.exe.ssl]libssl/lib, -
|
[-.openssl-0_9_7.axp.exe.ssl]libssl/lib, -
|
||||||
[-.openssl-0_9_6c.axp.exe.crypto]libcrypto/lib
|
[-.openssl-0_9_7.axp.exe.crypto]libcrypto/lib
|
||||||
$
|
$
|
||||||
$
|
$
|
||||||
$ goto Common_Exit
|
$ goto Common_Exit
|
||||||
$build: subroutine
|
$build: subroutine
|
||||||
$ set noon
|
$ set noon
|
||||||
$ set default 'p1'
|
$ set default 'p1'
|
||||||
$ search = p2
|
$ search = p2
|
||||||
$ reset = f$search("reset")
|
$ reset = f$search("reset")
|
||||||
$ if f$search("CURL.OLB") .eqs. ""
|
$ if f$search("CURL.OLB") .eqs. ""
|
||||||
$ then
|
$ then
|
||||||
$ LIB/CREATE/OBJECT CURL.OLB
|
$ LIB/CREATE/OBJECT CURL.OLB
|
||||||
$ endif
|
$ endif
|
||||||
$ reset = f$search("reset",1)
|
$ reset = f$search("reset",1)
|
||||||
$Loop:
|
$Loop:
|
||||||
$ file = f$search(search,1)
|
$ file = f$search(search,1)
|
||||||
$ if file .eqs. "" then goto EndLoop
|
$ if file .eqs. "" then goto EndLoop
|
||||||
$ obj = f$search(f$parse(".OBJ;",file),2)
|
$ obj = f$search(f$parse(".OBJ;",file),2)
|
||||||
$ if (obj .nes. "")
|
$ if (obj .nes. "")
|
||||||
$ then
|
$ then
|
||||||
$ if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt")))
|
$ if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt")))
|
||||||
$ then
|
$ then
|
||||||
$ call compile 'file'
|
$ call compile 'file'
|
||||||
$ lib/object curl.OLB 'f$parse(".obj;",file)'
|
$ lib/object curl.OLB 'f$parse(".obj;",file)'
|
||||||
$ else
|
$ else
|
||||||
$! write sys$output "File: ''file' is up to date"
|
$! write sys$output "File: ''file' is up to date"
|
||||||
$ endif
|
$ endif
|
||||||
$ else
|
$ else
|
||||||
$! write sys$output "Object for file: ''file' does not exist"
|
$! write sys$output "Object for file: ''file' does not exist"
|
||||||
$ call compile 'file'
|
$ call compile 'file'
|
||||||
$ lib/object curl.OLB 'f$parse(".obj;",file)'
|
$ lib/object curl.OLB 'f$parse(".obj;",file)'
|
||||||
$ endif
|
$ endif
|
||||||
$ goto Loop
|
$ goto Loop
|
||||||
$EndLoop:
|
$EndLoop:
|
||||||
$ purge
|
$ purge
|
||||||
$ set def 'def'
|
$ set def 'def'
|
||||||
$ endsubroutine ! Build
|
$ endsubroutine ! Build
|
||||||
$
|
$
|
||||||
$compile: subroutine
|
$compile: subroutine
|
||||||
$ set noon
|
$ set noon
|
||||||
$ file = p1
|
$ file = p1
|
||||||
$ qual = p2+p3+p4+p5+p6+p7+p8
|
$ qual = p2+p3+p4+p5+p6+p7+p8
|
||||||
$ typ = f$parse(file,,,"TYPE") - "."
|
$ typ = f$parse(file,,,"TYPE") - "."
|
||||||
$ cmd_c = "CC "+cc_qual
|
$ cmd_c = "CC "+cc_qual
|
||||||
$ cmd_msg = "MESSAGE "+msg_qual
|
$ cmd_msg = "MESSAGE "+msg_qual
|
||||||
$ x = cmd_'typ'
|
$ x = cmd_'typ'
|
||||||
$ 'x' 'file'
|
$ 'x' 'file'
|
||||||
$ ENDSUBROUTINE ! Compile
|
$ ENDSUBROUTINE ! Compile
|
||||||
$
|
$
|
||||||
$Common_Exit:
|
$Common_Exit:
|
||||||
$ set default 'orig'
|
$ set default 'orig'
|
||||||
$ exit
|
$ exit
|
||||||
|
Loading…
Reference in New Issue
Block a user