URL
https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk
Subversion Repositories adv_debug_sys
Compare Revisions
- This comparison shows the changes necessary to convert path
/adv_debug_sys/tags/ADS_RELEASE_2_5_0/Software/adv_jtag_bridge/sim_lib/modelsim_win32
- from Rev 8 to Rev 49
- ↔ Reverse comparison
Rev 8 → Rev 49
/jp-io-vpi.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
jp-io-vpi.dll
Property changes :
Added: svn:executable
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 49)
@@ -0,0 +1,27 @@
+
+SRCDIR=../src/
+
+# The location of the ModelSim installation, used
+# to build the C lib for VPI. Used by MinGW, so use windows dir name, not /cygdrive/...
+MODEL=c:/altera/70/modelsim_ae
+
+# Different installs of Modelsim keep their libraries in different
+# directories (e.g. the version that comes with the Altera web version).
+# This directory must contain mtipli.dll
+MODEL_LIB=$(MODEL)/win32aloem
+
+# If building under windows, Modelsim requires that the VPI
+# library be compiled with MinGW, NOT cygwin GCC. The location
+# here is the default used by the auto-installer.
+MINGW_CC = c:/MinGW/bin/mingw32-gcc.exe
+
+
+default: vpi
+
+# This is for ModelSim under cygwin. Modelsim requires the shared lib
+# to be compiled with MinGW, not cygwin GCC.
+jp-io-vpi.dll: $(SRCDIR)jp-io-vpi.c Makefile
+ $(MINGW_CC) -DWIN32 -c -I$(MODEL)/include $(SRCDIR)jp-io-vpi.c -o jp-io-vpi.o
+ $(MINGW_CC) -DWIN32 -shared -Bsymbolic -o jp-io-vpi.dll jp-io-vpi.o -L$(MODEL_LIB) -lmtipli -lws2_32
+
+vpi: jp-io-vpi.dll Makefile
\ No newline at end of file