diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-08-23 16:22:13 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-08-23 16:22:13 +0200 |
| commit | ea20bd9b5bcff9db1d86d83188e1e899799f324b (patch) | |
| tree | 615e2f00e385e93061524c9647b64010ba7df3dd /src/code/build.sh | |
checkpoint
Diffstat (limited to 'src/code/build.sh')
| -rwxr-xr-x | src/code/build.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/code/build.sh b/src/code/build.sh new file mode 100755 index 0000000..eb49392 --- /dev/null +++ b/src/code/build.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +ThisDir="$(dirname "$(readlink -f "$0")")" +cd "$ThisDir" + +Compiler="clang" + +CompilerFlags=" +-g +-nostdinc++ +-DSIM86_INTERNAL +" + +WarningFlags=" +-Wall +-Wextra +-Wno-unused-label +-Wno-unused-variable +-Wno-unused-function +-Wno-unused-but-set-variable +-Wno-missing-field-initializers +-Wno-write-strings +" + +Libs="./reference_decoder/sim86_lib.cpp" + +if false +then + Source="./shared_library_test.cpp" + printf '%s\n' "$Source" + $Compiler $CompilerFlags $WarningFlags \ + -o ../build/shared_library_test \ + $Libs $Source +fi + +Source="sim86.cpp" +printf '%s\n' "$Source" +$Compiler $CompilerFlags $WarningFlags \ + -o ../build/sim86 \ + $Libs $Source |
