summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r--rbutil/sansapatcher/Makefile8
-rw-r--r--rbutil/sansapatcher/sansapatcher.manifest13
-rw-r--r--rbutil/sansapatcher/sansapatcher.rc1
3 files changed, 20 insertions, 2 deletions
diff --git a/rbutil/sansapatcher/Makefile b/rbutil/sansapatcher/Makefile
index c425bbc892..2c75b0caf7 100644
--- a/rbutil/sansapatcher/Makefile
+++ b/rbutil/sansapatcher/Makefile
@@ -16,6 +16,7 @@ endif
16 16
17NATIVECC = gcc 17NATIVECC = gcc
18CC = $(CROSS)gcc 18CC = $(CROSS)gcc
19WINDRES = $(CROSS)windres
19 20
20all: $(OUTPUT) 21all: $(OUTPUT)
21 22
@@ -23,10 +24,13 @@ sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c b
23 gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c 24 gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c
24 strip sansapatcher 25 strip sansapatcher
25 26
26sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c 27sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c sansapatcher-rc.o
27 $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c 28 $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c sansapatcher-rc.o
28 $(CROSS)strip sansapatcher.exe 29 $(CROSS)strip sansapatcher.exe
29 30
31sansapatcher-rc.o: sansapatcher.rc sansapatcher.manifest
32 $(WINDRES) -i sansapatcher.rc -o sansapatcher-rc.o
33
30sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc 34sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc
31 lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac 35 lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac
32 36
diff --git a/rbutil/sansapatcher/sansapatcher.manifest b/rbutil/sansapatcher/sansapatcher.manifest
new file mode 100644
index 0000000000..71bb153688
--- /dev/null
+++ b/rbutil/sansapatcher/sansapatcher.manifest
@@ -0,0 +1,13 @@
1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3 <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="sansapatcher.exe" type="win32"/>
4
5 <!-- Identify the application security requirements. -->
6 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
7 <security>
8 <requestedPrivileges>
9 <requestedExecutionLevel level="requireAdministrator"/>
10 </requestedPrivileges>
11 </security>
12 </trustInfo>
13</assembly>
diff --git a/rbutil/sansapatcher/sansapatcher.rc b/rbutil/sansapatcher/sansapatcher.rc
new file mode 100644
index 0000000000..7040637a0d
--- /dev/null
+++ b/rbutil/sansapatcher/sansapatcher.rc
@@ -0,0 +1 @@
1 24 MOVEABLE PURE "sansapatcher.manifest"