Fix Makefile to find headers/libraries under prefix.
This commit is contained in:
parent
499f98a51c
commit
23ee0342c6
2
Changes
2
Changes
|
|
@ -17,6 +17,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
||||||
|
|
||||||
**** Fix compile errors under Fedora 9, GCC 4.3.0. [by Jeremy Bennett]
|
**** Fix compile errors under Fedora 9, GCC 4.3.0. [by Jeremy Bennett]
|
||||||
|
|
||||||
|
**** Fix Makefile to find headers/libraries under prefix. [by Holger_Waechtler]
|
||||||
|
|
||||||
* Verilator 3.664 2008/05/08
|
* Verilator 3.664 2008/05/08
|
||||||
|
|
||||||
**** Fix missing file in kit.
|
**** Fix missing file in kit.
|
||||||
|
|
|
||||||
|
|
@ -516,9 +516,13 @@ designs with only one top.
|
||||||
|
|
||||||
=item --trace
|
=item --trace
|
||||||
|
|
||||||
Adds waveform tracing code to the model, this will create additional
|
Adds waveform tracing code to the model. Verilator will generate
|
||||||
{prefix}__Trace*.cpp files you will need to add to your Makefiles, if
|
additional {prefix}__Trace*.cpp files that will need to be compiled. In
|
||||||
you're not using the ones generated for you.
|
addition Sp.cpp (for SystemC traces) or SpTraceVcdC.c (for C++ only) from
|
||||||
|
the SystemPerl kit's src directory must be compiled and linked in. If
|
||||||
|
using the Verilator generated Makefiles, these will be added as source
|
||||||
|
targets for you. If you're not using the Verilator makefiles, you will
|
||||||
|
need to add these to your Makefile manually.
|
||||||
|
|
||||||
Having tracing compiled in may result in some small performance losses,
|
Having tracing compiled in may result in some small performance losses,
|
||||||
even when waveforms are not turned on during model execution.
|
even when waveforms are not turned on during model execution.
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,14 @@ AC_ARG_ENABLE(defenv,
|
||||||
CFG_WITH_DEFENV=yes)
|
CFG_WITH_DEFENV=yes)
|
||||||
AC_SUBST(CFG_WITH_DEFENV)
|
AC_SUBST(CFG_WITH_DEFENV)
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Compiler flags
|
||||||
CXX=g++
|
CXX=g++
|
||||||
|
CFLAGS=-I${includedir}
|
||||||
|
CPPFLAGS=-I${includedir}
|
||||||
|
CXXFLAGS=-I${includedir}
|
||||||
|
LDFLAGS=-L${libdir}
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
|
||||||
|
|
@ -23,14 +23,15 @@
|
||||||
srcdir = ..
|
srcdir = ..
|
||||||
incdir = ../../include
|
incdir = ../../include
|
||||||
|
|
||||||
PERL = @PERL@
|
# Programs
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
LINK = @CXX@
|
LINK = @CXX@
|
||||||
|
LEX = @LEX@
|
||||||
LDFLAGS += @LDFLAGS@
|
LFLAGS = -d
|
||||||
|
PERL = @PERL@
|
||||||
CFG_WITH_DEFENV = @CFG_WITH_DEFENV@
|
YACC = @YACC@
|
||||||
|
YFLAGS = -y -d -v
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
|
|
||||||
|
|
@ -41,6 +42,11 @@ datarootdir = @datarootdir@
|
||||||
# Generally ${prefix}/share/verilator
|
# Generally ${prefix}/share/verilator
|
||||||
pkgdatadir = @pkgdatadir@
|
pkgdatadir = @pkgdatadir@
|
||||||
|
|
||||||
|
# Compile options
|
||||||
|
CFG_WITH_DEFENV = @CFG_WITH_DEFENV@
|
||||||
|
CPPFLAGSNOWALL += @CPPFLAGS@
|
||||||
|
LDFLAGS += @LDFLAGS@
|
||||||
|
|
||||||
#### End of system configuration section. ####
|
#### End of system configuration section. ####
|
||||||
|
|
||||||
VPATH += . $(srcdir)
|
VPATH += . $(srcdir)
|
||||||
|
|
@ -59,17 +65,12 @@ COPT = -ggdb -DVL_DEBUG
|
||||||
endif
|
endif
|
||||||
#################
|
#################
|
||||||
|
|
||||||
LEX = @LEX@
|
|
||||||
LFLAGS = -d
|
|
||||||
YACC = @YACC@
|
|
||||||
YFLAGS = -y -d -v
|
|
||||||
|
|
||||||
#LIBS += -ldl
|
#LIBS += -ldl
|
||||||
#CCMALLOC = /usr/local/lib/ccmalloc-gcc.o -lccmalloc -ldl
|
#CCMALLOC = /usr/local/lib/ccmalloc-gcc.o -lccmalloc -ldl
|
||||||
|
|
||||||
LIBS = -lm -lfl
|
LIBS = -lm -lfl
|
||||||
|
|
||||||
CPPFLAGSNOWALL = -MMD
|
CPPFLAGSNOWALL += -MMD
|
||||||
CPPFLAGSNOWALL += -I. -I$(srcdir) -I$(incdir)
|
CPPFLAGSNOWALL += -I. -I$(srcdir) -I$(incdir)
|
||||||
CPPFLAGSNOWALL += -DYYDEBUG # Required to get nice error messages
|
CPPFLAGSNOWALL += -DYYDEBUG # Required to get nice error messages
|
||||||
#CPPFLAGSNOWALL += -DVL_LEAK_CHECKS # If running valgrind or other hunting tool
|
#CPPFLAGSNOWALL += -DVL_LEAK_CHECKS # If running valgrind or other hunting tool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue