diff options
Diffstat (limited to 'apps/plugins/tagcache/tagcache.make')
-rw-r--r-- | apps/plugins/tagcache/tagcache.make | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/plugins/tagcache/tagcache.make b/apps/plugins/tagcache/tagcache.make new file mode 100644 index 0000000000..5d6d65cb0e --- /dev/null +++ b/apps/plugins/tagcache/tagcache.make | |||
@@ -0,0 +1,30 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | TCPLUG_SRCDIR := $(APPSDIR)/plugins/tagcache | ||
11 | TCPLUG_BUILDDIR := $(BUILDDIR)/apps/plugins/tagcache | ||
12 | |||
13 | ROCKS += $(TCPLUG_BUILDDIR)/db_commit.rock | ||
14 | |||
15 | TCPLUG_FLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-unused \ | ||
16 | -I$(TCPLUG_SRCDIR) -ffunction-sections \ | ||
17 | -fdata-sections -Wl,--gc-sections | ||
18 | TCPLUG_SRC := $(call preprocess, $(TCPLUG_SRCDIR)/SOURCES) | ||
19 | TCPLUG_OBJ := $(call c2obj, $(TCPLUG_SRC)) | ||
20 | |||
21 | # add source files to OTHER_SRC to get automatic dependencies | ||
22 | OTHER_SRC += $(APPSDIR)/tagcache.c $(TCPLUG_SRC) | ||
23 | |||
24 | $(TCPLUG_BUILDDIR)/db_commit.rock: $(TCPLUG_OBJ) | ||
25 | |||
26 | # special pattern rule for compiling with extra flags | ||
27 | $(TCPLUG_BUILDDIR)/%.o: $(TCPLUG_SRCDIR)/%.c $(TCPLUG_SRCDIR)/tagcache.make | ||
28 | $(SILENT)mkdir -p $(dir $@) | ||
29 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(TCPLUG_FLAGS) -c $< -o $@ | ||
30 | |||