the small playstation sound emulator

Makefile.emscripten 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. CC = emcc
  2. LIBUPSE_SRC = src/libupse/upse_string.c \
  3. src/libupse/upse_container_xsf.c \
  4. src/libupse/upse_filesystem.c \
  5. src/libupse/upse_util.c \
  6. src/libupse/upse_loader.c \
  7. src/libupse/upse_eventloop.c \
  8. src/libupse/upse_module.c \
  9. src/libupse/upse_loader_psf1.c \
  10. src/libupse/upse_loader_psf2.c \
  11. src/libupse/upse_bios_manager.c \
  12. src/libupse/upse_r3000_bytecode_evaluator.c \
  13. src/libupse/upse_r3000_abstract.c \
  14. src/libupse/upse_r3000_disassemble.c \
  15. src/libupse/upse_ps1_executive.c \
  16. src/libupse/upse_ps1_counters.c \
  17. src/libupse/upse_ps1_gpu.c \
  18. src/libupse/upse_ps1_hal.c \
  19. src/libupse/upse_ps1_bios_base.c \
  20. src/libupse/upse_ps1_memory_manager.c \
  21. src/libupse/upse_ps1_dma_manager.c \
  22. src/libupse/upse_ps1_spu_base.c \
  23. src/libupse/upse_ps1_spu_dma_handler.c \
  24. src/libupse/upse_ps1_spu_register_io.c \
  25. src/libupse/upse_ps1_spu_reverb.c \
  26. src/libupse/upse_ps1_spu_adsr_filter.c \
  27. src/libupse/upse_ps1_spu_lowpass_filter.c \
  28. src/libupse/upse_ps1_spu_nyquist_filter.c \
  29. src/libupse/upse_ps2_iop_base.c
  30. LIBUPSE_OBJ = ${LIBUPSE_SRC:.c=.o}
  31. CFLAGS = -s USE_ZLIB=1
  32. .c.o:
  33. ${CC} ${CFLAGS} -Isrc/emscripten/include -c -o $@ $<
  34. libupse.o: ${LIBUPSE_OBJ}
  35. ${CC} -o libupse.o ${LIBUPSE_OBJ}
  36. all: libupse.o
  37. clean:
  38. rm -f libupse.o ${LIBUPSE_OBJ}