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