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

all: web web/test.js web/test2.html

web:
	mkdir -p web


web/test2.html: web test2.html
	cp test2.html web/test2.html


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