mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
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:
parent
8ac813135a
commit
4977fd22b8
7 changed files with 23 additions and 2 deletions
2
Base/usr/include/.gitignore
vendored
Normal file
2
Base/usr/include/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.git*
|
0
Base/usr/include/.gitkeep
Normal file
0
Base/usr/include/.gitkeep
Normal file
2
Base/usr/lib/.gitignore
vendored
Normal file
2
Base/usr/lib/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.git*
|
0
Base/usr/lib/.gitkeep
Normal file
0
Base/usr/lib/.gitkeep
Normal file
|
@ -77,3 +77,11 @@ $(LIBRARY): $(CPP_OBJS) $(ASM_OBJS)
|
||||||
clean:
|
clean:
|
||||||
@echo "CLEAN"; rm -f $(LIBRARY) $(CPP_OBJS) $(ASM_OBJS) *.d
|
@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
|
|
@ -5,7 +5,7 @@ echo $DIR
|
||||||
|
|
||||||
TARGET=i686-pc-serenity
|
TARGET=i686-pc-serenity
|
||||||
PREFIX="$DIR/Local"
|
PREFIX="$DIR/Local"
|
||||||
SYSROOT="$DIR/../Root"
|
SYSROOT="$DIR/../Base"
|
||||||
|
|
||||||
mkdir -p "$DIR/Tarballs"
|
mkdir -p "$DIR/Tarballs"
|
||||||
|
|
||||||
|
@ -70,5 +70,10 @@ 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 all-target-libstdc++-v3
|
||||||
|
make install-target-libstdc++-v3
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue