2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 # Unix-style Makefile for rbutil
12 CXX
=$(shell $(PREFIX
)wx-config
--cxx)
14 CFLAGS
= -Wall
-Wundef
15 OBJS
=rbutil.o rbutilApp.o rbutilFrm.o wizard_pages.o bootloaders.o installlog.o ipodpatcher
/ipodpatcher.o ipodpatcher
/ipodio-posix.o irivertools.o md5sum.o
17 # Install into /usr/local by default
22 # type "make WIN=1" for a Windows build using the Debian mingw cross-compiler
24 CROSS
=i586-mingw32msvc-
25 WINDRES
=i586-mingw32msvc-windres
27 PREFIX
=/usr
/i586-mingw32msvc
/bin
/
35 $(CXX
) $(CFLAGS
) $(INC
) -c
`$(PREFIX)wx-config --cxxflags` -o
$@
$<
38 $(CC
) $(CFLAGS
) $(INC
) -c
`$(PREFIX)wx-config --cxxflags` -o
$@
$<
40 rbutil-rc.o
: rbutil-rc.rc
41 $(WINDRES
) `$(PREFIX)wx-config --cxxflags` -O coff
-F pe-i386
-o
$@
$<
44 $(CXX
) -o
$@
$(OBJS
) `$(PREFIX)wx-config --libs`
48 rm -f rbutil rbutil.exe
$(OBJS
) *~
51 install -D rbutil
$(EXT
) $(DESTDIR
)/bin
/rbutil
$(EXT
)