Skip to content

Commit

Permalink
Merge pull request #89 from iscgar/cosim_windows_support
Browse files Browse the repository at this point in the history
Windows support for co-simulation
  • Loading branch information
jandecaluwe committed Jul 14, 2015
2 parents 494014c + 841c154 commit 5360783
Show file tree
Hide file tree
Showing 11 changed files with 719 additions and 31 deletions.
21 changes: 21 additions & 0 deletions cosimulation/modelsim-win/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
INCS := C:\\modeltech64_10.4\\include
LIB_PATH := C:\\modeltech64_10.4\\win64

ifneq ($(filter cl%,$(CC)),)
CFLAGS := /LD /I$(INCS)
LIBFLAGS := $(LIB_PATH)\\mtipli.lib
else
CFLAGS := -static -g -I$(INCS) -o myhdl_vpi.dll
LIBFLAGS := -L$(LIB_PATH) -lmtipli
endif

all: myhdl_vpi.dll

myhdl_vpi.dll: myhdl_vpi.c
$(CC) $(CFLAGS) $< $(LIBFLAGS)

clean:
@del /q myhdl_vpi.dll || rm -rf myhdl_vpi.dll 2>&1> /dev/null ||:
@del /q myhdl_vpi.lib || rm -rf myhdl_vpi.lib 2>&1> /dev/null ||:
@del /q myhdl_vpi.exp || rm -rf myhdl_vpi.exp 2>&1> /dev/null ||:
@del /q myhdl_vpi.obj || rm -rf myhdl_vpi.obj 2>&1> /dev/null ||:

0 comments on commit 5360783

Please sign in to comment.