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

Subversion Repositories openrisc

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

Show entire file | Details | Blame | View Log

Rev 397 Rev 493
Line 67... Line 67...
 
 
SOURCE_FILES= jp_vpi.c rsp-rtl_sim.c gdb.c
SOURCE_FILES= jp_vpi.c rsp-rtl_sim.c gdb.c
OBJ_FILES=    jp_vpi.o rsp-rtl_sim.o gdb.o
OBJ_FILES=    jp_vpi.o rsp-rtl_sim.o gdb.o
 
 
MODELTECH_INC_PATH=$(MGC_PATH)/modeltech/include
MODELTECH_INC_PATH=$(MGC_PATH)/modeltech/include
 
MODELTECH_VPI_CFLAGS=-fPIC -fno-stack-protector -DMODELSIM_VPI
# Modelsim VPI compile commands
# Modelsim VPI compile commands
msim_jp_vpi.sl: $(OBJ_FILES)
msim_jp_vpi.sl: $(OBJ_FILES)
        ld -shared -E -o $@ $?
        ld -shared -E -o $@ $?
%.o: %.c
%.o: %.c
        $(Q)echo; echo "\t### Building VPI debug components for Modelsim ###"; echo;
        $(Q)echo; echo "\t### Building VPI debug components for Modelsim ###"; echo;
        $(Q)gcc -g ${DEBUG_DEFINES} -I${MODELTECH_INC_PATH} \
        $(Q)gcc -g ${DEBUG_DEFINES} -I${MODELTECH_INC_PATH} \
        -l${MODELTECH_INC_PATH} \
        -l${MODELTECH_INC_PATH} \
        -DMODELSIM_VPI \
        $(MODELTECH_VPI_CFLAGS) \
        -c $< -o $*.o
        -c $< -o $*.o
 
 
clean:
clean:
        $(Q)echo; echo "\t### Cleaning VPI debug directory ###"; echo;
        $(Q)echo; echo "\t### Cleaning VPI debug directory ###"; echo;
        $(Q)rm -f *.o *~ jp_vpi.vpi msim_jp_vpi.sl
        $(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.