Added hooks to VProc makefile for specifying external libraries and paths, and also includes and paths to hook in ESW-HAL

This commit is contained in:
Simon Southwell 2018-12-03 06:52:32 +00:00
commit 5eba340fbb

View file

@ -18,6 +18,11 @@ EXTINCLDIR = ${USRCDIR}/hal
MEMMODELDIR = ../mem_model/src
MODELSIMDIR = c:\altera_17_1\ver\modelsim_ase
# Hooks to reference external HAL library and headers
# filled with dummy values. Override from calling makefile.
HALCOPTS = ""
HALLDOPTS = ""
# -----------------------------------------------------------------
# Destination folder for object code
@ -36,7 +41,7 @@ VPROC_C = VSched.c \
# Memory model C code
MEM_C = mem.c mem_model.c
# Test user code default (override on command line if additional files
# Test user code default (override on command line if additional files)
USER_C = VUserMain0.cpp
USER_INCL =
@ -56,6 +61,7 @@ CFLAGS = -fPIC \
-I${EXTINCLDIR} \
-I${MODELSIMDIR}/include \
-I${MEMMODELDIR} \
${HALCOPTS} \
-DVP_MAX_NODES=${MAX_NUM_VPROC} \
-DMODELSIM \
-DHDL_SIM \
@ -102,6 +108,7 @@ ${VPROC_PLI}: ${VLIB} ${VOBJDIR}/veriuser.o
-lmtipli \
-L${TESTDIR} -lvproc \
-Wl,-no-whole-archive \
${HALLDOPTS} \
-o $@
# Let modelsim decide what's changed in the verilog