diff options
Diffstat (limited to 'utils/MTP/beastpatcher/Makefile')
-rw-r--r-- | utils/MTP/beastpatcher/Makefile | 15 |
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 @@ | |||
1 | CFLAGS=-Wall -W -DWITH_BOOTOBJS | 1 | CFLAGS=-Wall -W -DWITH_BOOTOBJS -DBEASTPATCHER -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,12 +30,17 @@ CC = $(CROSS)gcc | |||
30 | 30 | ||
31 | all: $(OUTPUT) | 31 | all: $(OUTPUT) |
32 | 32 | ||
33 | beastpatcher: beastpatcher.c bootimg.c mtp_common.h mtp_libmtp.c main.c | 33 | SOURCES = beastpatcher.c bootimg.c ../../../tools/mknkboot.c main.c |
34 | gcc $(CFLAGS) -o beastpatcher beastpatcher.c bootimg.c mtp_libmtp.c main.c $(LIBS) | 34 | HEADERS = beastpatcher.h mtp_common.h bootimg.h ../../../tools/mknkboot.h |
35 | MTPSRCS_W32 = mtp_win32.c | ||
36 | MTPSRCS_MTP = mtp_libmtp.c | ||
37 | |||
38 | beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP) | ||
39 | gcc $(CFLAGS) -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS) | ||
35 | strip beastpatcher | 40 | strip beastpatcher |
36 | 41 | ||
37 | beastpatcher.exe: beastpatcher.c bootimg.c mtp_common.h mtp_win32.c main.c $(WINLIBS) | 42 | beastpatcher.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 | ||
41 | beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc | 46 | beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc |