summaryrefslogtreecommitdiff
path: root/apps/plugins/xrick/xrick.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xrick/xrick.make')
-rw-r--r--apps/plugins/xrick/xrick.make31
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/plugins/xrick/xrick.make b/apps/plugins/xrick/xrick.make
new file mode 100644
index 0000000000..26406a957d
--- /dev/null
+++ b/apps/plugins/xrick/xrick.make
@@ -0,0 +1,31 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10XRICKSRCDIR := $(APPSDIR)/plugins/xrick
11XRICKBUILDDIR := $(BUILDDIR)/apps/plugins/xrick
12
13INCLUDES += -I$(XRICKSRCDIR)../ \
14 -I$(XRICKSRCDIR)/3rd_party
15
16ROCKS += $(XRICKBUILDDIR)/xrick.rock
17
18XRICK_SRC := $(call preprocess, $(XRICKSRCDIR)/SOURCES)
19XRICK_OBJ := $(call c2obj, $(XRICK_SRC))
20
21# add source files to OTHER_SRC to get automatic dependencies
22OTHER_SRC += $(XRICK_SRC)
23
24XRICKCFLAGS = $(PLUGINFLAGS) -std=gnu99 -O2
25
26$(XRICKBUILDDIR)/xrick.rock: $(XRICK_OBJ)
27
28# new rule needed to use extra compile flags
29$(XRICKBUILDDIR)/%.o: $(XRICKSRCDIR)/%.c
30 $(SILENT)mkdir -p $(dir $@)
31 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(XRICKCFLAGS) -c $< -o $@