]> Nishi Git Mirror - tewi.git/commitdiff
update build.com master
authorNishi <nishi@nishi.boats>
Tue, 12 Nov 2024 02:28:47 +0000 (02:28 +0000)
committerNishi <nishi@nishi.boats>
Tue, 12 Nov 2024 02:28:47 +0000 (02:28 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@414 8739d7e6-ffea-ec47-b151-bdff447c6205

build.com

index d1845c9d6243bba73de51e45f19f239193d5af8d..4eadec4ff10a0dde998c36e4535fcd32223d811b 100644 (file)
--- 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