diff options
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: |