2008-06-10 01:25:10 +00:00
|
|
|
# -*- Makefile -*-
|
2006-08-26 11:35:28 +00:00
|
|
|
#*****************************************************************************
|
|
|
|
#
|
|
|
|
# DESCRIPTION: Verilator Example: Makefile for inside object directory
|
|
|
|
#
|
2006-12-18 20:05:02 +00:00
|
|
|
# This is executed in the object directory, and called by ../Makefile
|
2006-08-26 11:35:28 +00:00
|
|
|
#
|
2024-01-01 08:19:59 +00:00
|
|
|
# Copyright 2003-2024 by Wilson Snyder. This program is free software; you
|
2020-03-21 15:24:24 +00:00
|
|
|
# can redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 21:07:57 +00:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
2020-03-21 15:24:24 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2006-08-26 11:35:28 +00:00
|
|
|
#
|
|
|
|
#*****************************************************************************
|
|
|
|
|
|
|
|
default: $(VM_PREFIX)
|
|
|
|
|
|
|
|
include $(VM_PREFIX).mk
|
|
|
|
|
2019-10-08 23:12:33 +00:00
|
|
|
# So t/t_foobar.cpp is found (due to test_regress using -Mdir)
|
2019-11-02 15:15:58 +00:00
|
|
|
VPATH += ../..
|
2009-12-03 02:15:56 +00:00
|
|
|
|
2006-08-26 11:35:28 +00:00
|
|
|
#######################################################################
|
|
|
|
|
2009-12-03 11:55:29 +00:00
|
|
|
# Needed by DPI tests
|
|
|
|
CPPFLAGS += -DVERILATOR=1
|
|
|
|
|
2018-05-19 13:30:54 +00:00
|
|
|
# Debugging
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += -DVL_DEBUG=1
|
2018-05-19 13:30:54 +00:00
|
|
|
# Assertions disabled as SystemC libraries are not clean
|
|
|
|
#CPPFLAGS += -D_GLIBCXX_DEBUG
|
|
|
|
|
|
|
|
# Needed by tracing routines
|
2018-05-08 00:42:28 +00:00
|
|
|
CPPFLAGS += -DTEST_OBJ_DIR=$(TEST_OBJ_DIR)
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += -DVM_PREFIX=$(VM_PREFIX)
|
2017-10-24 23:58:52 +00:00
|
|
|
CPPFLAGS += -DVM_PREFIX_INCLUDE="<$(VM_PREFIX).h>"
|
2021-12-19 19:45:06 +00:00
|
|
|
CPPFLAGS += -DVM_PREFIX_ROOT_INCLUDE="<$(VM_PREFIX)___024root.h>"
|
2009-03-14 02:58:55 +00:00
|
|
|
CPPFLAGS += $(CPPFLAGS_DRIVER)
|
2009-12-17 02:28:09 +00:00
|
|
|
CPPFLAGS += $(CPPFLAGS_DRIVER2)
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += $(CPPFLAGS_ADD)
|
|
|
|
|
2023-10-21 14:29:18 +00:00
|
|
|
# Reduce spin count for faster testing
|
|
|
|
CPPFLAGS += -DVL_LOCK_SPINS=10000
|
|
|
|
|
2017-10-08 01:29:57 +00:00
|
|
|
ifeq ($(CFG_WITH_LONGTESTS),yes)
|
|
|
|
ifeq ($(DRIVER_STD),newest)
|
2023-01-22 14:44:50 +00:00
|
|
|
CPPFLAGS += $(CFG_CXXFLAGS_STD)
|
2017-10-08 01:29:57 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-08-26 11:35:28 +00:00
|
|
|
#######################################################################
|