diff options
Diffstat (limited to 'rbutil/sansapatcher/Makefile')
-rw-r--r-- | rbutil/sansapatcher/Makefile | 4 |
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 | |||
11 | OUTPUT = sansapatcher | 11 | OUTPUT = sansapatcher |
12 | 12 | ||
13 | # inputs | 13 | # inputs |
14 | BOOTSRC = bootimg_c200.c bootimg_e200.c | ||
15 | LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c | 14 | LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c |
16 | SOURCES := $(LIBSOURCES) main.c | 15 | SOURCES := $(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 | |||
25 | endif | 24 | endif |
26 | 25 | ||
27 | ifdef WITH_BOOTOBJS | 26 | ifdef WITH_BOOTOBJS |
27 | BOOTSRC = bootimg_c200.c bootimg_e200.c | ||
28 | SOURCES += $(BOOTSRC) | 28 | SOURCES += $(BOOTSRC) |
29 | CFLAGS += -DWITH_BOOTOBJS | 29 | CFLAGS += -DWITH_BOOTOBJS |
30 | endif | 30 | endif |
@@ -37,6 +37,7 @@ ifeq ($(findstring exe,$(BINARY)),exe) | |||
37 | $(BINARY): $(OBJDIR)sansapatcher-rc.o | 37 | $(BINARY): $(OBJDIR)sansapatcher-rc.o |
38 | endif | 38 | endif |
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 | |||
47 | bootimg_e200.c: PP5022.mi4 ../tools/bin2c | 48 | bootimg_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 |