Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / fire / runsim / makefiles / Makefile.defs
CommitLineData
86530b38
AT
1# ========== Copyright Header Begin ==========================================
2#
3# OpenSPARC T2 Processor File: Makefile.defs
4# Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5# 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6#
7# * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; version 2 of the License.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21#
22# For the avoidance of doubt, and except that if any non-GPL license
23# choice is available it will apply instead, Sun elects to use only
24# the General Public License version 2 (GPLv2) at this time for any
25# software where a choice of GPL license versions is made
26# available with the language indicating that GPLv2 or any later version
27# may be used, or where a choice of which version of the GPL is applied is
28# otherwise unspecified.
29#
30# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31# CA 95054 USA or visit www.sun.com if you need additional information or
32# have any questions.
33#
34# ========== Copyright Header End ============================================
35# -*-Makefile-*- tell emacs what mode to use
36
37# This make file is to be included by all the makefiles for
38# each sub modules. This should not be edited unless it is absolutely
39# necessary.
40
41#-------------------------------------------------------------------------------
42# common directory variables, group dir
43#-------------------------------------------------------------------------------
44testbench_home_dir = $(shell pwd)
45grp_dir = $(DV_ROOT)/verif/env/fire
46runsim_dir = $(grp_dir)/runsim
47export grp_tools_bin_dir = $(grp_dir)/runsim/bin
48grp_tools_inc_dir = $(grp_dir)/runsim/include
49#grp_tools_lib_dir = $(grp_dir)/runsim/lib
50grp_tools_src_dir = $(grp_dir)/runsim/pli_src
51grp_tools_src_dir = $(grp_dir)/runsim/pli_src
52
53#-------------------------------------------------------------------------------
54# If you want to see the entire build process define `verbose_make' like so:
55# verbose_make = 1
56#-------------------------------------------------------------------------------
57
58SPEW_START = @$(echo) "----------------- Building $(lib)/$(@F) -----------------"
59SPEW_END = @$(echo) "----------------- Done $(lib)/$(@F) ------------------\n"
60
61#-------------------------------------------------------------------------------
62# Select tool versions, set _HOME variables as required
63#-------------------------------------------------------------------------------
64
65export csrtool = csrtool
66export vera = vera
67
68# export cc = /net/suntools/export/tools/sparc/bin/gcc
69# export cpp = /net/suntools/export/tools/sparc/bin/g++
70# export ld = /net/suntools/export/tools/sparc/bin/g++
71export cc = gcc
72export cpp = g++
73export ld = g++
74export ar = /usr/ccs/bin/ar
75#VCS_HOME = /import/vcs-release/$(shell configsrch vcs $(TRE_ENTRY))
76#VERA_HOME = /import/vcs-release/vera,$(shell configsrch vera $(TRE_ENTRY))/5.x
77#denali_dir = /net/inandout/export/home2/corpcad/tools/commercial/denali/v14/denali
78#denali_dir = /net/cadcombo1/export/home3/corpcad/tools/commercial/denali/pcie,v1.0_23
79denali_dir = $(DENALI)
80
81RM = /bin/rm -f
82cp = /bin/cp
83
84#-------------------------------------------------------------------------------
85# Perl scripts and other executables. Define the complete path so everyone
86# uses the same versions. Bsub and lsmake are left alone since they are
87# links through mwtool. SHELL defaults to the right thing (/bin/sh).
88#-------------------------------------------------------------------------------
89
90export ar = /usr/ccs/bin/ar
91export basename = /bin/basename
92export bsub = /import/camelot/exe/csub
93export cat = /bin/cat
94export CC = cc
95export chmod = /bin/chmod -f
96export cp = /usr/bin/cp
97export echo = /bin/echo
98export egrep = /usr/xpg4/bin/egrep
99export find = /usr/bin/find
100export gcc = gcc
101export gzip = /usr/dist/exe/gzip # ENV{GZIP} is used by the gzip program. be careful
102export ld = g++
103export link = ln -sf
104export mkdir = /usr/bin/mkdir
105export rm = $(RM)
106export sed = /bin/sed
107export tee = /bin/tee
108export test = /bin/test
109export touch = /usr/bin/touch
110export tr = /usr/ucb/tr
111export zgrep = /usr/dist/exe/zgrep
112
113sh_it = /bin/sh
114#export make_lib_depends = $(grp_tools_bin_dir)/make_lib_depends2.pl
115export make_lib_depends = $(grp_tools_bin_dir)/make_lib_depends.pl
116
117gen_csr_input = $(grp_tools_bin_dir)/gen_csr_input.pl
118fix_csr_output = $(grp_tools_bin_dir)/fix_csr_output.pl
119vrhfix = $(sh_it) $(grp_tools_bin_dir)/vrhfix.pl
120export reggie = $(grp_dir)/runsim/reggie/reggie.pl
121#register_logfile = register-logfile
122
123export report_dir = $(grp_dir)/runsim/pli_src/report
124export report_pp_dir = $(report_dir)/report_pp
125export report_pp = cd $(report_pp_dir); ./report_pp.pl
126
127
128#----------------------------------------------------------------------------
129# Make the `force' dependency work
130#----------------------------------------------------------------------------
131.PHONY: force
132force :
133
134#----------------------------------------------------------------
135# Don't mess with NULLSTRING or SPACE. These enable insertion of spaces
136# (ascii 0x20) into macro definitions. The space between `$(NULLSTRING)'
137# and the `#' in the SPACE definition is the actual value of the SPACE
138# macro.
139NULLSTRING :=
140SPACE := $(NULLSTRING) # keep that space.
141
142# What time is it?
143_HOUR = "%H"
144_MIN = "%M"
145_SEC = "%S"
146_FORMAT = "%Y%h%d."$(_HOUR)$(_MIN)$(_SEC)
147NOW := $(shell /usr/bin/date +"$(_FORMAT)")
148
149#============================= The End =================================