# Makefile for web audio wasm example
#
# Roger B. Dannenberg
# Oct 2023

all: web web/example3.js web/example3.html

web:
	mkdir -p web


web/example3.html: web example3.html
	cp example3.html web/example3.html


web/example3.js: audioworklet.cpp Makefile
	em++ -lembind audioworklet.cpp -s ENVIRONMENT='web','worker' -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -o web/example3.js
