BBdefs 1.52 KB
#
# 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)