summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2021-08-25 07:51:01 +0100
committerZoRo <dos21h@gmail.com>2021-08-25 07:51:01 +0100
commitf29bfb55fae083189e060a08f6e266a56d52fc6a (patch)
tree117df8e819c08cd1f4a5624ad91cd3f2feb83a52
parentdb01e1264a89e5a40f1e730d9d80679faf6943f8 (diff)
downloadNaiveFFT-f29bfb55fae083189e060a08f6e266a56d52fc6a.tar.gz
NaiveFFT-f29bfb55fae083189e060a08f6e266a56d52fc6a.zip
Add linux build
-rw-r--r--Build/Makefile13
-rw-r--r--NaiveFFT/main.c1
2 files changed, 14 insertions, 0 deletions
diff --git a/Build/Makefile b/Build/Makefile
new file mode 100644
index 0000000..8b31c12
--- /dev/null
+++ b/Build/Makefile
@@ -0,0 +1,13 @@
+
+CC=gcc
+SOURCEDIR=../NaiveFFT
+LDFLAGS=-lm
+
+make:
+ $(CC) -c $(SOURCEDIR)/main.c -g3
+ $(CC) main.o -o NaiveFFT $(LDFLAGS)
+
+
+web:
+ darkhttpd ./ --port 12345
+
diff --git a/NaiveFFT/main.c b/NaiveFFT/main.c
index f8b56cd..1d71ac5 100644
--- a/NaiveFFT/main.c
+++ b/NaiveFFT/main.c
@@ -12,6 +12,7 @@
#include <math.h>
#include <complex.h>
#include <time.h>
+#include <stdint.h>
//data array
#define DATA_SIZE (8)