fix "hide radio menu if no tuner is detected"; wrong constant was used
[Rockbox.git] / rbutil / Makefile
bloba33960a92318d366cb99ec1b734bc94d0f028290
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # Unix-style Makefile for rbutil
12 CXX=$(shell $(PREFIX)wx-config --cxx)
13 INC =
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
18 ifndef DESTDIR
19 DESTDIR=/usr/local
20 endif
22 # type "make WIN=1" for a Windows build using the Debian mingw cross-compiler
23 ifdef WIN
24 CROSS=i586-mingw32msvc-
25 WINDRES=i586-mingw32msvc-windres
26 EXT=.exe
27 PREFIX=/usr/i586-mingw32msvc/bin/
28 OBJS+=rbutil-rc.o
29 endif
31 .PHONY: all
32 all: rbutil$(EXT)
34 .cpp.o :
35 $(CXX) $(CFLAGS) $(INC) -c `$(PREFIX)wx-config --cxxflags` -o $@ $<
37 .c.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 $@ $<
43 rbutil$(EXT): $(OBJS)
44 $(CXX) -o $@ $(OBJS) `$(PREFIX)wx-config --libs`
46 .PHONY: clean
47 clean:
48 rm -f rbutil rbutil.exe $(OBJS) *~
50 .PHONY: install
51 install -D rbutil$(EXT) $(DESTDIR)/bin/rbutil$(EXT)