1
0
Fork 0
forked from len0rd/rockbox

Enable building ipodpatcher (pure win32 binary) on cygwin with a simple 'make'

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12202 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-02-05 00:50:49 +00:00
parent 1eff300f18
commit 7170a00daa

View file

@ -1,11 +1,23 @@
all: ipodpatcher
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 -Wall -o ipodpatcher ipodpatcher.c ipodio-posix.c
gcc $(CFLAGS) -o ipodpatcher ipodpatcher.c ipodio-posix.c
strip ipodpatcher
ipodpatcher.exe: ipodpatcher.c ipodio-win32.c parttypes.h
i586-mingw32msvc-gcc -Wall -o ipodpatcher.exe ipodpatcher.c ipodio-win32.c
i586-mingw32msvc-strip ipodpatcher.exe
$(CROSS)gcc $(CFLAGS) -o ipodpatcher.exe ipodpatcher.c ipodio-win32.c
$(CROSS)strip ipodpatcher.exe
clean:
rm -f ipodpatcher.exe ipodpatcher *~