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
|
|
|
#
|
|
|
|
|
|
|
|
REVERSISRCDIR := $(APPSDIR)/plugins/reversi
|
|
|
|
REVERSIBUILDDIR := $(BUILDDIR)/apps/plugins/reversi
|
|
|
|
|
|
|
|
ROCKS += $(REVERSIBUILDDIR)/reversi.rock
|
|
|
|
|
|
|
|
REVERSI_SRC := $(call preprocess, $(REVERSISRCDIR)/SOURCES)
|
|
|
|
REVERSI_OBJ := $(call c2obj, $(REVERSI_SRC))
|
|
|
|
|
|
|
|
# add source files to OTHER_SRC to get automatic dependencies
|
|
|
|
OTHER_SRC += $(REVERSI_SRC)
|
|
|
|
|
|
|
|
$(REVERSIBUILDDIR)/reversi.rock: $(REVERSI_OBJ)
|
|
|
|
# for some reason, this doesn't match the implicit rule in plugins.make,
|
|
|
|
# so we have to duplicate the link command here
|
2008-11-20 14:17:09 +00:00
|
|
|
$(call PRINTS,LD $(@F))
|
2008-11-20 11:27:31 +00:00
|
|
|
$(SILENT)$(CC) $(PLUGINFLAGS) -o $*.elf \
|
|
|
|
$(filter %.o, $^) \
|
|
|
|
$(filter %.a, $^) \
|
|
|
|
-lgcc $(PLUGINLDFLAGS)
|
2008-11-20 14:17:09 +00:00
|
|
|
ifdef SIMVER
|
|
|
|
$(SILENT)cp $*.elf $@
|
|
|
|
else
|
|
|
|
$(SILENT)$(OC) -O binary $*.elf $@
|
|
|
|
endif
|