2012-03-03 18:37:40 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2011-06-26 01:32:25 +00:00
|
|
|
RBCODECLIB_DIR = $(ROOTDIR)/lib/rbcodec
|
2011-06-24 05:25:21 +00:00
|
|
|
RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec
|
|
|
|
|
2011-10-30 16:05:04 +00:00
|
|
|
GCCOPTS += -D__PCTOOL__ $(TARGET) -DDEBUG -g -std=gnu99 \
|
|
|
|
`$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
|
|
|
|
RBCODEC_CFLAGS += -D_FILE_H_ #-DLOGF_H -DDEBUG_H -D_KERNEL_H_ # will be removed later
|
2012-03-03 18:37:40 +00:00
|
|
|
|
|
|
|
SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
|
|
|
|
|
2011-10-30 16:05:04 +00:00
|
|
|
INCLUDES += -I$(ROOTDIR)/lib/rbcodec/test \
|
|
|
|
-I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/gui \
|
|
|
|
-I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
|
|
|
|
-I$(ROOTDIR)/firmware/target/hosted \
|
|
|
|
-I$(ROOTDIR)/firmware/target/hosted/sdl
|
2012-03-03 18:37:40 +00:00
|
|
|
|
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
|
|
|
|
$(BUILDDIR)/$(BINARY): $(CODECS)
|
|
|
|
|
2012-03-26 22:16:09 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $$(CORE_LIBS)
|
2012-03-03 18:37:40 +00:00
|
|
|
@echo LD $(BINARY)
|
2012-03-26 22:16:09 +00:00
|
|
|
$(SILENT)$(HOSTCC) $(LDOPTS) -o $@ $(OBJ) \
|
|
|
|
-L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \
|
|
|
|
$(LDOPTS) $(GLOBAL_LDOPTS)
|