shithub: soundpipe

Download patch

ref: 820bb5a5a1f99dced91a8d53dec417857cb15286
parent: ffe16b59b7ae8c2e00dffa7bba7c9d7b9238c9f5
author: Paul Batchelor <thisispaulbatchelor@gmail.com>
date: Sun Feb 7 02:38:29 EST 2021

fft.c no longer generated. reworked to use include statements instead.

--- a/.gitignore
+++ b/.gitignore
@@ -13,7 +13,6 @@
 examples/*.bin
 config.mk
 test/*.bin
-lib/fft/fft.c
 
 # Generated files
 util/wav2smp
--- a/lib/fft/Makefile
+++ b/lib/fft/Makefile
@@ -1,9 +1,5 @@
 LPATHS += lib/fft/fft.o
 UTIL += lib/fft/fft.c
 
-lib/fft/fft.c: lib/fft/fftlib.c lib/fft/sp_fft.c
-	echo "/* THIS IS A GENERATED FILE. DO NOT EDIT BY HAND */" > $@
-	cat $^ >> $@
-
 lib/fft/fft.o: lib/fft/fft.c
 	$(C89) $< -c $(CFLAGS) -o $@
--- /dev/null
+++ b/lib/fft/fft.c
@@ -1,0 +1,2 @@
+#include "fftlib.c"
+#include "sp_fft.c"