diff options
Diffstat (limited to 'apps/plugins/xworld/xworld.make')
-rw-r--r-- | apps/plugins/xworld/xworld.make | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/plugins/xworld/xworld.make b/apps/plugins/xworld/xworld.make new file mode 100644 index 0000000000..7d6966842b --- /dev/null +++ b/apps/plugins/xworld/xworld.make | |||
@@ -0,0 +1,27 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | XWORLDSRCDIR := $(APPSDIR)/plugins/xworld | ||
11 | XWORLDBUILDDIR := $(BUILDDIR)/apps/plugins/xworld | ||
12 | |||
13 | ROCKS += $(XWORLDBUILDDIR)/xworld.rock | ||
14 | |||
15 | XWORLD_SRC := $(call preprocess, $(XWORLDSRCDIR)/SOURCES) | ||
16 | XWORLD_OBJ := $(call c2obj, $(XWORLD_SRC)) | ||
17 | |||
18 | # add source files to OTHER_SRC to get automatic dependencies | ||
19 | OTHER_SRC += $(XWORLD_SRC) | ||
20 | |||
21 | XWORLDFLAGS = $(filter-out -O%,$(PLUGINFLAGS)) -O2 | ||
22 | |||
23 | $(XWORLDBUILDDIR)/xworld.rock: $(XWORLD_OBJ) | ||
24 | |||
25 | $(XWORLDBUILDDIR)/%.o: $(XWORLDSRCDIR)/%.c $(XWORLDSRCDIR)/xworld.make | ||
26 | $(SILENT)mkdir -p $(dir $@) | ||
27 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(XWORLDFLAGS) -c $< -o $@ | ||