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

all: web web/example4.js web/example4.html web/audioutil.js

web:
	mkdir -p web


web/example4.html: web example4.html
	cp example4.html web/example4.html


web/audioutil.js: web audioutil.js
	cp audioutil.js web/audioutil.js


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