summaryrefslogtreecommitdiff
path: root/utils/MTP/beastpatcher/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/MTP/beastpatcher/Makefile')
-rw-r--r--utils/MTP/beastpatcher/Makefile14
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 @@
1CFLAGS=-Wall -W -DWITH_BOOTOBJS -DBEASTPATCHER -I../../../tools 1CFLAGS=-Wall -W -DWITH_BOOTOBJS -I../../../tools
2 2
3ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) 3ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
4OUTPUT=beastpatcher.exe 4OUTPUT=beastpatcher.exe
@@ -30,17 +30,17 @@ CC = $(CROSS)gcc
30 30
31all: $(OUTPUT) 31all: $(OUTPUT)
32 32
33SOURCES = beastpatcher.c bootimg.c ../../../tools/mknkboot.c main.c 33SOURCES = beastpatcher.c bootimg.c mknkboot.c main.c
34HEADERS = beastpatcher.h mtp_common.h bootimg.h ../../../tools/mknkboot.h 34HEADERS = beastpatcher.h mtp_common.h bootimg.h mknkboot.h
35MTPSRCS_W32 = mtp_win32.c 35MTPSRCS_W32 = mtp_win32.c
36MTPSRCS_MTP = mtp_libmtp.c 36MTPSRCS_MTP = mtp_libmtp.c
37 37
38beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP) 38beastpatcher: $(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
42beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS) 42beastpatcher.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
46beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc 46beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc
@@ -60,5 +60,7 @@ bin2c: ../../../rbutil/tools/bin2c.c
60bootimg.c: bootloader.bin bin2c 60bootimg.c: bootloader.bin bin2c
61 ./bin2c bootloader.bin bootimg 61 ./bin2c bootloader.bin bootimg
62 62
63mknkboot: mknkboot.c
64 $(SILENT)$(NATIVECC) $(CFLAGS) $+ -o $@
63clean: 65clean:
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 *~