pico-ice-video/ice/mandelbrot/source/impl_1/makefile

19 lines
409 B
Makefile
Raw Permalink Normal View History

2024-10-09 19:18:36 +00:00
VFLAGS = -O3 -x-assign fasta --x-initial fast --noassert
SDL_CFLAGS = `sdl2-config --cflags`
SDL_LDFLAGS = `sdl2-config --libs`
2024-10-06 04:18:41 +00:00
run: build
2024-10-09 19:18:36 +00:00
cd obj_dir && ./Vtop
wave: run
gtkwave obj_dir/waveform.vcd
2024-10-06 04:18:41 +00:00
build:
2024-10-09 19:18:36 +00:00
verilator --cc top.sv --trace --exe tb_top.cpp -I../../.. -CFLAGS "${SDL_CFLAGS}" -LDFLAGS "${SDL_LDFLAGS}"
2024-10-06 04:18:41 +00:00
make -C obj_dir -f Vtop.mk Vtop
2024-10-09 19:18:36 +00:00
clean:
rm -rf ./obj_dir
.PHONY: run wave build clean