summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/sansapatcher/Makefile')
-rw-r--r--rbutil/sansapatcher/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/Makefile b/rbutil/sansapatcher/Makefile
index 6e203042be..b3bf51ee2a 100644
--- a/rbutil/sansapatcher/Makefile
+++ b/rbutil/sansapatcher/Makefile
@@ -11,7 +11,6 @@ CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE
11OUTPUT = sansapatcher 11OUTPUT = sansapatcher
12 12
13# inputs 13# inputs
14BOOTSRC = bootimg_c200.c bootimg_e200.c
15LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c 14LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c
16SOURCES := $(LIBSOURCES) main.c 15SOURCES := $(LIBSOURCES) main.c
17# additional link dependencies for the standalone executable 16# additional link dependencies for the standalone executable
@@ -25,6 +24,7 @@ BOOTOBJS=1
25endif 24endif
26 25
27ifdef WITH_BOOTOBJS 26ifdef WITH_BOOTOBJS
27BOOTSRC = bootimg_c200.c bootimg_e200.c
28SOURCES += $(BOOTSRC) 28SOURCES += $(BOOTSRC)
29CFLAGS += -DWITH_BOOTOBJS 29CFLAGS += -DWITH_BOOTOBJS
30endif 30endif
@@ -37,6 +37,7 @@ ifeq ($(findstring exe,$(BINARY)),exe)
37$(BINARY): $(OBJDIR)sansapatcher-rc.o 37$(BINARY): $(OBJDIR)sansapatcher-rc.o
38endif 38endif
39 39
40$(OBJDIR)main.o: $(BOOTSRC)
40$(OBJDIR)sansapatcher-rc.o: sansapatcher.rc sansapatcher.manifest 41$(OBJDIR)sansapatcher-rc.o: sansapatcher.rc sansapatcher.manifest
41 $(WINDRES) -i sansapatcher.rc -o sansapatcher-rc.o 42 $(WINDRES) -i sansapatcher.rc -o sansapatcher-rc.o
42 43
@@ -47,5 +48,6 @@ bootimg_c200.c: firmware.mi4 ../tools/bin2c
47bootimg_e200.c: PP5022.mi4 ../tools/bin2c 48bootimg_e200.c: PP5022.mi4 ../tools/bin2c
48 @echo BIN2C $< 49 @echo BIN2C $<
49 $(SILENT)../tools/bin2c PP5022.mi4 bootimg_e200 50 $(SILENT)../tools/bin2c PP5022.mi4 bootimg_e200
51
50../tools/bin2c: 52../tools/bin2c:
51 $(SILENT)make -C ../tools bin2c 53 $(SILENT)make -C ../tools bin2c