BBdefs
1.52 KB
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
57
58
59
60
61
62
63
64
65
#
# Commondefs for Project BB
#
# Makefiles which include this should first define BBDEPTH
# to be the relative path from their parent directory.
# Use $(MAKE) $(MAKEARGS) instead of $(MAKEF) so that make -n works
# This gets around the fact that $(MAKE) works and $(MAKEF) does not.
# MAKEARGS is based directly on $(MAKEF) in commondefs.
MAKEARGS = VCFLAGS="$(VCFLAGS)" VFFLAGS="$(VFFLAGS)" \
VPFLAGS="$(VPFLAGS)" VMKDEPFLAGS="$(VMKDEPFLAGS)"
# sum of all source files;
SOURCES = $(HFILES) $(ASFILES) $(CFILES) $(SHFILES)
# sum off all object files depending on SOURCES;
OBJECTS = $(ASFILES:.s=.o) $(CFILES:.c=.o)
# make sure 'default' does not hit these rules
defaultrule: default
# C compiler options and definitions;
GCDEFS =
LCFLAGS = $(LCDEFS) $(LCINCS) $(LCOPTS)
GCFLAGS = $(GCDEFS) $(GCINCS) $(GCOPTS)
# VCS definitions;
# VCS_HOME is the path to the vcs tool root;
# VCS_NAME is the name of the executable;
# VCS is the path to the executable;
# allow user to overwrite all of them;
VCS_HOME ?= /ecad/vcs
VCS_NAME ?= vcs
VCS_LIB ?= $(VCS_HOME)/intel_i686_linux_2.2/lib
VCS ?= $(VCS_HOME)/bin/$(VCS_NAME)
# sum up all the vcs options;
VCSOPTS = $(GVCSOPTS) $(LVCSOPTS) $(VVCSOPTS)
VCSINCL = $(VCS_HOME)/include
# VIRSIM definitions;
VIRSIMHOME = $(VCS_HOME)/virsimdir
VCD2VPD = $(VCS_HOME)/virsimdir/bin/vcd2vpd
# other tool definitions;
SHELL = /bin/sh
RM = /bin/rm
# log definitions;
LOG_RESULT = \
@echo -n "!!! $(*:T) of" `basename \`pwd\``": "; \
grep "number of errors" $*.out
LOG_ERROR = $(LOG_RESULT)