Commit | Line | Data |
---|---|---|
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 | #------------------------------------------------------------------------------- | |
44 | testbench_home_dir = $(shell pwd) | |
45 | grp_dir = $(DV_ROOT)/verif/env/fire | |
46 | runsim_dir = $(grp_dir)/runsim | |
47 | export grp_tools_bin_dir = $(grp_dir)/runsim/bin | |
48 | grp_tools_inc_dir = $(grp_dir)/runsim/include | |
49 | #grp_tools_lib_dir = $(grp_dir)/runsim/lib | |
50 | grp_tools_src_dir = $(grp_dir)/runsim/pli_src | |
51 | grp_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 | ||
58 | SPEW_START = @$(echo) "----------------- Building $(lib)/$(@F) -----------------" | |
59 | SPEW_END = @$(echo) "----------------- Done $(lib)/$(@F) ------------------\n" | |
60 | ||
61 | #------------------------------------------------------------------------------- | |
62 | # Select tool versions, set _HOME variables as required | |
63 | #------------------------------------------------------------------------------- | |
64 | ||
65 | export csrtool = csrtool | |
66 | export 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++ | |
71 | export cc = gcc | |
72 | export cpp = g++ | |
73 | export ld = g++ | |
74 | export 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 | |
79 | denali_dir = $(DENALI) | |
80 | ||
81 | RM = /bin/rm -f | |
82 | cp = /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 | ||
90 | export ar = /usr/ccs/bin/ar | |
91 | export basename = /bin/basename | |
92 | export bsub = /import/camelot/exe/csub | |
93 | export cat = /bin/cat | |
94 | export CC = cc | |
95 | export chmod = /bin/chmod -f | |
96 | export cp = /usr/bin/cp | |
97 | export echo = /bin/echo | |
98 | export egrep = /usr/xpg4/bin/egrep | |
99 | export find = /usr/bin/find | |
100 | export gcc = gcc | |
101 | export gzip = /usr/dist/exe/gzip # ENV{GZIP} is used by the gzip program. be careful | |
102 | export ld = g++ | |
103 | export link = ln -sf | |
104 | export mkdir = /usr/bin/mkdir | |
105 | export rm = $(RM) | |
106 | export sed = /bin/sed | |
107 | export tee = /bin/tee | |
108 | export test = /bin/test | |
109 | export touch = /usr/bin/touch | |
110 | export tr = /usr/ucb/tr | |
111 | export zgrep = /usr/dist/exe/zgrep | |
112 | ||
113 | sh_it = /bin/sh | |
114 | #export make_lib_depends = $(grp_tools_bin_dir)/make_lib_depends2.pl | |
115 | export make_lib_depends = $(grp_tools_bin_dir)/make_lib_depends.pl | |
116 | ||
117 | gen_csr_input = $(grp_tools_bin_dir)/gen_csr_input.pl | |
118 | fix_csr_output = $(grp_tools_bin_dir)/fix_csr_output.pl | |
119 | vrhfix = $(sh_it) $(grp_tools_bin_dir)/vrhfix.pl | |
120 | export reggie = $(grp_dir)/runsim/reggie/reggie.pl | |
121 | #register_logfile = register-logfile | |
122 | ||
123 | export report_dir = $(grp_dir)/runsim/pli_src/report | |
124 | export report_pp_dir = $(report_dir)/report_pp | |
125 | export report_pp = cd $(report_pp_dir); ./report_pp.pl | |
126 | ||
127 | ||
128 | #---------------------------------------------------------------------------- | |
129 | # Make the `force' dependency work | |
130 | #---------------------------------------------------------------------------- | |
131 | .PHONY: force | |
132 | force : | |
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. | |
139 | NULLSTRING := | |
140 | SPACE := $(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) | |
147 | NOW := $(shell /usr/bin/date +"$(_FORMAT)") | |
148 | ||
149 | #============================= The End ================================= |