summaryrefslogtreecommitdiff
path: root/lib/rbcodec/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/test')
-rw-r--r--lib/rbcodec/test/warble.make18
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/rbcodec/test/warble.make b/lib/rbcodec/test/warble.make
index 11f7ab03ec..2c1fb13889 100644
--- a/lib/rbcodec/test/warble.make
+++ b/lib/rbcodec/test/warble.make
@@ -12,7 +12,7 @@
12RBCODEC_DIR = $(ROOTDIR)/lib/rbcodec 12RBCODEC_DIR = $(ROOTDIR)/lib/rbcodec
13RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec 13RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec
14 14
15FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall 15GCCOPTS += -D__PCTOOL__ $(TARGET) -DDEBUG -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
16 16
17SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES) 17SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
18 18
@@ -22,21 +22,13 @@ INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
22 -I$(ROOTDIR)/firmware/target/hosted \ 22 -I$(ROOTDIR)/firmware/target/hosted \
23 -I$(ROOTDIR)/firmware/target/hosted/sdl 23 -I$(ROOTDIR)/firmware/target/hosted/sdl
24 24
25GCCOPTS+=-D__PCTOOL__ -DDEBUG -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
26
27LIBS=`$(SDLCONFIG) --libs` -lc
28ifneq ($(findstring MINGW,$(shell uname)),MINGW)
29LIBS += -ldl
30endif
31 25
32.SECONDEXPANSION: # $$(OBJ) is not populated until after this 26.SECONDEXPANSION: # $$(OBJ) is not populated until after this
33 27
34include $(ROOTDIR)/tools/functions.make
35include $(ROOTDIR)/apps/codecs/codecs.make
36include $(ROOTDIR)/lib/rbcodec/rbcodec.make
37
38$(BUILDDIR)/$(BINARY): $(CODECS) 28$(BUILDDIR)/$(BINARY): $(CODECS)
39 29
40$(BUILDDIR)/$(BINARY): $$(OBJ) $(RBCODEC_LIB) 30$(BUILDDIR)/$(BINARY): $$(OBJ) $$(CORE_LIBS)
41 @echo LD $(BINARY) 31 @echo LD $(BINARY)
42 $(SILENT)$(HOSTCC) $(SIMFLAGS) $(LIBS) -o $@ $+ 32 $(SILENT)$(HOSTCC) $(LDOPTS) -o $@ $(OBJ) \
33 -L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \
34 $(LDOPTS) $(GLOBAL_LDOPTS)