38 lines
975 B
Makefile
38 lines
975 B
Makefile
.PHONY: help
|
|
help:
|
|
@echo
|
|
@echo "Virtual Boy Emulator - August 22, 2021"
|
|
@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*
|