Initial commit

This commit is contained in:
thib8956 committed 2026-10-27 22:10:43 +01:00
commit 91a1e2e312
22 files changed
+885

No files matched your search

+16
View File
@@ -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