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
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDES += -I$(ROOTDIR)/uisimulator/sdl -I$(ROOTDIR)/uisimulator/common \
|
|
|
|
|
|
|
|
SIMINCLUDES += -I$(ROOTDIR)/uisimulator/sdl -I$(ROOTDIR)/uisimulator/common \
|
|
|
|
-I$(FIRMDIR)/export $(TARGET_INC) -I$(BUILDDIR) -I$(APPSDIR)
|
|
|
|
|
|
|
|
SIMFLAGS += $(SIMINCLUDES) $(DEFINES) -DHAVE_CONFIG_H $(GCCOPTS)
|
|
|
|
|
|
|
|
SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/sdl/SOURCES)
|
|
|
|
SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/common/SOURCES)
|
|
|
|
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
|
|
|
|
|
|
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB)
|
|
|
|
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS)
|
|
|
|
|
|
|
|
$(BUILDDIR)/uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SIMFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
$(UIBMP): $(ROOTDIR)/uisimulator/sdl/UI-$(MODELNAME).bmp
|
|
|
|
$(call PRINTS,CP $(@F))cp $< $@
|