13 #unset BB_STANDARD_DIR
16 #unset BB_PACKED_FIRST
20 # dev binares do this automatically
21 #exeargs="/PACKEDFIRST"
23 exe
="./blackboxInterp"
25 while [ $# -gt 0 ]; do
26 if [ "z$1" = "zdev" ]; then exe
="./dev0lin"
27 elif [ "z$1" = "zdevfpu" ]; then exe
="./dev0lin.64fpu"
28 elif [ "z$1" = "zlin" ]; then ARCH
="$DEFLINARCH"
29 elif [ "z$1" = "zLin" ]; then ARCH
="$DEFLINARCH"
30 elif [ "z$1" = "zlinX11" ]; then ARCH
="LinX11"
31 elif [ "z$1" = "zLinX11" ]; then ARCH
="LinX11"
32 elif [ "z$1" = "zX11" ]; then ARCH
="LinX11"
33 elif [ "z$1" = "zx11" ]; then ARCH
="LinX11"
34 elif [ "z$1" = "zwin" ]; then ARCH
="Win"
35 elif [ "z$1" = "zWin" ]; then ARCH
="Win"
36 elif [ "z$1" = "znoextra" ]; then BUILDEXTRA
="ona"
37 elif [ "z$1" = "zlinkonly" ]; then LINKONLY
="tan"
38 elif [ "z$1" = "z-h" ]; then
39 echo "usage: $0 [dev|devfpu] [lin|win] [noextra]"
48 if [ $ARCH = "LinX11" ]; then
54 if [ ! -x "$exe" ]; then
55 echo "MSG: no ${exe} detected, switching to dev"
58 echo "MSG: using binary '$exe'"
95 ################################################################
96 if [ $LINKONLY = ona
]; then
97 echo "compiling common base system"
98 "${exe}" $exeargs <<DATA
99 DevCompiler.SetCrossArch $ARCH
100 DevCompiler.CompileThis Builtins486^
101 DevCompiler.CompileSubs Host System Std Cons Raster Text Form Dev Comm Sql Ole Obx Diff Lamentdev Lament Srex Stroke Qjack
105 if [ $res -ne 0 ]; then
114 "${exe}" $exeargs <<DATA
115 DevCompiler.SetCrossArch $ARCH
116 DevLinker1.LinkElfExe $LINKARCH $GUIBIN := Builtins486 Kernel$+ $SUBLIST_COMMON HostGui HostLoader $GUI_RESLIST
120 if [ $res -ne 0 ]; then
125 if [ "$ENABLE_INTERP" = "tan" ]; then
126 echo "linking console interpreter"
127 "${exe}" $exeargs <<DATA
128 DevCompiler.SetCrossArch $ARCH
129 DevLinker1.LinkElfExe $LINKARCH dos blackboxInterp := Builtins486 Kernel$+ $SUBLIST_COMMON HostIntLoader 1 BlackBox.res
133 if [ $res -ne 0 ]; then
139 ### if [ "z$ARCH" = "zWin" ]; then
140 ### # HostKernel is required because "HostSubArch" is different
141 ### echo "compiling and linking Windows/MDI system"
142 ### # HostTabFrames is not used anymore, but let's keep it compiled for now
143 ### "${exe}" $exeargs <<DATA
144 ### DevCompiler.SetCrossArch "${ARCH}Mdi"
145 ### DevCompiler.CompileThis HostSubArch HostShowHook HostCFrames HostTabFrames HostMenus HostConfig HostInit HostKernel
146 ### DevLinker1.LinkElfExe $LINKARCH blackboxMDI := Builtins486 Kernel$+ $SUBLIST_COMMON HostGui HostLoader $GUI_RESLIST
150 ### if [ $res -ne 0 ]; then
151 ### echo "*** ERROR ***"
155 ################################################################
158 if [ $BUILDEXTRA = "tan" ]; then
159 echo "compiling some additional modules for GUI"
161 MORESUBS
="Brahe Check Srcnav Xhtml Cpc Mysql SQLite Zlib Xpack CPfront"
163 "${exe}" $exeargs <<DATA
164 DevCompiler.SetCrossArch $ARCH
165 DevCompiler.CompileSubs $MORESUBS
169 if [ $res -ne 0 ]; then
177 "${exe}" $exeargs <<DATA
178 DevCompiler.SetCrossArch $ARCH
179 DevCompiler.CompileSubs O3app O3base O3bb O3host O3std App
183 if [ $res -ne 0 ]; then
189 echo "compiling Other"
191 "${exe}" $exeargs <<DATA
192 DevCompiler.SetCrossArch $ARCH
193 DevCompiler.CompileSubs Other
198 if [ $res -ne 0 ]; then