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
Notes:
sideshowbarker
2024-07-19 14:32:54 +09:00
Author: https://github.com/sleepy-monax Commit: https://github.com/SerenityOS/serenity/commit/4977fd22b87 Pull-request: https://github.com/SerenityOS/serenity/pull/8
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:
|
||||
@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
|
||||
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
|
|
@ -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
Reference in a new issue