29f5385263
find_first_set_bit() becomes a small inline on ARMv5+ and checkwps now gets made with -std=gnu99 (it eats all the GCCOPTS) like the rest of things. Change-Id: Ie6039b17fec057a3dcb0f453d8fd5efac984df89
38 lines
1.4 KiB
Makefile
38 lines
1.4 KiB
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
# $Id$
|
|
#
|
|
|
|
GCCOPTS=-std=gnu99 -g -D__PCTOOL__ -DCHECKWPS $(TARGET)
|
|
|
|
CHECKWPS_SRC = $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
|
|
CHECKWPS_OBJ = $(call c2obj,$(CHECKWPS_SRC))
|
|
|
|
OTHER_SRC += $(CHECKWPS_SRC)
|
|
|
|
INCLUDES = -I$(ROOTDIR)/apps/gui \
|
|
-I$(ROOTDIR)/apps/gui/skin_engine \
|
|
-I$(FIRMDIR)/kernel/include \
|
|
-I$(ROOTDIR)/firmware/export \
|
|
-I$(ROOTDIR)/firmware/include \
|
|
-I$(ROOTDIR)/firmware/target/hosted \
|
|
-I$(ROOTDIR)/firmware/target/hosted/sdl \
|
|
-I$(ROOTDIR)/apps \
|
|
-I$(ROOTDIR)/apps/recorder \
|
|
-I$(ROOTDIR)/apps/radio \
|
|
-I$(ROOTDIR)/lib/rbcodec \
|
|
-I$(ROOTDIR)/lib/rbcodec/metadata \
|
|
-I$(ROOTDIR)/lib/rbcodec/dsp \
|
|
-I$(APPSDIR) \
|
|
-I$(BUILDDIR)
|
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
$(BUILDDIR)/$(BINARY): $$(CHECKWPS_OBJ) $$(CORE_LIBS)
|
|
@echo LD $(BINARY)
|
|
$(SILENT)$(HOSTCC) -o $@ $+ $(INCLUDE) $(GCCOPTS) \
|
|
-L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS))
|