Toolchain: Useit.sh finish and added an install target for the libc's Makefile and a bit of ground work for a gcc port

This commit is contained in:
VAN BOSSUYT Nicolas 2019-04-17 17:29:45 +02:00 committed by Andreas Kling
parent 8ac813135a
commit 4977fd22b8
7 changed files with 23 additions and 2 deletions

2
Base/usr/include/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.git*

View file

2
Base/usr/lib/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.git*

0
Base/usr/lib/.gitkeep Normal file
View file

View file

@ -77,3 +77,11 @@ $(LIBRARY): $(CPP_OBJS) $(ASM_OBJS)
clean:
@echo "CLEAN"; rm -f $(LIBRARY) $(CPP_OBJS) $(ASM_OBJS) *.d
install: $(LIBRARY)
# Copy headers
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
# Install the library
cp $(LIBRARY) ../Base/usr/lib
cp crt0.o ../Base/usr/lib/
cp crti.ao ../Base/usr/lib/crti.o
cp crtn.ao ../Base/usr/lib/crtn.o

View file

@ -5,7 +5,7 @@ echo $DIR
TARGET=i686-pc-serenity
PREFIX="$DIR/Local"
SYSROOT="$DIR/../Root"
SYSROOT="$DIR/../Base"
mkdir -p "$DIR/Tarballs"
@ -70,5 +70,10 @@ pushd "$DIR/Build/"
make -j $(nproc) all-gcc all-target-libgcc
make install-gcc install-target-libgcc
make -c ../LibC/ install
make all-target-libstdc++-v3
make install-target-libstdc++-v3
popd
popd

View file

@ -1 +1,5 @@
#!/bin/bash
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PATH="$DIR/Local/bin:$PATH"
export TOOLCHAIN="$DIR"
echo "$PATH"