From: Nishi Date: Tue, 12 Nov 2024 02:28:47 +0000 (+0000) Subject: update build.com X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c8ac940cb7c4aa39027fb4e61967d821345d421e;p=tewi.git update build.com git-svn-id: file:///raid/svn-personal/tewi/trunk@414 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/build.com b/build.com index d1845c9..4eadec4 100644 --- a/build.com +++ b/build.com @@ -1,11 +1,32 @@ $! $Id$ -$ set def [.Server] +$ set def [.Common] +$ objects = "" +$ comobjs = "" +$ build_common: +$ file = f$search("*.c") +$ if file .eqs. "" then goto quit_server +$ write sys$output "Compiling "'file' +$ cc 'file' +$ if file .eqs. "" then +$ comobjs = "''file'" +$ else +$ comobjs = "''objects'+''file'" +$ endif +$ goto build_common +$ quit_common: +$ set def [-.Server] $ build_server: $ file = f$search("*.c") $ if file .eqs. "" then goto quit_server $ write sys$output "Compiling "'file' $ cc 'file' +$ if file .eqs. "" then +$ objects = "''file'" +$ else +$ objects = "''objects'+''file'" +$ endif $ goto build_server $ quit_server: +$ link /executable=tewi.exe "''comobjs'+''objects'" $ set def [-] $ exit