-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.gdc.bat
53 lines (44 loc) · 2.96 KB
/
make.gdc.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
echo Initialising and updating submodules
git submodule update --init --quiet
echo Building debug tiano objects
gcc -g -c PMPatch/Tiano/TianoDecompress.c -o TianoDecompress.debug.o
gcc -g -c PMPatch/Tiano/TianoCompress.c -o TianoCompress.debug.o
echo Building release tiano objects
gcc -O2 -c PMPatch/Tiano/TianoDecompress.c -o TianoDecompress.release.o
gcc -O2 -c PMPatch/Tiano/TianoCompress.c -o TianoCompress.release.o
echo Building patch generator manifest
windres --input=patchgen.rc --input-format=rc --output=patchgen.res --output-format=coff
echo Building debug patch generator
gdc -g -fdebug -o patchgen.debug.exe patchgen.d EFIHeaders.d Utils.d Patch.d PatchLexer.d PatchParser.d patchgen.res
echo Building release patch generator
gdc -o patchgen.release.exe -O1 patchgen.d EFIHeaders.d Utils.d Patch.d PatchLexer.d PatchParser.d patchgen.res
strip patchgen.release.exe
echo Building patcher manifest
windres --input=patcher.rc --input-format=rc --output=patcher.res --output-format=coff
echo Building debug patcher
gdc -g -fdebug -o patcher.debug.exe patcher.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.debug.o TianoCompress.debug.o patcher.res
echo Building release patcher
gdc -o patcher.release.exe -O1 patcher.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.release.o TianoCompress.release.o patcher.res
strip patcher.release.exe
echo Building extractor manifest
windres --input=extractor.rc --input-format=rc --output=extractor.res --output-format=coff
echo Building debug extractor
gdc -g -fdebug -o extractor.debug.exe extractor.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.debug.o TianoCompress.debug.o extractor.res
echo Building release extractor
gdc -o extractor.release.exe -O1 extractor.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.release.o TianoCompress.release.o extractor.res
strip extractor.release.exe
echo Building injector manifest
windres --input=injector.rc --input-format=rc --output=injector.res --output-format=coff
echo Building debug injector
gdc -g -fdebug -o injector.debug.exe injector.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.debug.o TianoCompress.debug.o injector.res
echo Building release injector
gdc -o injector.release.exe -O1 injector.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.release.o TianoCompress.release.o injector.res
strip injector.release.exe
echo Building info executable manifest
windres --input=info.rc --input-format=rc --output=info.res --output-format=coff
echo Building debug info executable
gdc -g -fdebug -o info.debug.exe info.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.debug.o TianoCompress.debug.o info.res
echo Building release info executable
gdc -o info.release.exe -O1 info.d EFI.d EFIHeaders.d EFIUtils.d Console.d Utils.d Patch.d TianoDecompress.release.o TianoCompress.release.o info.res
strip info.release.exe > NUL 2>NUL