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
|
|
|
|
UIBMP = $(BUILDDIR)/UI256.bmp
|
|
|
|
|
|
|
|
.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
|
|
|
|
2009-04-29 22:58:56 +00:00
|
|
|
# SIMLIB needs to be linked twice for some reason
|
2010-06-17 12:59:43 +00:00
|
|
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB)
|
2009-04-29 22:58:56 +00:00
|
|
|
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(SIMLIB) $(LDOPTS)
|
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 $< $@
|