summaryrefslogtreecommitdiff
path: root/Build/Makefile
blob: e19df1295207d61236f3bcde7b2fa80aee91da51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
EMCC=emcc
CC=gcc
SOURCEDIR=../NaiveFFT
LDFLAGS=-lm
EM_LDFALGS=-s LLD_REPORT_UNDEFINED


make:
	$(CC) -c $(SOURCEDIR)/main.c -g3
	$(CC) main.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"]'

	
web:
	darkhttpd ./ --port 12345