summaryrefslogtreecommitdiff
path: root/utils/MTP/beastpatcher/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-20 08:28:18 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-09-20 08:28:18 +0000
commit6d1d9bed3ea567c74d787c0450c6de193e232851 (patch)
treefe406086d25f5f7956880c91ae45f599cbe1bf79 /utils/MTP/beastpatcher/Makefile
parentfc30b183c826ce006b531a24acfb3484bdd9871b (diff)
downloadrockbox-6d1d9bed3ea567c74d787c0450c6de193e232851.tar.gz
rockbox-6d1d9bed3ea567c74d787c0450c6de193e232851.zip
Integrate mknkboot into beastpatcher.
Add a new option to beastpatcher to patch and upload an original firmware file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/beastpatcher/Makefile')
-rw-r--r--utils/MTP/beastpatcher/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/utils/MTP/beastpatcher/Makefile b/utils/MTP/beastpatcher/Makefile
index 52887f06b2..571274034b 100644
--- a/utils/MTP/beastpatcher/Makefile
+++ b/utils/MTP/beastpatcher/Makefile
@@ -1,4 +1,4 @@
1CFLAGS=-Wall -W -DWITH_BOOTOBJS 1CFLAGS=-Wall -W -DWITH_BOOTOBJS -DBEASTPATCHER -I../../../tools
2 2
3ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) 3ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
4OUTPUT=beastpatcher.exe 4OUTPUT=beastpatcher.exe
@@ -30,12 +30,17 @@ CC = $(CROSS)gcc
30 30
31all: $(OUTPUT) 31all: $(OUTPUT)
32 32
33beastpatcher: beastpatcher.c bootimg.c mtp_common.h mtp_libmtp.c main.c 33SOURCES = beastpatcher.c bootimg.c ../../../tools/mknkboot.c main.c
34 gcc $(CFLAGS) -o beastpatcher beastpatcher.c bootimg.c mtp_libmtp.c main.c $(LIBS) 34HEADERS = beastpatcher.h mtp_common.h bootimg.h ../../../tools/mknkboot.h
35MTPSRCS_W32 = mtp_win32.c
36MTPSRCS_MTP = mtp_libmtp.c
37
38beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP)
39 gcc $(CFLAGS) -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS)
35 strip beastpatcher 40 strip beastpatcher
36 41
37beastpatcher.exe: beastpatcher.c bootimg.c mtp_common.h mtp_win32.c main.c $(WINLIBS) 42beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS)
38 $(CC) $(CFLAGS) -o beastpatcher.exe beastpatcher.c bootimg.c mtp_win32.c main.c $(WINLIBS) 43 $(CC) $(CFLAGS) -o beastpatcher.exe $(SOURCES) $(MTPSRCS_W32) $(WINLIBS)
39 $(CROSS)strip beastpatcher.exe 44 $(CROSS)strip beastpatcher.exe
40 45
41beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc 46beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc