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