-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 607 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 607 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=clang-14
CFLAGS=-O2 -fvisibility=hidden --target=wasm32 -fno-vectorize
SIMDFLAGS=-DWASM_SIMD=1
LD=wasm-ld-14
LDFLAGS=--no-entry --export-dynamic --allow-undefined --gc-sections -O3 --lto-O3
.PHONY: clean all
all: showcqt.wasm showcqt-simd.wasm
clean:
rm -frv *.o *.wasm
showcqt.o: showcqt.c showcqt.h
$(CC) showcqt.c $(CFLAGS) -c -o showcqt.o
showcqt-simd.o: showcqt.c showcqt.h
$(CC) showcqt.c $(CFLAGS) $(SIMDFLAGS) -c -o showcqt-simd.o
showcqt.wasm: showcqt.o
$(LD) showcqt.o $(LDFLAGS) -o showcqt.wasm
showcqt-simd.wasm: showcqt-simd.o
$(LD) showcqt-simd.o $(LDFLAGS) -o showcqt-simd.wasm