diff options
Diffstat (limited to 'lib/rbcodec/test/warble.make')
-rw-r--r-- | lib/rbcodec/test/warble.make | 37 |
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 | |||
11 | include $(ROOTDIR)/tools/functions.make | ||
12 | include $(ROOTDIR)/apps/codecs/codecs.make | ||
13 | |||
14 | FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall | ||
15 | |||
16 | SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES) | ||
17 | |||
18 | INCLUDES += -I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/codecs -I$(ROOTDIR)/apps/codecs/lib \ | ||
19 | -I$(ROOTDIR)/apps/gui -I$(ROOTDIR)/apps/metadata | ||
20 | INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \ | ||
21 | -I$(ROOTDIR)/firmware/target/hosted \ | ||
22 | -I$(ROOTDIR)/firmware/target/hosted/sdl | ||
23 | |||
24 | GCCOPTS+=-D__PCTOOL__ -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\"" | ||
25 | |||
26 | LIBS=`$(SDLCONFIG) --libs` -lc | ||
27 | ifneq ($(findstring MINGW,$(shell uname)),MINGW) | ||
28 | LIBS += -ldl | ||
29 | endif | ||
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 $@ $+ | ||