Commit 61563c4f authored by John van Groningen's avatar John van Groningen
Browse files

in clean-classic for linux-x64 update build_boot.sh

parent ae7a2481
Pipeline #50582 passed with stage
in 15 minutes and 49 seconds
set -e
mkdir -p boot
cp -R -p clean boot/clean
cd boot/clean
make
cd ../..
cp -r -p clean boot/clean
(cd boot/clean; make)
mv boot/clean boot/clean0
cp -r -p clean boot/clean
cp txt/README.boot boot/clean/README
./remove_bin.sh
cp ./clean-classic/linux-x64/txt/README.boot boot/clean/README
./clean-classic/linux-x64/remove_bin.sh
for m in StdArray StdEnv StdOverloaded _SystemArray StdOverloadedList \
_SystemEnum StdFunc _SystemEnumStrict StdCharList StdStrictLists \
_SystemEnum StdFunc StdFunctions _SystemEnumStrict StdCharList StdStrictLists \
_SystemStrictLists StdClass StdList StdDebug StdTuple StdEnum \
StdOrdList StdGeneric;
StdOrdList StdGeneric StdMaybe;
do cp -p "boot/clean0/lib/StdEnv/Clean System Files/"$m.abc "boot/clean/StdEnv/Clean System Files/"$m.abc;
done
mkdir -p boot/clean/src
cp txt/Makefile_boot boot/clean/src/Makefile
cp ./clean-classic/linux-x64/txt/Makefile_boot boot/clean/src/Makefile
cd boot/clean/src
#../../../export.sh RuntimeSystem
../../../svn_export.sh clean-run-time-system/trunk RuntimeSystem
#../../../export.sh CodeGenerator
../../../svn_export.sh clean-code-generator/trunk CodeGenerator
#../../../export.sh tools/clm
../../../svn_export.sh clean-tools/trunk/clm tools/clm
#../../../export.sh libraries/ArgEnvUnix
../../../svn_export.sh clean-libraries/trunk/Libraries/ArgEnvUnix libraries/ArgEnvUnix
#../../../export.sh compiler
../../../svn_export.sh clean-compiler/trunk compiler
#../../../export.sh tools/htoclean
../../../svn_export.sh clean-tools/trunk/htoclean tools/htoclean
rm CodeGenerator/CodeGenLib
rm CodeGenerator/CodeGenLib_o
rm CodeGenerator/CodeGenLib_xo
../../../clean-classic/linux-x64/git_clone.sh clean-compiler-and-rts/run-time-system.git RuntimeSystem
rm -Rf RuntimeSystem/.git
../../../clean-classic/linux-x64/git_clone.sh clean-compiler-and-rts/code-generator.git CodeGenerator
rm -Rf CodeGenerator/.git
../../../clean-classic/linux-x64/git_clone.sh clean-and-itasks/clm.git clm
rm -Rf clm/.git
../../../clean-classic/linux-x64/svn_export.sh clean-tools/trunk/htoclean tools/htoclean
../../../clean-classic/linux-x64/git_clone_no_checkout_depth_1.sh clean-and-itasks/clean-libraries.git clean-libraries
(cd clean-libraries; git checkout master Libraries/ArgEnvUnix Libraries/StdLib Libraries/Directory)
rm -Rf clean-libraries/.git
(cp "tools/htoclean/Clean.h" "clean-libraries/Libraries/Directory/Clean System Files Unix/Clean.h"; cd clean-libraries/Libraries/Directory; mkdir "Clean System Files"; gcc -c -O "Clean System Files Unix/cDirectory.c" -o "Clean System Files/cDirectory.o")
../../../clean-classic/linux-x64/git_clone.sh clean-compiler-and-rts/compiler.git compiler
rm -Rf compiler/.git
../../../clean-classic/linux-x64/svn_export.sh clean-tools/trunk/elf_linker elf_linker
../../../clean-classic/linux-x64/git_clone.sh clean-and-itasks/clean-ide.git clean-ide
rm -Rf clean-ide/.git
chmod +x RuntimeSystem/remove_tmp_files_linux
cd ../../..
for p in compiler/main/Unix libraries/ArgEnvUnix compiler/frontend compiler/backend compiler/main;
for p in elf_linker elf_linker/ai64 compiler/main/Unix \
clean-libraries/Libraries/ArgEnvUnix compiler/frontend compiler/backend compiler/main;
do mkdir -p "boot/clean/src/$p/Clean System Files";
cp "$p/Clean System Files/"*.abc "boot/clean/src/$p/Clean System Files";
done
rm boot/clean/bin/clm
rm boot/clean/bin/htoclean
rm boot/clean/bin/patch_bin
rm boot/clean/bin/BatchBuild
rm boot/clean/bin/cpm
rm boot/clean/exe/cg
rm boot/clean/exe/cocl
rm boot/clean/exe/linker
#rm boot/clean/data/CleanIDE
#rm boot/clean/data/ShowHeapProfile
#rm boot/clean/data/ShowTimeProfile
all: ../StdEnv/Clean\ System\ Files/_startup.o ../StdEnv/Clean\ System\ Files/_startupTrace.o ../exe/cg ../StdEnv/Clean\ System\ Files/_system.o ../bin/patch_bin ../bin/clm tools/clm/clms ../exe/cocl ../bin/htoclean
all: ../StdEnv/Clean\ System\ Files/_startup.o ../StdEnv/Clean\ System\ Files/_startupProfile.o ../StdEnv/Clean\ System\ Files/_startupTrace.o ../exe/cg ../StdEnv/Clean\ System\ Files/_system.o ../bin/patch_bin ../bin/clm clm/clms ../exe/linker ../exe/cocl ../bin/htoclean ../bin/BatchBuild ../bin/cpm
../StdEnv/Clean\ System\ Files/_startup.o: RuntimeSystem/macho64/_startup.o
cp RuntimeSystem/macho64/_startup.o ../StdEnv/Clean\ System\ Files/_startup.o
../StdEnv/Clean\ System\ Files/_startup.o: RuntimeSystem/linux64/_startup.o
cp RuntimeSystem/linux64/_startup.o ../StdEnv/Clean\ System\ Files/_startup.o
../StdEnv/Clean\ System\ Files/_startupTrace.o: RuntimeSystem/macho64/_startupTrace.o
cp RuntimeSystem/macho64/_startupTrace.o ../StdEnv/Clean\ System\ Files/_startupTrace.o
../StdEnv/Clean\ System\ Files/_startupProfile.o: RuntimeSystem/linux64Profile/_startupProfile.o
cp RuntimeSystem/linux64Profile/_startupProfile.o ../StdEnv/Clean\ System\ Files/_startupProfile.o
RuntimeSystem/macho64/_startup.o:
cd RuntimeSystem/macho64 ; ./make.sh
../StdEnv/Clean\ System\ Files/_startupTrace.o: RuntimeSystem/linux64Trace/_startupTrace.o
cp RuntimeSystem/linux64Trace/_startupTrace.o ../StdEnv/Clean\ System\ Files/_startupTrace.o
RuntimeSystem/macho64/_startupTrace.o:
cd RuntimeSystem/macho64 ; ./make.sh
RuntimeSystem/linux64/_startup.o:
cd RuntimeSystem ; ./remove_tmp_files_linux ; ./make_astartup.csh
RuntimeSystem/linux64Profile/_startupProfile.o:
cd RuntimeSystem ; ./remove_tmp_files_linux ; ./make_astartupProfile.csh
RuntimeSystem/linux64Trace/_startupTrace.o:
cd RuntimeSystem ; ./remove_tmp_files_linux ; ./make_astartupTrace.csh
../StdEnv/Clean\ System\ Files/_system.o: ../exe/cg
cd ../StdEnv/Clean\ System\ Files ; ../../exe/cg _system
......@@ -21,46 +27,55 @@ RuntimeSystem/macho64/_startupTrace.o:
CodeGenerator/cg:
cd CodeGenerator; \
$(MAKE) -f Makefile.macosx64
$(MAKE) -f Makefile.linux64
../bin/patch_bin: tools/clm/patch_bin
cp tools/clm/patch_bin ../bin/patch_bin
../bin/patch_bin: clm/patch_bin
cp clm/patch_bin ../bin/patch_bin
tools/clm/patch_bin:
cd tools/clm; \
$(MAKE) -f Makefile.macho64 patch_bin
clm/patch_bin:
cd clm; \
$(MAKE) -f Makefile.linux64 patch_bin
../bin/clm: tools/clm/clm
cp tools/clm/clm ../bin/clm
../bin/clm: clm/clm
cp clm/clm ../bin/clm
../bin/patch_bin ../bin/clm CLEANLIB $(CWD)/../exe
../bin/patch_bin ../bin/clm CLEANPATH $(CWD)/../StdEnv
tools/clm/clm:
cd tools/clm; \
$(MAKE) -f Makefile.macho64 clm
clm/clm:
cd clm; \
$(MAKE) -f Makefile.linux64 clm
tools/clm/clms:
cd tools/clm; \
$(MAKE) -f Makefile.macho64 clms
../bin/patch_bin tools/clm/clms CLEANLIB $(CWD)/../exe
../bin/patch_bin tools/clm/clms CLEANPATH $(CWD)/../StdEnv
clm/clms:
cd clm; \
$(MAKE) -f Makefile.linux64 clms
../bin/patch_bin clm/clms CLEANLIB $(CWD)/../exe
../bin/patch_bin clm/clms CLEANPATH $(CWD)/../StdEnv
libraries/ArgEnvUnix/ArgEnvC.o:
cd libraries/ArgEnvUnix; make ArgEnvC.o
clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o:
cd clean-libraries/Libraries/ArgEnvUnix; make ArgEnvC.o
compiler/main/Unix/set_return_code_c.o:
cd compiler/main/Unix; make all
../exe/linker: elf_linker/linker
cp elf_linker/linker ../exe/linker
elf_linker/linker: clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code_c.o
cd elf_linker; \
../clm/clms -I ai64 -I ../clean-libraries/Libraries/ArgEnvUnix -I ../compiler/main/Unix -s 4m -h 30m -nt -nr linker -o linker; \
cp linker ../../exe/linker; \
../../bin/clm -I ai64 -I ../clean-libraries/Libraries/ArgEnvUnix -I ../compiler/main/Unix -s 4m -h 30m -nt -nr linker -o linker
../exe/cocl: compiler/cocl
cp compiler/cocl ../exe/cocl
compiler/cocl: libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code_c.o
compiler/cocl: clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code_c.o
cd compiler; \
cd backendC/CleanCompilerSources; make -f Makefile.linux64; cd ../..; \
../../bin/clm -O _system; \
../../bin/clm -nt -nw -ci -ns -nr -I backend -I frontend -I main -I main/Unix -O compare_constructor ; \
../../bin/clm -gcm -h 48M -nt -nw -ci -nr -I backend -I frontend -I main -I main/Unix \
-I ../libraries/ArgEnvUnix \
../../bin/clm -gcm -h 40M -nt -nw -ci -nr -I backend -I frontend -I main -I main/Unix \
-I ../clean-libraries/Libraries/ArgEnvUnix \
-l backendC/CleanCompilerSources/backend.a \
cocl -o cocl
......@@ -69,10 +84,22 @@ compiler/cocl: libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code
tools/htoclean/htoclean:
cd tools/htoclean/htoclean\ source\ code; \
../../../../bin/clm -I ../../../libraries/ArgEnvUnix -h 4m -nt -nr -I unix htoclean -o ../htoclean
../../../../bin/clm -I ../../../clean-libraries/Libraries/ArgEnvUnix -l ../../../clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o -h 4m -nt -nr -I unix htoclean -o ../htoclean
../bin/BatchBuild: clean-ide/BatchBuild/BatchBuild
cp clean-ide/BatchBuild/BatchBuild ../bin/BatchBuild
clean-ide/BatchBuild/BatchBuild:
cd clean-ide; \
../../bin/clm -nt -nr -I BatchBuild -I Pm -I Unix -I Unix/Intel -I Util -I Interfaces/LinkerInterface -I ../clean-libraries/Libraries/StdLib -I ../clean-libraries/Libraries/Directory -I ../clean-libraries/Libraries/ArgEnvUnix BatchBuild -o BatchBuild/BatchBuild
../bin/cpm: clean-ide/cpm/cpm
cp clean-ide/cpm/cpm ../bin/cpm
clean-ide/cpm/cpm:
cd clean-ide; \
../../bin/clm -nt -nr -I cpm -I cpm/Posix -I BatchBuild -I Pm -I Unix -I Unix/Intel -I Util -I Interfaces/LinkerInterface -I ../clean-libraries/Libraries/StdLib -I ../clean-libraries/Libraries/Directory -I ../clean-libraries/Libraries/ArgEnvUnix Cpm -o cpm/cpm
CWD = $(MCWD)$(GMCWD)
MCWD : sh=pwd
GMCWD = ${shell echo `pwd`}
Installing Clean
================
Clean uses the linker and assembler from Apple. These are not
installed by default. Therefore first Apple's XCode must be installed.
The Mac OS X 10.6 install DVD includes a copy of XCode. XCode for
Mac OS X 10.7 can be downloaded at:
http://developer.apple.com/technologies/tools/
First compile the executable files using:
cd src
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment