2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 # Unix-style Makefile for rbutil
12 CXX
=$(shell $(PREFIX
)wx-config
--version
=2.8 --cxx)
14 CFLAGS
= -Wall
-Wundef
-DRBUTIL
-D_LARGEFILE64_SOURCE
15 OBJS
=rbutil.o rbutilApp.o rbutilFrm.o rbutilCtrls.o install_dialogs.o bootloaders.o installlog.o ipodpatcher
/ipodpatcher.o ipodpatcher
/ipodio-posix.o sansapatcher
/sansapatcher.o sansapatcher
/sansaio-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 --version=2.8 --cxxflags` -o
$@
$<
38 $(CC
) $(CFLAGS
) $(INC
) -c
`$(PREFIX)wx-config --version=2.8 --cxxflags` -o
$@
$<
40 rbutil-rc.o
: rbutil-rc.rc
41 $(WINDRES
) `$(PREFIX)wx-config --version=2.8 --cxxflags` -O coff
-F pe-i386
-o
$@
$<
44 $(CXX
) -o
$@
$(OBJS
) `$(PREFIX)wx-config --version=2.8 --libs`
48 rm -f rbutil rbutil.exe
$(OBJS
) *~
51 install -D rbutil
$(EXT
) $(DESTDIR
)/bin
/rbutil
$(EXT
)