blob: d796f4494c2fc7b3a4dc52301151d8eb647ad761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CFLAGS=-Wall
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
OUTPUT=ipodpatcher.exe
CROSS=
CFLAGS+=-mno-cygwin
else
OUTPUT=ipodpatcher
CROSS=i586-mingw32msvc-
endif
all: $(OUTPUT)
ipodpatcher: ipodpatcher.c ipodio-posix.c parttypes.h
gcc $(CFLAGS) -o ipodpatcher ipodpatcher.c ipodio-posix.c
strip ipodpatcher
ipodpatcher.exe: ipodpatcher.c ipodio-win32.c parttypes.h
$(CROSS)gcc $(CFLAGS) -o ipodpatcher.exe ipodpatcher.c ipodio-win32.c
$(CROSS)strip ipodpatcher.exe
clean:
rm -f ipodpatcher.exe ipodpatcher *~
|