2009-10-07 16:54:15 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id: checkwps.make 22680 2009-09-11 17:58:17Z gevaerts $
|
|
|
|
#
|
|
|
|
|
2012-07-31 08:33:27 +00:00
|
|
|
GCCOPTS += -g -DDEBUG -D__PCTOOL__ -DDBTOOL
|
2009-10-07 16:54:15 +00:00
|
|
|
|
2020-06-30 16:09:38 +00:00
|
|
|
# Make compatibility hack
|
|
|
|
H := \#
|
|
|
|
createsrc = $(shell cat $(1) > $(3); echo "$(H)if CONFIG_CODEC == SWCODEC" >> $(3); \
|
2010-02-25 12:28:30 +00:00
|
|
|
echo $(2) | sed 's/ /\n/g' >> $(3); \
|
2020-06-30 16:09:38 +00:00
|
|
|
echo "$(H)endif" >> $(3); \
|
2010-02-25 12:28:30 +00:00
|
|
|
echo $(3))
|
|
|
|
|
2019-07-28 16:44:23 +00:00
|
|
|
METADATAS := $(call full_path_subst,$(ROOTDIR)/%,../../%,$(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c))
|
2010-02-25 12:28:30 +00:00
|
|
|
|
|
|
|
SRCFILE := $(call createsrc, $(TOOLSDIR)/database/SOURCES, \
|
|
|
|
$(METADATAS), \
|
|
|
|
$(TOOLSDIR)/database/SOURCES.build)
|
|
|
|
|
2012-07-31 08:33:27 +00:00
|
|
|
DATABASE_SRC = $(call preprocess, $(SRCFILE))
|
|
|
|
DATABASE_OBJ = $(call c2obj,$(DATABASE_SRC))
|
2009-10-07 16:54:15 +00:00
|
|
|
|
2012-07-31 08:33:27 +00:00
|
|
|
OTHER_SRC += $(DATABASE_SRC)
|
2009-10-07 16:54:15 +00:00
|
|
|
|
2012-07-31 08:33:27 +00:00
|
|
|
INCLUDES += -I$(ROOTDIR)/apps/gui \
|
2014-03-03 18:09:41 +00:00
|
|
|
-I$(FIRMDIR)/kernel/include \
|
2012-07-31 08:33:27 +00:00
|
|
|
-I$(ROOTDIR)/firmware/export \
|
|
|
|
-I$(ROOTDIR)/firmware/include \
|
|
|
|
-I$(ROOTDIR)/apps \
|
|
|
|
-I$(ROOTDIR)/apps/recorder \
|
|
|
|
-I$(ROOTDIR)/lib/rbcodec \
|
|
|
|
-I$(ROOTDIR)/lib/rbcodec/metadata \
|
|
|
|
-I$(ROOTDIR)/lib/rbcodec/dsp \
|
|
|
|
-I$(APPSDIR) \
|
|
|
|
-I$(BUILDDIR)
|
2020-07-17 04:01:32 +00:00
|
|
|
|
2013-04-16 21:47:58 +00:00
|
|
|
OTHERLIBS := $(FIXEDPOINTLIB)
|
2010-02-25 12:28:30 +00:00
|
|
|
|
2009-10-07 16:54:15 +00:00
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
|
2013-04-16 21:47:58 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(DATABASE_OBJ) $(OTHERLIBS)
|
2012-07-31 08:33:27 +00:00
|
|
|
$(call PRINTS,LD $(BINARY))
|
2013-04-16 21:47:58 +00:00
|
|
|
$(SILENT)$(HOSTCC) $(call a2lnk $(OTHERLIBS)) -o $@ $+
|