summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rbutil/ipodpatcher/Makefile8
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.manifest13
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.rc1
3 files changed, 20 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile
index f76715b9f6..267096f924 100644
--- a/rbutil/ipodpatcher/Makefile
+++ b/rbutil/ipodpatcher/Makefile
@@ -21,6 +21,7 @@ endif
NATIVECC = gcc
CC = $(CROSS)gcc
+WINDRES = $(CROSS)windres
SRC = main.c ipodpatcher.c fat32format.c parttypes.h arc4.c
@@ -30,10 +31,13 @@ ipodpatcher: $(SRC) ipodio-posix.c $(BOOTSRC)
gcc $(CFLAGS) -o ipodpatcher $(SRC) ipodio-posix.c $(BOOTSRC)
strip ipodpatcher
-ipodpatcher.exe: $(SRC) ipodio-win32.c $(BOOTSRC)
- $(CC) $(CFLAGS) -o ipodpatcher.exe $(SRC) ipodio-win32.c $(BOOTSRC)
+ipodpatcher.exe: $(SRC) ipodio-win32.c ipodpatcher-rc.o $(BOOTSRC)
+ $(CC) $(CFLAGS) -o ipodpatcher.exe $(SRC) ipodio-win32.c ipodpatcher-rc.o $(BOOTSRC)
$(CROSS)strip ipodpatcher.exe
+ipodpatcher-rc.o: ipodpatcher.rc ipodpatcher.manifest
+ $(WINDRES) -i ipodpatcher.rc -o ipodpatcher-rc.o
+
ipodpatcher-mac: ipodpatcher-i386 ipodpatcher-ppc
lipo -create ipodpatcher-ppc ipodpatcher-i386 -output ipodpatcher-mac
diff --git a/rbutil/ipodpatcher/ipodpatcher.manifest b/rbutil/ipodpatcher/ipodpatcher.manifest
new file mode 100644
index 0000000000..695ecb26ea
--- /dev/null
+++ b/rbutil/ipodpatcher/ipodpatcher.manifest
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="ipodpatcher.exe" type="win32"/>
+
+ <!-- Identify the application security requirements. -->
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="requireAdministrator"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
diff --git a/rbutil/ipodpatcher/ipodpatcher.rc b/rbutil/ipodpatcher/ipodpatcher.rc
new file mode 100644
index 0000000000..368826e263
--- /dev/null
+++ b/rbutil/ipodpatcher/ipodpatcher.rc
@@ -0,0 +1 @@
+1 24 MOVEABLE PURE "ipodpatcher.manifest"