ORCA-C/make

212 lines
4.0 KiB
Plaintext
Raw Permalink Normal View History

unset exit
unset cc
unset cg
Newer 5/cc cc.rez
if {status} != 0
set exit on
echo compile -e cc.rez keep=5/cc
compile -e cc.rez keep=5/cc
unset exit
end
if {#} == 0
Newer obj/asm.a asm.pas
if {status} != 0
set asm asm
set cc cc
set parser parser
end
Newer obj/cc.a cc.pas
if {status} != 0
set cc cc
end
Newer obj/ccommon.a ccommon.pas ccommon.asm
if {Status} != 0
set ccommon ccommon
set asm asm
set cc cc
set cgc cgc
set cgi cgi
set expression expression
set mm mm
set parser parser
set scanner scanner
set symbol symbol
set table table
set objout objout
set native native
set dag dag
set gen gen
set header header
Squashed commit of the following: commit 4265329097538640e9e21202f1b141bcd42a44f3 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 21:45:32 2018 -0400 indent to match standard indent. commit 783518fbeb01d2df43ef2083d3341004c05e4e2e Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:21:15 2018 -0400 clean up the typenames commit 29b627ecf5ca9b8a143761f85a1807a6ca35ddd9 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:18:04 2018 -0400 enable feature_hh, warn about %n with non-int modifier. commit fc4ac8129e3772c4eda36658e344ec475938369c Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 15:13:47 2018 -0400 warn thar %lc, %ls, etc are unsupported. commit 7e6b433ba0552f7e52f0f034d398e9195c764326 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 13:36:25 2018 -0400 warn about hh/ll modifier (if not supported) commit 1943c9979d0013f9f38045ec04a962fbf0269f31 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 11:42:41 2018 -0400 use error facilities for format errors. commit 7811168f56dca1387055574ba8d32638da2fad96 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 15:34:21 2018 -0400 add feature flags to disable c99 enhancements until orca lib is updated. commit c2149cc5953155cfc3c3b4d0483cd25fb946b055 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 08:59:10 2018 -0400 Add printf/scanf format checking [WIP] This parses out the xprintf / xscanf format string and compares it with the function arguments. enabled via #pragma lint 16.
2018-03-24 01:51:27 +00:00
set printf printf
set charset charset
end
Newer obj/cgc.a cgc.pas cgc.asm
if {status} != 0
set cgc cgc
set objout objout
set native native
end
Newer obj/cgi.a cgi.pas cgi.comments cgi.debug
if {status} != 0
set cgi cgi
set asm asm
set cc cc
set cgc cgc
set expression expression
set parser parser
set scanner scanner
set symbol symbol
set objout objout
set native native
set dag dag
set header header
end
Newer obj/expression.a expression.pas expression.asm
if {status} != 0
set expression expression
set asm asm
set cc cc
set parser parser
end
Newer obj/mm.a mm.pas mm.asm
if {status} != 0
set mm mm
set asm asm
set cc cc
set expression expression
set parser parser
set scanner scanner
set symbol symbol
set header header
end
Newer obj/native.a native.pas native.asm
if {status} != 0
set native native
end
Newer obj/objout.a objout.pas objout.asm
if {status} != 0
set objout objout
set native native
end
Newer obj/parser.a parser.pas
if {status} != 0
set parser parser
set cc cc
end
Newer obj/scanner.a scanner.pas scanner.debug scanner.asm
if {status} != 0
set scanner scanner
set asm asm
set cc cc
set expression expression
set parser parser
set symbol symbol
set header header
set printf printf
end
Newer obj/symbol.a symbol.pas symbol.print symbol.asm
if {status} != 0
set symbol symbol
set asm asm
set cc cc
set expression expression
set parser parser
set header header
end
Newer obj/table.a table.pas table.asm
if {status} != 0
set table table
set asm asm
set expression expression
set parser parser
set scanner scanner
set charset charset
end
Newer obj/dag.a dag.pas
if {status} != 0
set dag dag
end
Newer obj/gen.a gen.pas
if {status} != 0
set dag dag
set gen gen
end
Newer obj/header.a header.pas
if {status} != 0
set cc cc
set parser parser
set header header
end
Squashed commit of the following: commit 4265329097538640e9e21202f1b141bcd42a44f3 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 21:45:32 2018 -0400 indent to match standard indent. commit 783518fbeb01d2df43ef2083d3341004c05e4e2e Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:21:15 2018 -0400 clean up the typenames commit 29b627ecf5ca9b8a143761f85a1807a6ca35ddd9 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:18:04 2018 -0400 enable feature_hh, warn about %n with non-int modifier. commit fc4ac8129e3772c4eda36658e344ec475938369c Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 15:13:47 2018 -0400 warn thar %lc, %ls, etc are unsupported. commit 7e6b433ba0552f7e52f0f034d398e9195c764326 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 13:36:25 2018 -0400 warn about hh/ll modifier (if not supported) commit 1943c9979d0013f9f38045ec04a962fbf0269f31 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 11:42:41 2018 -0400 use error facilities for format errors. commit 7811168f56dca1387055574ba8d32638da2fad96 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 15:34:21 2018 -0400 add feature flags to disable c99 enhancements until orca lib is updated. commit c2149cc5953155cfc3c3b4d0483cd25fb946b055 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 08:59:10 2018 -0400 Add printf/scanf format checking [WIP] This parses out the xprintf / xscanf format string and compares it with the function arguments. enabled via #pragma lint 16.
2018-03-24 01:51:27 +00:00
Newer obj/printf.a printf.pas
if {status} != 0
set cc cc
set printf printf
set expression expression
Squashed commit of the following: commit 4265329097538640e9e21202f1b141bcd42a44f3 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 21:45:32 2018 -0400 indent to match standard indent. commit 783518fbeb01d2df43ef2083d3341004c05e4e2e Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:21:15 2018 -0400 clean up the typenames commit 29b627ecf5ca9b8a143761f85a1807a6ca35ddd9 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:18:04 2018 -0400 enable feature_hh, warn about %n with non-int modifier. commit fc4ac8129e3772c4eda36658e344ec475938369c Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 15:13:47 2018 -0400 warn thar %lc, %ls, etc are unsupported. commit 7e6b433ba0552f7e52f0f034d398e9195c764326 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 13:36:25 2018 -0400 warn about hh/ll modifier (if not supported) commit 1943c9979d0013f9f38045ec04a962fbf0269f31 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 11:42:41 2018 -0400 use error facilities for format errors. commit 7811168f56dca1387055574ba8d32638da2fad96 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 15:34:21 2018 -0400 add feature flags to disable c99 enhancements until orca lib is updated. commit c2149cc5953155cfc3c3b4d0483cd25fb946b055 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 08:59:10 2018 -0400 Add printf/scanf format checking [WIP] This parses out the xprintf / xscanf format string and compares it with the function arguments. enabled via #pragma lint 16.
2018-03-24 01:51:27 +00:00
end
Newer obj/charset.a charset.pas
if {status} != 0
set cc cc
set scanner scanner
set charset charset
end
else
for i
set {i} {i}
end
end
set exit on
if "{table}" == table
if "{ccommon}" == ccommon
echo compile +t +e ccommon.pas keep=obj/ccommon
compile +t +e ccommon.pas keep=obj/ccommon
unset ccommon
end
echo compile +t +e table.pas keep=obj/table
compile +t +e table.pas keep=obj/table
echo assemble +t +e table.asm keep=obj/table
assemble +t +e table.asm keep=obj/table
echo delete obj/table.root
delete obj/table.root
end
set list ""
set list {ccommon} {mm} {cgi} {charset} {scanner} {symbol} {header}
set list {list} {printf} {expression} {cgc} {asm} {parser} {cc}
set list {list} {objout} {native} {gen} {dag}
Squashed commit of the following: commit 4265329097538640e9e21202f1b141bcd42a44f3 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 21:45:32 2018 -0400 indent to match standard indent. commit 783518fbeb01d2df43ef2083d3341004c05e4e2e Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:21:15 2018 -0400 clean up the typenames commit 29b627ecf5ca9b8a143761f85a1807a6ca35ddd9 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 20:18:04 2018 -0400 enable feature_hh, warn about %n with non-int modifier. commit fc4ac8129e3772c4eda36658e344ec475938369c Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 15:13:47 2018 -0400 warn thar %lc, %ls, etc are unsupported. commit 7e6b433ba0552f7e52f0f034d398e9195c764326 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 13:36:25 2018 -0400 warn about hh/ll modifier (if not supported) commit 1943c9979d0013f9f38045ec04a962fbf0269f31 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Mar 23 11:42:41 2018 -0400 use error facilities for format errors. commit 7811168f56dca1387055574ba8d32638da2fad96 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 15:34:21 2018 -0400 add feature flags to disable c99 enhancements until orca lib is updated. commit c2149cc5953155cfc3c3b4d0483cd25fb946b055 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Mar 22 08:59:10 2018 -0400 Add printf/scanf format checking [WIP] This parses out the xprintf / xscanf format string and compares it with the function arguments. enabled via #pragma lint 16.
2018-03-24 01:51:27 +00:00
if "{list}" != ""
for i in {list}
echo compile +t +e {i}.pas keep=obj/{i}
compile +t +e {i}.pas keep=obj/{i}
end
end
unset exit
set exit on
compile linkit
echo filetype 5/cc exe $DB01
filetype 5/cc exe $DB01