2008-06-09 21:25:10 -04: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
|
|
|
#
|
2026-01-26 20:24:34 -05:00
|
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
|
|
|
# under the terms of either the GNU Lesser General Public License Version 3
|
|
|
|
|
# or the Perl Artistic License Version 2.0.
|
|
|
|
|
# SPDX-FileCopyrightText: 2025-2026 Wilson Snyder
|
2020-03-21 11:24:24 -04: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 19:12:33 -04:00
|
|
|
# So t/t_foobar.cpp is found (due to test_regress using -Mdir)
|
2019-11-02 11:15:58 -04:00
|
|
|
VPATH += ../..
|
2009-12-02 21:15:56 -05:00
|
|
|
|
2006-08-26 11:35:28 +00:00
|
|
|
#######################################################################
|
|
|
|
|
|
2018-05-19 09:30:54 -04:00
|
|
|
# Debugging
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += -DVL_DEBUG=1
|
2018-05-19 09:30:54 -04:00
|
|
|
# Assertions disabled as SystemC libraries are not clean
|
|
|
|
|
#CPPFLAGS += -D_GLIBCXX_DEBUG
|
|
|
|
|
|
|
|
|
|
# Needed by tracing routines
|
2018-05-07 20:42:28 -04:00
|
|
|
CPPFLAGS += -DTEST_OBJ_DIR=$(TEST_OBJ_DIR)
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += -DVM_PREFIX=$(VM_PREFIX)
|
2017-10-24 19:58:52 -04: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-13 22:58:55 -04:00
|
|
|
CPPFLAGS += $(CPPFLAGS_DRIVER)
|
2009-12-16 21:28:09 -05:00
|
|
|
CPPFLAGS += $(CPPFLAGS_DRIVER2)
|
2006-08-26 11:35:28 +00:00
|
|
|
CPPFLAGS += $(CPPFLAGS_ADD)
|
|
|
|
|
|
2023-10-21 15:29:18 +01:00
|
|
|
# Reduce spin count for faster testing
|
|
|
|
|
CPPFLAGS += -DVL_LOCK_SPINS=10000
|
|
|
|
|
|
2017-10-07 21:29:57 -04:00
|
|
|
ifeq ($(CFG_WITH_LONGTESTS),yes)
|
|
|
|
|
ifeq ($(DRIVER_STD),newest)
|
2023-01-22 09:44:50 -05:00
|
|
|
CPPFLAGS += $(CFG_CXXFLAGS_STD)
|
2017-10-07 21:29:57 -04:00
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
2006-08-26 11:35:28 +00:00
|
|
|
#######################################################################
|