diff options
Diffstat (limited to 'rbutil/sansapatcher/Makefile')
-rw-r--r-- | rbutil/sansapatcher/Makefile | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/rbutil/sansapatcher/Makefile b/rbutil/sansapatcher/Makefile index b05d8f3257..3786a41030 100644 --- a/rbutil/sansapatcher/Makefile +++ b/rbutil/sansapatcher/Makefile | |||
@@ -14,30 +14,33 @@ CC = $(CROSS)gcc | |||
14 | 14 | ||
15 | all: $(OUTPUT) | 15 | all: $(OUTPUT) |
16 | 16 | ||
17 | sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c | 17 | sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c |
18 | gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg.c | 18 | gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c |
19 | strip sansapatcher | 19 | strip sansapatcher |
20 | 20 | ||
21 | sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg.c | 21 | sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c |
22 | $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg.c | 22 | $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c |
23 | $(CROSS)strip sansapatcher.exe | 23 | $(CROSS)strip sansapatcher.exe |
24 | 24 | ||
25 | sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc | 25 | sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc |
26 | lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac | 26 | lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac |
27 | 27 | ||
28 | sansapatcher-i386: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c | 28 | sansapatcher-i386: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c |
29 | gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o sansapatcher-i386 main.c sansapatcher.c sansaio-posix.c bootimg.c | 29 | gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o sansapatcher-i386 main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c |
30 | strip sansapatcher-i386 | 30 | strip sansapatcher-i386 |
31 | 31 | ||
32 | sansapatcher-ppc: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c | 32 | sansapatcher-ppc: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c |
33 | gcc -arch ppc $(CFLAGS) -o sansapatcher-ppc main.c sansapatcher.c sansaio-posix.c bootimg.c | 33 | gcc -arch ppc $(CFLAGS) -o sansapatcher-ppc main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c |
34 | strip sansapatcher-ppc | 34 | strip sansapatcher-ppc |
35 | 35 | ||
36 | bin2c: bin2c.c | 36 | bin2c: bin2c.c |
37 | $(NATIVECC) $(CFLAGS) -o bin2c bin2c.c | 37 | $(NATIVECC) $(CFLAGS) -o bin2c bin2c.c |
38 | 38 | ||
39 | bootimg.c: PP5022.mi4 bin2c | 39 | bootimg_c200.c: firmware.mi4 bin2c |
40 | ./bin2c PP5022.mi4 bootimg | 40 | ./bin2c firmware.mi4 bootimg_c200 |
41 | |||
42 | bootimg_e200.c: PP5022.mi4 bin2c | ||
43 | ./bin2c PP5022.mi4 bootimg_e200 | ||
41 | 44 | ||
42 | clean: | 45 | clean: |
43 | rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher bin2c bootimg.c bootimg.h *~ | 46 | rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher bin2c bootimg_c200.c bootimg_c200.h bootimg_e200.c bootimg_e200.h *~ |