yayacemu/makefile

23 lines
435 B
Makefile
Raw Normal View History

2024-02-01 03:04:52 +00:00
.PHONY: run clean format
2024-01-31 01:54:35 +00:00
SDL_CFLAGS = `sdl2-config --cflags`
SDL_LDFLAGS = `sdl2-config --libs`
lint:
verilator --lint-only --timing *.sv
2024-01-31 01:54:35 +00:00
build: lint
2024-02-01 02:57:11 +00:00
verilator --cc --exe --build --timing -j 0 --top-module chip8 *.sv yayacemu.cpp -CFLAGS "${SDL_CFLAGS}" -LDFLAGS "${SDL_LDFLAGS}" && clear
2024-01-31 01:54:35 +00:00
run: build
2024-02-01 02:57:11 +00:00
obj_dir/Vchip8 ${ROM_FILE}
2024-01-31 01:54:35 +00:00
clean:
rm -rf obj_dir
2024-02-01 03:04:52 +00:00
format:
verible-verilog-format *.sv --inplace && clang-format *.cpp -i
2024-01-31 01:54:35 +00:00