diff options
author | ZoRo <dos21h@gmail.com> | 2021-08-26 09:48:17 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2021-08-26 09:48:17 +0100 |
commit | feb72389aa4e1070fcbc888280ea65b178176460 (patch) | |
tree | 4e8f0561958fb51842a13adec237184a70de276a /Build/Makefile | |
parent | 3834bc793857aae02198d8f4c8a8373957269678 (diff) | |
download | NaiveFFT-feb72389aa4e1070fcbc888280ea65b178176460.tar.gz NaiveFFT-feb72389aa4e1070fcbc888280ea65b178176460.zip |
Update source to be compatible with emscripten
Diffstat (limited to 'Build/Makefile')
-rw-r--r-- | Build/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/Makefile b/Build/Makefile index e19df12..f56677d 100644 --- a/Build/Makefile +++ b/Build/Makefile @@ -7,10 +7,11 @@ EM_LDFALGS=-s LLD_REPORT_UNDEFINED make: $(CC) -c $(SOURCEDIR)/main.c -g3 - $(CC) main.o -o NaiveFFT $(LDFLAGS) + $(CC) -c $(SOURCEDIR)/fft.c -g3 + $(CC) main.o fft.o -o NaiveFFT $(LDFLAGS) emcc: - $(EMCC) $(SOURCEDIR)/main.c ../NaiveFFT/fft.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' + $(EMCC) $(SOURCEDIR)/main.c $(SOURCEDIR)/fft.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' web: |