2012-03-03 18:37:40 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-24 05:25:21 +00:00
|
|
|
RBCODEC_DIR = $(ROOTDIR)/lib/rbcodec
|
|
|
|
RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec
|
|
|
|
|
2012-03-03 18:37:40 +00:00
|
|
|
FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall
|
|
|
|
|
|
|
|
SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
|
|
|
|
|
|
|
|
INCLUDES += -I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/codecs -I$(ROOTDIR)/apps/codecs/lib \
|
2011-06-24 05:25:21 +00:00
|
|
|
-I$(ROOTDIR)/apps/gui
|
2012-03-03 18:37:40 +00:00
|
|
|
INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
|
|
|
|
-I$(ROOTDIR)/firmware/target/hosted \
|
|
|
|
-I$(ROOTDIR)/firmware/target/hosted/sdl
|
|
|
|
|
2012-03-04 15:35:11 +00:00
|
|
|
GCCOPTS+=-D__PCTOOL__ -DDEBUG -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
|
2012-03-03 18:37:40 +00:00
|
|
|
|
|
|
|
LIBS=`$(SDLCONFIG) --libs` -lc
|
|
|
|
ifneq ($(findstring MINGW,$(shell uname)),MINGW)
|
|
|
|
LIBS += -ldl
|
|
|
|
endif
|
|
|
|
|
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
|
2012-03-03 19:35:48 +00:00
|
|
|
include $(ROOTDIR)/tools/functions.make
|
|
|
|
include $(ROOTDIR)/apps/codecs/codecs.make
|
2011-06-24 05:25:21 +00:00
|
|
|
include $(ROOTDIR)/lib/rbcodec/rbcodec.make
|
2012-03-03 19:35:48 +00:00
|
|
|
|
2012-03-03 18:37:40 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $(CODECS)
|
|
|
|
|
2011-06-24 05:25:21 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(RBCODEC_LIB)
|
2012-03-03 18:37:40 +00:00
|
|
|
@echo LD $(BINARY)
|
|
|
|
$(SILENT)$(HOSTCC) $(SIMFLAGS) $(LIBS) -o $@ $+
|