-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiler.Mod and CompilerCmd.Mod added,
Compiler.Tool added, ocl.bash removed, executable ocl added, Configuration*.Mod replaced by oberon.Mod, libOberonV4.so etc. split into individual module libraries, library name pattern is now lib_V4_<module>.so. Various minor cleanups.
- Loading branch information
Showing
56 changed files
with
1,049 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
# | ||
# This script is called by the command ocl for compiling and linking an Oberon | ||
# module <M> from <M>.c into a shared library lib<outname>.so or, | ||
# if the option -m is specified, into an executable file named <outname>. | ||
# | ||
# SYNOPSIS | ||
# cl.bash M outname options ccOptions | ||
# | ||
# options = "-" {"m" | "V" | "G" | "O"} | ||
# ccOptions = quoted string passed to cc | ||
# m compile into executable main program | ||
# V verbose mode | ||
# G generate debug symbols | ||
# O optimize generated code | ||
|
||
if [[ $# != 4 ]]; then | ||
echo "cl.bash: illegal number of arguments" | ||
exit 1 | ||
else | ||
opt="" | ||
if [[ $3 =~ .*G.* ]]; then | ||
opt="$opt -g" | ||
fi | ||
if [[ $3 =~ .*O.* ]]; then | ||
opt="$opt -O" | ||
fi | ||
if [[ $3 =~ .*m.* ]]; then | ||
# compile and link <M>.c into executable | ||
rm -f $2 | ||
if [[ $3 =~ .*V.* ]]; then | ||
echo "rm -f $2" | ||
echo "cc $opt $1.c -I$OFRONT_HOME/V4_ofront -o $2 -L. -L$OFRONT_HOME/lib $4" | ||
fi | ||
cc $opt $1.c -I$OFRONT_HOME/V4_ofront -o $2 -L. -L$OFRONT_HOME/lib $4 | ||
else | ||
# compile and link <M>.c into shared library lib<M>.so | ||
rm -f lib$2.so | ||
if [[ $3 =~ .*V.* ]]; then | ||
echo "rm -f lib$2.so" | ||
echo "cc $opt $1.c -I$OFRONT_HOME/V4_ofront -shared -o lib$2.so -L. -L$OFRONT_HOME/lib $4" | ||
fi | ||
cc $opt $1.c -I$OFRONT_HOME/V4_ofront -shared -o lib$2.so -L. -L$OFRONT_HOME/lib $4 | ||
fi | ||
fi |
Oops, something went wrong.