all: sim sim: test.ghw sim_sources = sysbus_test.vhdl sources = sysbus.vhdl test_entity = sysbus_test test.ghw: work-obj93.cf ghdl -r $(test_entity) --wave=$@ work-obj93.cf: $(sim_sources) $(sources) ghdl -a $^ PHONY: sim .PRECIOUS: test.ghw