mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
Toolchain: The toolchain script is now working 🎉
This commit is contained in:
parent
4977fd22b8
commit
3761bc3ed7
3 changed files with 12 additions and 4 deletions
|
@ -82,6 +82,6 @@ install: $(LIBRARY)
|
||||||
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
|
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
|
||||||
# Install the library
|
# Install the library
|
||||||
cp $(LIBRARY) ../Base/usr/lib
|
cp $(LIBRARY) ../Base/usr/lib
|
||||||
cp crt0.o ../Base/usr/lib/
|
cp crt0.o ../Base/usr/lib/
|
||||||
cp crti.ao ../Base/usr/lib/crti.o
|
cp crti.ao ../Base/usr/lib/crti.o
|
||||||
cp crtn.ao ../Base/usr/lib/crtn.o
|
cp crtn.ao ../Base/usr/lib/crtn.o
|
|
@ -21,3 +21,8 @@ $(LIBRARY): $(OBJS)
|
||||||
clean:
|
clean:
|
||||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
||||||
|
|
||||||
|
install: $(LIBRARY)
|
||||||
|
# Copy headers
|
||||||
|
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
|
||||||
|
# Install the library
|
||||||
|
cp $(LIBRARY) ../Base/usr/lib
|
|
@ -9,6 +9,8 @@ SYSROOT="$DIR/../Base"
|
||||||
|
|
||||||
mkdir -p "$DIR/Tarballs"
|
mkdir -p "$DIR/Tarballs"
|
||||||
|
|
||||||
|
source "$DIR/UseIt.sh"
|
||||||
|
|
||||||
pushd "$DIR/Tarballs"
|
pushd "$DIR/Tarballs"
|
||||||
if [ ! -e "binutils-2.32.tar.gz" ]; then
|
if [ ! -e "binutils-2.32.tar.gz" ]; then
|
||||||
wget "http://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz"
|
wget "http://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz"
|
||||||
|
@ -71,7 +73,8 @@ pushd "$DIR/Build/"
|
||||||
make -j $(nproc) all-gcc all-target-libgcc
|
make -j $(nproc) all-gcc all-target-libgcc
|
||||||
make install-gcc install-target-libgcc
|
make install-gcc install-target-libgcc
|
||||||
|
|
||||||
make -c ../LibC/ install
|
make -C "$DIR/../LibC/" install
|
||||||
|
make -C "$DIR/../LibM/" install
|
||||||
|
|
||||||
make all-target-libstdc++-v3
|
make all-target-libstdc++-v3
|
||||||
make install-target-libstdc++-v3
|
make install-target-libstdc++-v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue