Bump version numbers for 3.13
[maemo-rb.git] / apps / plugins / rockboy / rockboy.make
blob625c40eca8234004b545250638e729bafd40661a
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 ROCKBOY_SRCDIR = $(APPSDIR)/plugins/rockboy
11 ROCKBOY_OBJDIR = $(BUILDDIR)/apps/plugins/rockboy
13 ROCKBOY_SRC := $(call preprocess, $(ROCKBOY_SRCDIR)/SOURCES)
14 ROCKBOY_OBJ := $(call c2obj, $(ROCKBOY_SRC))
16 OTHER_SRC += $(ROCKBOY_SRC)
18 ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES)
19 ## lowmem targets
20 ROCKS += $(ROCKBOY_OBJDIR)/rockboy.ovl
21 ROCKBOY_OUTLDS = $(ROCKBOY_OBJDIR)/rockboy.link
22 ROCKBOY_OVLFLAGS = -T$(ROCKBOY_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map
23 else
24 ROCKS += $(ROCKBOY_OBJDIR)/rockboy.rock
25 endif
27 $(ROCKBOY_OBJDIR)/rockboy.rock: $(ROCKBOY_OBJ)
29 $(ROCKBOY_OBJDIR)/rockboy.refmap: $(ROCKBOY_OBJ)
31 $(ROCKBOY_OUTLDS): $(PLUGIN_LDS) $(ROCKBOY_OBJDIR)/rockboy.refmap
32 $(call PRINTS,PP $(@F))$(call preprocess2file,$<,$@,-DOVERLAY_OFFSET=$(shell \
33 $(TOOLSDIR)/ovl_offset.pl $(ROCKBOY_OBJDIR)/rockboy.refmap))
35 $(ROCKBOY_OBJDIR)/rockboy.ovl: $(ROCKBOY_OBJ) $(ROCKBOY_OUTLDS)
36 $(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
37 $(filter %.o, $^) \
38 $(filter %.a, $+) \
39 -lgcc $(ROCKBOY_OVLFLAGS)
40 $(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)