Makefile 309 B

12345678
  1. all: validator.js
  2. validator.js: validator.c ../m3d.h ../m3dconv/dump.h
  3. emcc -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s EXPORTED_FUNCTIONS='["_m3d_validate","_malloc","_free"]' -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap"]' validator.c -o validator.js
  4. clean:
  5. rm validator.js validator.wasm 2>/dev/null || true