2009-08-21 20:26:53 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2012-03-26 21:16:48 +00:00
|
|
|
GCCOPTS=-g -D__PCTOOL__ -DCHECKWPS $(TARGET)
|
2009-08-21 20:26:53 +00:00
|
|
|
|
2012-03-26 21:16:48 +00:00
|
|
|
CHECKWPS_SRC = $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
|
|
|
|
CHECKWPS_OBJ = $(call c2obj,$(CHECKWPS_SRC))
|
|
|
|
|
|
|
|
OTHER_SRC += $(CHECKWPS_SRC)
|
2009-08-21 20:26:53 +00:00
|
|
|
|
2009-09-01 14:53:37 +00:00
|
|
|
INCLUDES = -I$(ROOTDIR)/apps/gui \
|
|
|
|
-I$(ROOTDIR)/apps/gui/skin_engine \
|
2014-03-03 18:09:41 +00:00
|
|
|
-I$(FIRMDIR)/kernel/include \
|
2009-09-01 14:53:37 +00:00
|
|
|
-I$(ROOTDIR)/firmware/export \
|
2010-05-06 21:10:19 +00:00
|
|
|
-I$(ROOTDIR)/firmware/include \
|
2012-03-03 18:37:40 +00:00
|
|
|
-I$(ROOTDIR)/firmware/target/hosted \
|
|
|
|
-I$(ROOTDIR)/firmware/target/hosted/sdl \
|
2009-09-01 14:53:37 +00:00
|
|
|
-I$(ROOTDIR)/apps \
|
|
|
|
-I$(ROOTDIR)/apps/recorder \
|
2010-05-17 15:11:07 +00:00
|
|
|
-I$(ROOTDIR)/apps/radio \
|
2012-05-03 12:57:53 +00:00
|
|
|
-I$(ROOTDIR)/lib/rbcodec \
|
2012-03-18 11:58:33 +00:00
|
|
|
-I$(ROOTDIR)/lib/rbcodec/metadata \
|
2012-04-29 09:19:06 +00:00
|
|
|
-I$(ROOTDIR)/lib/rbcodec/dsp \
|
2009-10-07 16:54:15 +00:00
|
|
|
-I$(APPSDIR) \
|
|
|
|
-I$(BUILDDIR)
|
2009-08-21 20:26:53 +00:00
|
|
|
|
2009-09-01 14:53:37 +00:00
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
|
2012-03-26 21:57:20 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(CHECKWPS_OBJ) $$(CORE_LIBS)
|
2010-05-17 15:16:44 +00:00
|
|
|
@echo LD $(BINARY)
|
2012-03-26 21:16:48 +00:00
|
|
|
$(SILENT)$(HOSTCC) -o $@ $+ $(INCLUDE) $(GCCOPTS) \
|
|
|
|
-L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS))
|