2008-11-20 11:27:31 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2008-11-25 19:54:23 +00:00
|
|
|
# $Id$
|
2008-11-20 11:27:31 +00:00
|
|
|
#
|
|
|
|
|
2010-06-06 09:11:52 +00:00
|
|
|
INCLUDES += -I$(ROOTDIR)/uisimulator/bitmaps -I$(ROOTDIR)/uisimulator/common -I$(ROOTDIR)/uisimulator/buttonmap $\
|
2010-05-15 21:02:47 +00:00
|
|
|
-I$(FIRMDIR)/include -I$(FIRMDIR)/export $(TARGET_INC) -I$(BUILDDIR) -I$(APPSDIR)
|
2008-11-20 11:27:31 +00:00
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
SIMFLAGS += $(INCLUDES) $(DEFINES) -DHAVE_CONFIG_H $(GCCOPTS)
|
2008-11-20 11:27:31 +00:00
|
|
|
|
|
|
|
SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/common/SOURCES)
|
2010-06-06 09:11:52 +00:00
|
|
|
SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/buttonmap/SOURCES)
|
2008-11-20 11:27:31 +00:00
|
|
|
SIMOBJ = $(call c2obj,$(SIMSRC))
|
|
|
|
OTHER_SRC += $(SIMSRC)
|
|
|
|
|
|
|
|
SIMLIB = $(BUILDDIR)/uisimulator/libuisimulator.a
|
2011-02-27 11:37:39 +00:00
|
|
|
ifeq (yes,$(APPLICATION))
|
2010-07-06 15:11:56 +00:00
|
|
|
UIBMP=
|
|
|
|
else
|
|
|
|
UIBMP=$(BUILDDIR)/UI256.bmp
|
|
|
|
endif
|
2008-11-20 11:27:31 +00:00
|
|
|
|
|
|
|
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
|
|
|
|
|
|
|
$(SIMLIB): $$(SIMOBJ) $(UIBMP)
|
2008-11-20 16:51:13 +00:00
|
|
|
$(SILENT)$(shell rm -f $@)
|
2009-03-01 09:04:15 +00:00
|
|
|
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
2008-11-20 11:27:31 +00:00
|
|
|
|
2012-03-26 21:16:48 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $(SIMLIB)
|
2012-06-19 23:14:40 +00:00
|
|
|
$(call PRINTS,LD $(BINARY))$(CC) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LDOPTS) $(GLOBAL_LDOPTS) \
|
2012-01-17 14:08:08 +00:00
|
|
|
-Wl,-Map,$(BUILDDIR)/rockbox.map
|
2012-04-04 19:43:22 +00:00
|
|
|
$(SILENT)$(call objcopy,$@,$@)
|
2008-11-20 11:27:31 +00:00
|
|
|
|
|
|
|
$(BUILDDIR)/uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SIMFLAGS) -c $< -o $@
|
|
|
|
|
2010-05-18 12:46:09 +00:00
|
|
|
$(UIBMP): $(ROOTDIR)/uisimulator/bitmaps/UI-$(MODELNAME).bmp
|
2008-11-20 11:27:31 +00:00
|
|
|
$(call PRINTS,CP $(@F))cp $< $@
|