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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [verilog/] [vpi/] [c/] [Makefile] - Diff between revs 40 and 397

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 40 Rev 397
Line 43... Line 43...
 
 
# Uncomment this line to enable debugging of all VPI code
# Uncomment this line to enable debugging of all VPI code
 
 
#DEBUG_DEFINES=-DDEBUG -DDEBUG2 -DDEBUG_ON=1 -DDEBUG_GDB=1 -DDEBUG_CMDS=1
#DEBUG_DEFINES=-DDEBUG -DDEBUG2 -DDEBUG_ON=1 -DDEBUG_GDB=1 -DDEBUG_CMDS=1
 
 
 
# Due to a difference in the type for a memory array passed back to the VPI
 
# interface, we must indicate whether we're compiling the jp_vpi module for use
 
# with Modelsim or with Icarus. We do this via defines passed at compile time,
 
# -DSIMULATOR_VPI
 
 
 
# Set V=1 when calling make to enable verbose output
 
# mainly for debugging purposes.
 
ifeq ($(V), 1)
 
Q=
 
QUIET=
 
else
 
Q ?=@
 
QUIET=-quiet
 
endif
 
 
all: jp_vpi
all: jp_vpi
 
 
jp_vpi: $(SOURCE_FILES)
jp_vpi: $(SOURCE_FILES)
        iverilog-vpi $(SOURCE_FILES) $(DEBUG_DEFINES)
        iverilog-vpi $(SOURCE_FILES) $(DEBUG_DEFINES) -DICARUS_VPI
 
 
 
SOURCE_FILES= jp_vpi.c rsp-rtl_sim.c gdb.c
 
OBJ_FILES=    jp_vpi.o rsp-rtl_sim.o gdb.o
 
 
 
MODELTECH_INC_PATH=$(MGC_PATH)/modeltech/include
 
# Modelsim VPI compile commands
 
msim_jp_vpi.sl: $(OBJ_FILES)
 
        ld -shared -E -o $@ $?
 
%.o: %.c
 
        $(Q)echo; echo "\t### Building VPI debug components for Modelsim ###"; echo;
 
        $(Q)gcc -g ${DEBUG_DEFINES} -I${MODELTECH_INC_PATH} \
 
        -l${MODELTECH_INC_PATH} \
 
        -DMODELSIM_VPI \
 
        -c $< -o $*.o
 
 
clean:
clean:
        rm -f *.o *~ jp_vpi.vpi
        $(Q)echo; echo "\t### Cleaning VPI debug directory ###"; echo;
 
        $(Q)rm -f *.o *~ jp_vpi.vpi msim_jp_vpi.sl

powered by: WebSVN 2.1.0

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