skin engine: Relax the AA load width/height checks
[maemo-rb.git] / uisimulator / uisimulator.make
blob2641353bc902e7efc8ee710696af81423162cefe
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 INCLUDES += -I$(ROOTDIR)/uisimulator/bitmaps -I$(ROOTDIR)/uisimulator/common -I$(ROOTDIR)/uisimulator/buttonmap $\
11 -I$(FIRMDIR)/include -I$(FIRMDIR)/export $(TARGET_INC) -I$(BUILDDIR) -I$(APPSDIR)
13 SIMFLAGS += $(INCLUDES) $(DEFINES) -DHAVE_CONFIG_H $(GCCOPTS)
15 SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/common/SOURCES)
16 SIMSRC += $(call preprocess, $(ROOTDIR)/uisimulator/buttonmap/SOURCES)
17 SIMOBJ = $(call c2obj,$(SIMSRC))
18 OTHER_SRC += $(SIMSRC)
20 SIMLIB = $(BUILDDIR)/uisimulator/libuisimulator.a
21 ifeq (yes,$(APPLICATION))
22 UIBMP=
23 else
24 UIBMP=$(BUILDDIR)/UI256.bmp
25 endif
27 .SECONDEXPANSION: # $$(OBJ) is not populated until after this
29 $(SIMLIB): $$(SIMOBJ) $(UIBMP)
30 $(SILENT)$(shell rm -f $@)
31 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
33 $(BUILDDIR)/$(BINARY): $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $(SIMLIB)
34 $(call PRINTS,LD $(BINARY))$(CC) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LDOPTS) $(GLOBAL_LDOPTS) \
35 -Wl,-Map,$(BUILDDIR)/rockbox.map
36 $(SILENT)$(call objcopy,$@,$@)
38 $(BUILDDIR)/uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c
39 $(SILENT)mkdir -p $(dir $@)
40 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SIMFLAGS) -c $< -o $@
42 $(UIBMP): $(ROOTDIR)/uisimulator/bitmaps/UI-$(MODELNAME).bmp
43 $(call PRINTS,CP $(@F))cp $< $@