blob: 5d5a59876dc9c02f6fd8ac77e30de2ecb93c88f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
ThisDir="$(dirname "$(readlink -f "$0")")"
cd "$ThisDir"
Compiler="clang"
CompilerFlags="
-g
-fdiagnostics-absolute-paths
-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
|