pvbemu/makefile

38 lines
975 B
Makefile
Raw Normal View History

2021-08-22 22:32:18 +00:00
.PHONY: help
help:
@echo
2021-08-26 19:23:18 +00:00
@echo "Virtual Boy Emulator - August 26, 2021"
2021-08-22 22:32:18 +00:00
@echo
@echo "Target build environment is any Debian with the following packages:"
@echo " emscripten"
@echo " gcc"
@echo " openjdk-17-jdk"
@echo
@echo "Available make targets:"
@echo " bundle Package the repository for HTML distribution"
@echo " clean Remove output files"
@echo " core Check the C core source for compiler warnings"
@echo " wasm Build the WebAssembly core module"
@echo
.PHONY: bundle
bundle:
@java app/Bundle.java vbemu
# @gcc -c core/libvb.c -std=c90 -Wall -Wextra
.PHONY: clean
clean:
@rm -f vbemu_*.html core.wasm
.PHONY: core
core:
@echo "Check C core for style warnings"
.PHONY: wasm
wasm:
@echo "Build WASM core module"
# @emcc -o core.wasm wasm/*.c core/libvb.c -Icore \
# --no-entry -O2 -flto -s WASM=1 -s EXPORTED_RUNTIME_METHODS=[] \
# -s ALLOW_MEMORY_GROWTH -s MAXIMUM_MEMORY=4GB -fno-strict-aliasing
@rm -f *.wasm.tmp*