summaryrefslogtreecommitdiff
path: root/lib/rbcodec/test/warble.make
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-03-03 19:37:40 +0100
committerFrank Gevaerts <frank@gevaerts.be>2012-03-03 20:19:08 +0100
commit466a7c6a405f80cd8e01ebf0a70eb406863a38f1 (patch)
treeacd8dcec239d7407a69df7f20b9ad7f3b10f4200 /lib/rbcodec/test/warble.make
parent13a7c9ac70bfeed574d38705ab568c2085ca77e7 (diff)
downloadrockbox-466a7c6a405f80cd8e01ebf0a70eb406863a38f1.tar.gz
rockbox-466a7c6a405f80cd8e01ebf0a70eb406863a38f1.zip
Integrate the warble tool in the regular build system.
Only sdl app builds work properly for now. Change-Id: I7807d42f69b8577b401e48cdc63de71e54f49217
Diffstat (limited to 'lib/rbcodec/test/warble.make')
-rw-r--r--lib/rbcodec/test/warble.make37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/rbcodec/test/warble.make b/lib/rbcodec/test/warble.make
new file mode 100644
index 0000000000..0687e05620
--- /dev/null
+++ b/lib/rbcodec/test/warble.make
@@ -0,0 +1,37 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10
11include $(ROOTDIR)/tools/functions.make
12include $(ROOTDIR)/apps/codecs/codecs.make
13
14FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall
15
16SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
17
18INCLUDES += -I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/codecs -I$(ROOTDIR)/apps/codecs/lib \
19 -I$(ROOTDIR)/apps/gui -I$(ROOTDIR)/apps/metadata
20INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
21 -I$(ROOTDIR)/firmware/target/hosted \
22 -I$(ROOTDIR)/firmware/target/hosted/sdl
23
24GCCOPTS+=-D__PCTOOL__ -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
25
26LIBS=`$(SDLCONFIG) --libs` -lc
27ifneq ($(findstring MINGW,$(shell uname)),MINGW)
28LIBS += -ldl
29endif
30
31.SECONDEXPANSION: # $$(OBJ) is not populated until after this
32
33$(BUILDDIR)/$(BINARY): $(CODECS)
34
35$(BUILDDIR)/$(BINARY): $$(OBJ)
36 @echo LD $(BINARY)
37 $(SILENT)$(HOSTCC) $(SIMFLAGS) $(LIBS) -o $@ $+