diff options
Diffstat (limited to 'utils/MTP/beastpatcher/Makefile')
-rw-r--r-- | utils/MTP/beastpatcher/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/utils/MTP/beastpatcher/Makefile b/utils/MTP/beastpatcher/Makefile index 571274034b..bb908532c2 100644 --- a/utils/MTP/beastpatcher/Makefile +++ b/utils/MTP/beastpatcher/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | CFLAGS=-Wall -W -DWITH_BOOTOBJS -DBEASTPATCHER -I../../../tools | 1 | CFLAGS=-Wall -W -DWITH_BOOTOBJS -I../../../tools |
2 | 2 | ||
3 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | 3 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) |
4 | OUTPUT=beastpatcher.exe | 4 | OUTPUT=beastpatcher.exe |
@@ -30,17 +30,17 @@ CC = $(CROSS)gcc | |||
30 | 30 | ||
31 | all: $(OUTPUT) | 31 | all: $(OUTPUT) |
32 | 32 | ||
33 | SOURCES = beastpatcher.c bootimg.c ../../../tools/mknkboot.c main.c | 33 | SOURCES = beastpatcher.c bootimg.c mknkboot.c main.c |
34 | HEADERS = beastpatcher.h mtp_common.h bootimg.h ../../../tools/mknkboot.h | 34 | HEADERS = beastpatcher.h mtp_common.h bootimg.h mknkboot.h |
35 | MTPSRCS_W32 = mtp_win32.c | 35 | MTPSRCS_W32 = mtp_win32.c |
36 | MTPSRCS_MTP = mtp_libmtp.c | 36 | MTPSRCS_MTP = mtp_libmtp.c |
37 | 37 | ||
38 | beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP) | 38 | beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP) |
39 | gcc $(CFLAGS) -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS) | 39 | gcc $(CFLAGS) -DBEASTPATCHER -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS) |
40 | strip beastpatcher | 40 | strip beastpatcher |
41 | 41 | ||
42 | beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS) | 42 | beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS) |
43 | $(CC) $(CFLAGS) -o beastpatcher.exe $(SOURCES) $(MTPSRCS_W32) $(WINLIBS) | 43 | $(CC) $(CFLAGS) -DBEASTPATCHER -o beastpatcher.exe $(SOURCES) $(MTPSRCS_W32) $(WINLIBS) |
44 | $(CROSS)strip beastpatcher.exe | 44 | $(CROSS)strip beastpatcher.exe |
45 | 45 | ||
46 | beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc | 46 | beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc |
@@ -60,5 +60,7 @@ bin2c: ../../../rbutil/tools/bin2c.c | |||
60 | bootimg.c: bootloader.bin bin2c | 60 | bootimg.c: bootloader.bin bin2c |
61 | ./bin2c bootloader.bin bootimg | 61 | ./bin2c bootloader.bin bootimg |
62 | 62 | ||
63 | mknkboot: mknkboot.c | ||
64 | $(SILENT)$(NATIVECC) $(CFLAGS) $+ -o $@ | ||
63 | clean: | 65 | clean: |
64 | rm -f beastpatcher.exe beastpatcher-mac beastpatcher-i386 beastpatcher-ppc beastpatcher bin2c bootimg.c bootimg.h *~ | 66 | rm -f beastpatcher.exe beastpatcher-mac beastpatcher-i386 beastpatcher-ppc beastpatcher bin2c bootimg.c bootimg.h mknkboot *~ |