TinyC compiler!
This commit is contained in:
parent
eadc8bc8a1
commit
e6ff1770ca
@ -84,6 +84,9 @@ cd ..
|
||||
cd nasm
|
||||
./make.sh
|
||||
cd ..
|
||||
cd tcc
|
||||
./make.sh
|
||||
cd ..
|
||||
|
||||
cp $HOME/Downloads/DOOM1.WAD $HOME/Quinn/fsroot/games/
|
||||
|
||||
|
46
programs/external/tcc/make.sh
vendored
Executable file
46
programs/external/tcc/make.sh
vendored
Executable file
@ -0,0 +1,46 @@
|
||||
if [ ! -e $HOME/Quinn/fsroot ]
|
||||
then
|
||||
echo "${HOME}/Quinn/fsroot doesn't exist! Please run make_userland.sh first!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -e tcc-0.9.27.tar.bz2 ]
|
||||
then
|
||||
wget https://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
|
||||
fi
|
||||
|
||||
|
||||
tar xf tcc-0.9.27.tar.bz2
|
||||
cd tcc-0.9.27
|
||||
patch -p1 < ../tcc-0.9.27.diff
|
||||
|
||||
make
|
||||
|
||||
if [ ! -e $HOME/Quinn/fsroot/licenses ]
|
||||
then
|
||||
mkdir $HOME/Quinn/fsroot/licenses
|
||||
fi
|
||||
|
||||
cp COPYING $HOME/Quinn/fsroot/licenses/tcc.license
|
||||
|
||||
if [ ! -e $HOME/Quinn/fsroot/tcc ]
|
||||
then
|
||||
mkdir $HOME/Quinn/fsroot/tcc
|
||||
fi
|
||||
|
||||
if [ ! -e $HOME/Quinn/fsroot/tcc/lib/tcc ]
|
||||
then
|
||||
mkdir -p $HOME/Quinn/fsroot/tcc/lib/tcc
|
||||
fi
|
||||
|
||||
mv i386-tcc.exe $HOME/Quinn/fsroot/tcc/
|
||||
mv i386-libtcc1.a $HOME/Quinn/fsroot/tcc/lib/tcc
|
||||
|
||||
cp -r $HOME/Quinn/sysroot/usr/i686-quinn/lib/* $HOME/Quinn/fsroot/tcc/lib
|
||||
cp -r $HOME/Quinn/sysroot/usr/i686-quinn/include $HOME/Quinn/fsroot/tcc
|
||||
cp include/* $HOME/Quinn/fsroot/tcc/include/
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf tcc-0.9.27
|
||||
|
7220
programs/external/tcc/tcc-0.9.27.diff
vendored
Normal file
7220
programs/external/tcc/tcc-0.9.27.diff
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user