-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
56 lines (47 loc) · 1.84 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#*****************************************************************************
# DESCRIPTION: Verilator external tests: Top Makefile
#
# This file is part of the Verilator external tests package.
#
#*****************************************************************************
#
# Copyright 2019-2023 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.
#
# Verilator is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#****************************************************************************/
# Please see docs/README.md for most information.
#
# make test
# To run all tests
# make clean or make mostlyclean
# Delete all files from the current directory that are normally
# created by building the tests.
#****************************************************************************/
default:
@echo See docs/README.md for information on using these tests.
######################################################################
DRIVER_FLAGS ?= -j 0 --quiet --rerun
SCENARIOS ?= --vlt --vltmt --dist
test:
t/vltest_bootstrap.py $(DRIVER_FLAGS) $(SCENARIOS) t/t_*.py
######################################################################
git-update git-pull pull:
git pull
git submodule update --remote --merge
######################################################################
git-clean:
git clean -xfd
git submodule foreach git clean -xfd
clean mostlyclean distclean maintainer-clean::
rm -rf */obj_*
rm -rf obj_*
for p in submodules/* ; do \
test -e $$p/Makefile && $(MAKE) -C $$p clean ; \
done