OpenCores
URL https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [soc/] [sw/] [adv_jtag_bridge/] [sim_lib/] [modelsim_win32/] [Makefile] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 xianfeng
 
2
SRCDIR=../src/
3
 
4
# The location of the ModelSim installation, used
5
# to build the C lib for VPI.  Used by MinGW, so use windows dir name, not /cygdrive/...
6
MODEL=c:/altera/70/modelsim_ae
7
 
8
# Different installs of Modelsim keep their libraries in different
9
# directories (e.g. the version that comes with the Altera web version).
10
# This directory must contain mtipli.dll
11
MODEL_LIB=$(MODEL)/win32aloem
12
 
13
# If building under windows, Modelsim requires that the VPI
14
# library be compiled with MinGW, NOT cygwin GCC.  The location
15
# here is the default used by the auto-installer.
16
MINGW_CC = c:/MinGW/bin/mingw32-gcc.exe
17
 
18
 
19
default: vpi
20
 
21
# This is for ModelSim under cygwin.  Modelsim requires the shared lib
22
# to be compiled with MinGW, not cygwin GCC.
23
jp-io-vpi.dll: $(SRCDIR)jp-io-vpi.c Makefile
24
        $(MINGW_CC) -DWIN32 -c -I$(MODEL)/include $(SRCDIR)jp-io-vpi.c -o jp-io-vpi.o
25
        $(MINGW_CC) -DWIN32 -shared -Bsymbolic -o jp-io-vpi.dll jp-io-vpi.o -L$(MODEL_LIB) -lmtipli -lws2_32
26
 
27
vpi: jp-io-vpi.dll Makefile

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.