diff options
Diffstat (limited to 'apps/plugins/fft/fft.make')
-rw-r--r-- | apps/plugins/fft/fft.make | 27 |
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 | |||
10 | FFTSRCDIR := $(APPSDIR)/plugins/fft | ||
11 | FFTBUILDDIR := $(BUILDDIR)/apps/plugins/fft | ||
12 | |||
13 | ROCKS += $(FFTBUILDDIR)/fft.rock | ||
14 | |||
15 | FFT_SRC := $(call preprocess, $(FFTSRCDIR)/SOURCES) | ||
16 | FFT_OBJ := $(call c2obj, $(FFT_SRC)) | ||
17 | |||
18 | # add source files to OTHER_SRC to get automatic dependencies | ||
19 | OTHER_SRC += $(FFT_SRC) | ||
20 | |||
21 | FFTFLAGS = $(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 $@ | ||