增加对系统版本的监测

This commit is contained in:
fengbh 2024-12-25 10:18:50 +08:00
parent 688cf86133
commit bd4cc71c66

View File

@ -1,7 +1,22 @@
LSB_RELEASE = $(shell lsb_release -is)
LSB_VERSION = $(shell lsb_release -rs)
ifeq (${LSB_RELEASE}, Ubuntu)
ifeq ($(shell echo "${LSB_VERSION}>18.04" | bc), 1)
CC = gcc-4.8
CPP = g++-4.8
else
CC = gcc
CPP = g++
endif
else
CC = gcc
CPP = g++
endif
comp_c: comp_c:
- gcc -fPIC -shared -o libfunc.so func.c -I ${VCS_HOME}/include - gcc -fPIC -shared -o libfunc.so func.c -I ${VCS_HOME}/include
comp: comp:
- vcs -full64 +v2k -sverilog -LDFLAGS -Wl,--no-as-needed \ - vcs -full64 +v2k -sverilog -LDFLAGS -Wl,--no-as-needed -cc $(CC) -cpp $(CPP)\
-P ${VERDI_HOME}/share/PLI/VCS/LINUX64/novas.tab ${VERDI_HOME}/share/PLI/VCS/LINUX64/pli.a \ -P ${VERDI_HOME}/share/PLI/VCS/LINUX64/novas.tab ${VERDI_HOME}/share/PLI/VCS/LINUX64/pli.a \
-P ./func.tab \ -P ./func.tab \
+vcs+fsdbon -debug_access+all \ +vcs+fsdbon -debug_access+all \