Initial commit
This commit is contained in:
commit
91a1e2e312
22 files changed
+885
No files matched your search
@@ -0,0 +1,16 @@
|
||||
CFLAGS = -Wall -Wextra -pedantic -std=c23 \
|
||||
-Wconversion -Wdouble-promotion \
|
||||
-Wno-unused-parameter -Wno-unused-function -Wno-sign-conversion \
|
||||
-fsanitize=undefined \
|
||||
--target=wasm32 -O1 -flto -ffreestanding -fno-builtin -nostdlib
|
||||
|
||||
math.o: math.c
|
||||
clang $(CFLAGS) -c math.c -o math.o
|
||||
|
||||
beep.wasm: beep.c math.o
|
||||
clang $(CFLAGS) \
|
||||
-Wl,--no-entry \
|
||||
-Wl,--export=beep \
|
||||
-Wl,--export=get_samples \
|
||||
beep.c math.o \
|
||||
-o beep.wasm
|
||||
Reference in new issue
Block a user