summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbcodec/test/warble.make18
-rw-r--r--tools/root.make16
2 files changed, 15 insertions, 19 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)
diff --git a/tools/root.make b/tools/root.make
index 032daf5a1c..e42be044fc 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -63,12 +63,14 @@ all: $(DEPFILE) build
63# dependencies and compile rules 63# dependencies and compile rules
64include $(TOOLSDIR)/tools.make 64include $(TOOLSDIR)/tools.make
65 65
66ifeq (,$(findstring checkwps,$(APPSDIR))) 66ifneq (,$(findstring checkwps,$(APP_TYPE)))
67 ifeq (,$(findstring database,$(APPSDIR))) 67 ifneq (,$(findstring database,$(APP_TYPE)))
68 include $(FIRMDIR)/firmware.make 68 ifneq (,$(findstring warble,$(APP_TYPE)))
69 include $(ROOTDIR)/apps/bitmaps/bitmaps.make 69 include $(FIRMDIR)/firmware.make
70 ifeq (,$(findstring bootloader,$(APPSDIR))) 70 include $(ROOTDIR)/apps/bitmaps/bitmaps.make
71 include $(ROOTDIR)/lib/skin_parser/skin_parser.make 71 ifeq (,$(findstring bootloader,$(APPSDIR)))
72 include $(ROOTDIR)/lib/skin_parser/skin_parser.make
73 endif
72 endif 74 endif
73 endif 75 endif
74endif 76endif
@@ -97,6 +99,8 @@ else ifneq (,$(findstring database,$(APP_TYPE)))
97 include $(APPSDIR)/database.make 99 include $(APPSDIR)/database.make
98else ifneq (,$(findstring warble,$(APP_TYPE))) 100else ifneq (,$(findstring warble,$(APP_TYPE)))
99 include $(ROOTDIR)/lib/rbcodec/test/warble.make 101 include $(ROOTDIR)/lib/rbcodec/test/warble.make
102 include $(APPSDIR)/codecs/codecs.make
103 include $(ROOTDIR)/lib/rbcodec/rbcodec.make
100else 104else
101 include $(APPSDIR)/apps.make 105 include $(APPSDIR)/apps.make
102 include $(ROOTDIR)/lib/rbcodec/rbcodec.make 106 include $(ROOTDIR)/lib/rbcodec/rbcodec.make