Add submodules, better make
This commit is contained in:
parent
af16eb5f0b
commit
187d331cf2
|
@ -0,0 +1,6 @@
|
||||||
|
[submodule "vondehi"]
|
||||||
|
path = vondehi
|
||||||
|
url = https://gitlab.com/PoroCYon/vondehi.git
|
||||||
|
[submodule "Section-Header-Stripper"]
|
||||||
|
path = Section-Header-Stripper
|
||||||
|
url = https://github.com/blackle/Section-Header-Stripper
|
18
Makefile
18
Makefile
|
@ -1,15 +1,23 @@
|
||||||
|
|
||||||
all : gtk-webkit_opt.elf.xz
|
all : gtk-webkit
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
packer : vondehi/vondehi.asm
|
||||||
|
cd vondehi; nasm -fbin -o vondehi vondehi.asm
|
||||||
|
|
||||||
gtk-webkit.elf : gtk-webkit.c Makefile
|
gtk-webkit.elf : gtk-webkit.c Makefile
|
||||||
gcc -o $@ $< `pkg-config --cflags webkit2gtk-4.0` -lgobject-2.0 -lgtk-3 -lwebkit2gtk-4.0 -no-pie -fno-plt -Os -std=gnu11 -nostartfiles -nostdlib
|
gcc -o $@ $< `pkg-config --cflags webkit2gtk-4.0` -lgobject-2.0 -lgtk-3 -lwebkit2gtk-4.0 -no-pie -fno-plt -Os -std=gnu11 -nostartfiles -nostdlib
|
||||||
|
|
||||||
|
gtk-webkit : gtk-webkit_opt.elf.packed
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
%_opt.elf : %.elf Makefile
|
%_opt.elf : %.elf Makefile
|
||||||
cp $< $@
|
cp $< $@
|
||||||
strip $@
|
strip $@
|
||||||
strip -R .note -R .comment -R .eh_frame -R .eh_frame_hdr -R .note.gnu.build-id -R .got -R .got.plt -R .gnu.version -R .rela.dyn -R .shstrtab $@
|
strip -R .note -R .comment -R .eh_frame -R .eh_frame_hdr -R .note.gnu.build-id -R .got -R .got.plt -R .gnu.version -R .rela.dyn -R .shstrtab $@
|
||||||
#remove section header
|
#remove section header
|
||||||
/home/blackle/Code/Projects/section-stripper/section-stripper.py $@
|
./section-stripper/section-stripper.py $@
|
||||||
|
|
||||||
#clear out useless bits
|
#clear out useless bits
|
||||||
sed -i 's/_edata/\x00\x00\x00\x00\x00\x00/g' $@;
|
sed -i 's/_edata/\x00\x00\x00\x00\x00\x00/g' $@;
|
||||||
|
@ -24,4 +32,10 @@ gtk-webkit.elf : gtk-webkit.c Makefile
|
||||||
lzma --format=lzma -9 --extreme --lzma1=preset=9,lc=1,lp=0,pb=1,nice=270,depth=64,dict=16384 --keep --stdout $< > $@
|
lzma --format=lzma -9 --extreme --lzma1=preset=9,lc=1,lp=0,pb=1,nice=270,depth=64,dict=16384 --keep --stdout $< > $@
|
||||||
wc -c $@
|
wc -c $@
|
||||||
|
|
||||||
|
%.packed : %.xz packer Makefile
|
||||||
|
cat ./vondehi/vondehi $< > $@
|
||||||
|
chmod +x $@
|
||||||
|
wc -c $@
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
|
rm *.xz *.elf *.packed gtk-webkit
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a4c7aea4f06d2258009e10b322cacafa1d25662d
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 859c6c11d08634bf51087337ff6fbf4bef69e0dd
|
Loading…
Reference in New Issue