GHDL_ALTERA=/home/michael/build/ghdl_vendor_scripts/altera GHDLFLAGS = --ieee=synopsys --std=93c \ -fexplicit -frelaxed-rules --no-vital-checks --warn-binding --mb-comments \ -P$(GHDL_ALTERA)/altera/v93 \ -P$(GHDL_ALTERA)/altera_lnsim/v93 \ -P$(GHDL_ALTERA)/altera_mf/v93 \ -P$(GHDL_ALTERA)/arriav/v93 all: testbench ghdl -r testbench --ieee-asserts=disable testbench: vhpi_example_c.o \ vhpi_example.vhd \ testbench.vhd ghdl -a $(GHDLFLAGS) $(filter-out vhpi_example_c.o, $+) ghdl -m -Wl,vhpi_example_c.o $(GHDLFLAGS) testbench vhpi_example_c.o: vhpi_example_c.c gcc -c vhpi_example_c.c clean: rm -f *.o testbench work-obj*.cf simulation.ghw