From 9fc795ca7a27e1575fc39e10432d2c1b42ff302c Mon Sep 17 00:00:00 2001 From: Keerthan Jaic Date: Mon, 30 Mar 2015 17:31:06 -0400 Subject: [PATCH] autodetect include dir in modelsim cosim makefile --- cosimulation/modelsim/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosimulation/modelsim/Makefile b/cosimulation/modelsim/Makefile index 5d858b24..84bb4349 100644 --- a/cosimulation/modelsim/Makefile +++ b/cosimulation/modelsim/Makefile @@ -2,7 +2,7 @@ WARNS=-Wall # change this path to point to the pli include files directory for cver -INCS=-I /opt/Altera/11.0/modelsim_ase/include +INCS=-I $(shell dirname `which vsim`)/../include # maybe want -O and/or -g