Files
verilator/test_regress/Makefile_obj
T

52 lines
1.5 KiB
Makefile
Raw Normal View History

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
#
# This is executed in the object directory, and called by ../Makefile
2006-08-26 11:35:28 +00:00
#
2024-01-01 03:19:59 -05:00
# Copyright 2003-2024 by Wilson Snyder. 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-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)
VPATH += ../..
2006-08-26 11:35:28 +00:00
#######################################################################
# Needed by DPI tests
CPPFLAGS += -DVERILATOR=1
# Debugging
2006-08-26 11:35:28 +00:00
CPPFLAGS += -DVL_DEBUG=1
# 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)
CPPFLAGS += -DVM_PREFIX_INCLUDE="<$(VM_PREFIX).h>"
2021-12-19 19:45:06 +00:00
CPPFLAGS += -DVM_PREFIX_ROOT_INCLUDE="<$(VM_PREFIX)___024root.h>"
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
ifeq ($(CFG_WITH_LONGTESTS),yes)
ifeq ($(DRIVER_STD),newest)
CPPFLAGS += $(CFG_CXXFLAGS_STD)
endif
endif
2006-08-26 11:35:28 +00:00
#######################################################################