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