root / hw2 / sim-wattch-1.02 / Makefile @ 23
History | View | Annotate | Download (18.6 KB)
| 1 |
# |
|---|---|
| 2 |
# Makefile - simulator suite make file |
| 3 |
# |
| 4 |
# This file is a part of the SimpleScalar tool suite written by |
| 5 |
# Todd M. Austin as a part of the Multiscalar Research Project. |
| 6 |
# |
| 7 |
# The tool suite is currently maintained by Doug Burger and Todd M. Austin. |
| 8 |
# |
| 9 |
# Copyright (C) 1994, 1995, 1996, 1997, 1998 by Todd M. Austin |
| 10 |
# |
| 11 |
# This source file is distributed "as is" in the hope that it will be |
| 12 |
# useful. It is distributed with no warranty, and no author or |
| 13 |
# distributor accepts any responsibility for the consequences of its |
| 14 |
# use. |
| 15 |
# |
| 16 |
# Everyone is granted permission to copy, modify and redistribute |
| 17 |
# this source file under the following conditions: |
| 18 |
# |
| 19 |
# This tool set is distributed for non-commercial use only. |
| 20 |
# Please contact the maintainer for restrictions applying to |
| 21 |
# commercial use of these tools. |
| 22 |
# |
| 23 |
# Permission is granted to anyone to make or distribute copies |
| 24 |
# of this source code, either as received or modified, in any |
| 25 |
# medium, provided that all copyright notices, permission and |
| 26 |
# nonwarranty notices are preserved, and that the distributor |
| 27 |
# grants the recipient permission for further redistribution as |
| 28 |
# permitted by this document. |
| 29 |
# |
| 30 |
# Permission is granted to distribute this file in compiled |
| 31 |
# or executable form under the same conditions that apply for |
| 32 |
# source code, provided that either: |
| 33 |
# |
| 34 |
# A. it is accompanied by the corresponding machine-readable |
| 35 |
# source code, |
| 36 |
# B. it is accompanied by a written offer, with no time limit, |
| 37 |
# to give anyone a machine-readable copy of the corresponding |
| 38 |
# source code in return for reimbursement of the cost of |
| 39 |
# distribution. This written offer must permit verbatim |
| 40 |
# duplication by anyone, or |
| 41 |
# C. it is distributed by someone who received only the |
| 42 |
# executable form, and is accompanied by a copy of the |
| 43 |
# written offer of source code that they received concurrently. |
| 44 |
# |
| 45 |
# In other words, you are welcome to use, share and improve this |
| 46 |
# source file. You are forbidden to forbid anyone else to use, share |
| 47 |
# and improve what you give them. |
| 48 |
# |
| 49 |
# INTERNET: dburger@cs.wisc.edu |
| 50 |
# US Mail: 1210 W. Dayton Street, Madison, WI 53706 |
| 51 |
# |
| 52 |
# $Id: Makefile,v 1.8 1998/08/31 17:05:49 taustin Exp taustin $ |
| 53 |
# |
| 54 |
# $Log: Makefile,v $ |
| 55 |
# Revision 1.8 1998/08/31 17:05:49 taustin |
| 56 |
# added support for MS VC++ NMAKE builds (works with v5.0 SR3 or later) |
| 57 |
# |
| 58 |
# Revision 1.7 1998/08/27 07:40:03 taustin |
| 59 |
# reorganized Makefile: it now works with MS VC++ NMAKE, and many host |
| 60 |
# configurations are supplied in the header; added target configuration |
| 61 |
# support; converted "sim-tests" target to use "-redir:sim" and |
| 62 |
# "-redir:prog" options, this eliminates the need for the "redir" |
| 63 |
# scripts |
| 64 |
# |
| 65 |
# Revision 1.6 1997/04/16 22:08:40 taustin |
| 66 |
# added standalone loader support |
| 67 |
# |
| 68 |
# Revision 1.5 1997/03/11 01:04:13 taustin |
| 69 |
# updated copyright |
| 70 |
# CC target now supported |
| 71 |
# RANLIB target now supported |
| 72 |
# MAKE target now supported |
| 73 |
# CFLAGS reorganized |
| 74 |
# MFLAGS and MLIBS to improve portability |
| 75 |
# |
| 76 |
# Revision 1.1 1996/12/05 18:56:09 taustin |
| 77 |
# Initial revision |
| 78 |
# |
| 79 |
# |
| 80 |
|
| 81 |
################################################################## |
| 82 |
# |
| 83 |
# Modify the following definitions to suit your build environment, |
| 84 |
# NOTE: most platforms should not require any changes |
| 85 |
# |
| 86 |
################################################################## |
| 87 |
|
| 88 |
# |
| 89 |
# Define below C compiler and flags, machine-specific flags and libraries, |
| 90 |
# build tools and file extensions, these are specific to a host environment, |
| 91 |
# pre-tested environments follow... |
| 92 |
# |
| 93 |
|
| 94 |
## |
| 95 |
## vanilla Unix, GCC build |
| 96 |
## |
| 97 |
## NOTE: the SimpleScalar simulators must be compiled with an ANSI C |
| 98 |
## compatible compiler. |
| 99 |
## |
| 100 |
## tested hosts: |
| 101 |
## |
| 102 |
## Slackware Linux version 2.0.33, GNU GCC version 2.7.2.2 |
| 103 |
## FreeBSD version 3.0-current, GNU egcs version 2.91.50 |
| 104 |
## Alpha OSF1 version 4.0, GNU GCC version 2.7.2 |
| 105 |
## PA-RISC HPUX version B.10.01, GNU GCC version 2.7-96q3 |
| 106 |
## SPARC SunOS version 5.5.1, GNU egcs-2.90.29 |
| 107 |
## RS/6000 AIX Unix version 4, GNU GCC version cygnus-2.7-96q4 |
| 108 |
## Windows NT version 4.0, Cygnus CygWin/32 beta 19 |
| 109 |
## |
| 110 |
CC = gcc-3.3 |
| 111 |
#OFLAGS = -O0 -g -Wall |
| 112 |
OFLAGS = -O3 |
| 113 |
SAFEOFLAGS = -O0 |
| 114 |
MFLAGS = `./sysprobe -flags` |
| 115 |
MLIBS = `./sysprobe -libs` -lm |
| 116 |
ENDIAN = `./sysprobe -s` |
| 117 |
MAKE = make |
| 118 |
AR = ar qcv |
| 119 |
AROPT = |
| 120 |
RANLIB = ranlib |
| 121 |
RM = rm -f |
| 122 |
RMDIR = rm -f |
| 123 |
LN = ln -s |
| 124 |
LNDIR = ln -s |
| 125 |
DIFF = diff |
| 126 |
OEXT = o |
| 127 |
LEXT = a |
| 128 |
EEXT = |
| 129 |
CS = ; |
| 130 |
X=/ |
| 131 |
|
| 132 |
## |
| 133 |
## Alpha OSF1 version 4.0, DEC C compiler version V5.2-036 |
| 134 |
## |
| 135 |
#CC = cc -std |
| 136 |
#OFLAGS = -O0 -g -w |
| 137 |
#MFLAGS = `./sysprobe -flags` |
| 138 |
#MLIBS = `./sysprobe -libs` -lm |
| 139 |
#ENDIAN = `./sysprobe -s` |
| 140 |
#MAKE = make |
| 141 |
#AR = ar qcv |
| 142 |
#AROPT = |
| 143 |
#RANLIB = ranlib |
| 144 |
#RM = rm -f |
| 145 |
#RMDIR = rm -f |
| 146 |
#LN = ln -s |
| 147 |
#LNDIR = ln -s |
| 148 |
#DIFF = diff |
| 149 |
#OEXT = o |
| 150 |
#LEXT = a |
| 151 |
#EEXT = |
| 152 |
#CS = ; |
| 153 |
#X=/ |
| 154 |
|
| 155 |
## |
| 156 |
## PA-RISC HPUX version B.10.01, c89 HP C compiler version A.10.31.02 |
| 157 |
## |
| 158 |
#CC = c89 +e -D__CC_C89 |
| 159 |
#OFLAGS = -g |
| 160 |
#MFLAGS = `./sysprobe -flags` |
| 161 |
#MLIBS = `./sysprobe -libs` -lm |
| 162 |
#ENDIAN = `./sysprobe -s` |
| 163 |
#MAKE = make |
| 164 |
#AR = ar qcv |
| 165 |
#AROPT = |
| 166 |
#RANLIB = ranlib |
| 167 |
#RM = rm -f |
| 168 |
#RMDIR = rm -f |
| 169 |
#LN = ln -s |
| 170 |
#LNDIR = ln -s |
| 171 |
#DIFF = diff |
| 172 |
#OEXT = o |
| 173 |
#LEXT = a |
| 174 |
#EEXT = |
| 175 |
#CS = ; |
| 176 |
#X=/ |
| 177 |
|
| 178 |
## |
| 179 |
## SPARC SunOS version 5.5.1, Sun WorkShop C Compiler (acc) version 4.2 |
| 180 |
## |
| 181 |
#CC = /opt/SUNWspro/SC4.2/bin/acc |
| 182 |
#OFLAGS = -O0 -g |
| 183 |
#MFLAGS = `./sysprobe -flags` |
| 184 |
#MLIBS = `./sysprobe -libs` -lm |
| 185 |
#ENDIAN = `./sysprobe -s` |
| 186 |
#MAKE = make |
| 187 |
#AR = ar qcv |
| 188 |
#AROPT = |
| 189 |
#RANLIB = ranlib |
| 190 |
#RM = rm -f |
| 191 |
#RMDIR = rm -f |
| 192 |
#LN = ln -s |
| 193 |
#LNDIR = ln -s |
| 194 |
#DIFF = diff |
| 195 |
#OEXT = o |
| 196 |
#LEXT = a |
| 197 |
#EEXT = |
| 198 |
#CS = ; |
| 199 |
#X=/ |
| 200 |
|
| 201 |
## |
| 202 |
## RS/6000 AIX Unix version 4, xlc compiler build |
| 203 |
## |
| 204 |
#CC = xlc -D__CC_XLC |
| 205 |
#OFLAGS = -g |
| 206 |
#MFLAGS = `./sysprobe -flags` |
| 207 |
#MLIBS = `./sysprobe -libs` -lm |
| 208 |
#ENDIAN = `./sysprobe -s` |
| 209 |
#MAKE = make |
| 210 |
#AR = ar qcv |
| 211 |
#AROPT = |
| 212 |
#RANLIB = ranlib |
| 213 |
#RM = rm -f |
| 214 |
#RMDIR = rm -f |
| 215 |
#LN = ln -s |
| 216 |
#LNDIR = ln -s |
| 217 |
#DIFF = diff |
| 218 |
#OEXT = o |
| 219 |
#LEXT = a |
| 220 |
#EEXT = |
| 221 |
#CS = ; |
| 222 |
#X=/ |
| 223 |
|
| 224 |
## |
| 225 |
## WinNT, MS VC++ build |
| 226 |
## |
| 227 |
## NOTE: requires MS VC++ version 5.0 + service pack 3 or later |
| 228 |
## NOTE1: before configuring the simulator, delete the symbolic link "tests/" |
| 229 |
## |
| 230 |
#CC = cl /Za /nologo |
| 231 |
#OFLAGS = /W3 /Zi |
| 232 |
#MFLAGS = -DBYTES_LITTLE_ENDIAN -DWORDS_LITTLE_ENDIAN -DFAST_SRL -DFAST_SRA |
| 233 |
#MLIBS = |
| 234 |
#ENDIAN = little |
| 235 |
#MAKE = nmake /nologo |
| 236 |
#AR = lib |
| 237 |
#AROPT = -out: |
| 238 |
#RANLIB = dir |
| 239 |
#RM = del/f/q |
| 240 |
#RMDIR = del/s/f/q |
| 241 |
#LN = copy |
| 242 |
#LNDIR = xcopy/s/e/i |
| 243 |
#DIFF = dir |
| 244 |
#OEXT = obj |
| 245 |
#LEXT = lib |
| 246 |
#EEXT = .exe |
| 247 |
#CS = && |
| 248 |
#X=\\\\ |
| 249 |
|
| 250 |
# |
| 251 |
# Compilation-specific feature flags |
| 252 |
# |
| 253 |
# -DDEBUG - turns on debugging features |
| 254 |
# -DBFD_LOADER - use libbfd.a to load programs (also required BINUTILS_INC |
| 255 |
# and BINUTILS_LIB to be defined, see below) |
| 256 |
# -DGZIP_PATH - specifies path to GZIP executable, only needed if SYSPROBE |
| 257 |
# cannot locate binary |
| 258 |
# -DSLOW_SHIFTS - emulate all shift operations, only used for testing as |
| 259 |
# sysprobe will auto-detect if host can use fast shifts |
| 260 |
# |
| 261 |
FFLAGS = -DDEBUG |
| 262 |
|
| 263 |
# |
| 264 |
# Point the Makefile to your Simplescalar-based bunutils, these definitions |
| 265 |
# should indicate where the include and library directories reside. |
| 266 |
# NOTE: these definitions are only required if BFD_LOADER is defined. |
| 267 |
# |
| 268 |
#BINUTILS_INC = -I../include |
| 269 |
#BINUTILS_LIB = -L../lib |
| 270 |
|
| 271 |
# |
| 272 |
# |
| 273 |
|
| 274 |
|
| 275 |
################################################################## |
| 276 |
# |
| 277 |
# YOU SHOULD NOT NEED TO MODIFY ANYTHING BELOW THIS COMMENT |
| 278 |
# |
| 279 |
################################################################## |
| 280 |
|
| 281 |
# |
| 282 |
# complete flags |
| 283 |
# |
| 284 |
CFLAGS = $(MFLAGS) $(FFLAGS) $(OFLAGS) $(BINUTILS_INC) $(BINUTILS_LIB) |
| 285 |
SAFECFLAGS = $(MFLAGS) $(FFLAGS) $(SAFEOFLAGS) $(BINUTILS_INC) $(BINUTILS_LIB) |
| 286 |
|
| 287 |
# |
| 288 |
# all the sources |
| 289 |
# |
| 290 |
SRCS = main.c sim-fast.c sim-safe.c sim-cache.c sim-profile.c \ |
| 291 |
sim-eio.c sim-bpred.c sim-cheetah.c sim-outorder.c \ |
| 292 |
memory.c regs.c cache.c bpred.c ptrace.c eventq.c \ |
| 293 |
resource.c endian.c dlite.c symbol.c eval.c options.c range.c \ |
| 294 |
eio.c stats.c endian.c misc.c power.c sgtty.c\ |
| 295 |
target-pisa/pisa.c target-pisa/loader.c target-pisa/syscall.c \ |
| 296 |
target-pisa/symbol.c \ |
| 297 |
target-alpha/alpha.c target-alpha/loader.c target-alpha/syscall.c \ |
| 298 |
target-alpha/symbol.c |
| 299 |
|
| 300 |
HDRS = syscall.h memory.h regs.h sim.h loader.h cache.h bpred.h ptrace.h \ |
| 301 |
eventq.h resource.h endian.h dlite.h symbol.h eval.h bitmap.h \ |
| 302 |
eio.h range.h version.h endian.h misc.h power.h\ |
| 303 |
target-pisa/pisa.h target-pisa/pisa.def target-pisa/ecoff.h \ |
| 304 |
target-alpha/alpha.h target-alpha/alpha.def target-alpha/ecoff.h |
| 305 |
|
| 306 |
# |
| 307 |
# common objects |
| 308 |
# |
| 309 |
OBJS = main.$(OEXT) syscall.$(OEXT) memory.$(OEXT) regs.$(OEXT) \ |
| 310 |
loader.$(OEXT) endian.$(OEXT) dlite.$(OEXT) symbol.$(OEXT) \ |
| 311 |
eval.$(OEXT) options.$(OEXT) stats.$(OEXT) eio.$(OEXT) \ |
| 312 |
range.$(OEXT) misc.$(OEXT) power.$(OEXT) \ |
| 313 |
machine.$(OEXT) sgtty.$(OEXT) |
| 314 |
|
| 315 |
# |
| 316 |
# programs to build |
| 317 |
# |
| 318 |
PROGS = sim-fast$(EEXT) sim-safe$(EEXT) sim-eio$(EEXT) \ |
| 319 |
sim-bpred$(EEXT) sim-profile$(EEXT) \ |
| 320 |
sim-cheetah$(EEXT) sim-cache$(EEXT) sim-outorder$(EEXT) |
| 321 |
|
| 322 |
# |
| 323 |
# all targets, NOTE: library ordering is important... |
| 324 |
# |
| 325 |
all: sim-outorder |
| 326 |
@echo "my work is done here..." |
| 327 |
|
| 328 |
config-pisa: |
| 329 |
-$(RM) machine.h machine.c machine.def loader.c symbol.c syscall.c |
| 330 |
$(LN) target-pisa$(X)pisa.h machine.h |
| 331 |
$(LN) target-pisa$(X)pisa.c machine.c |
| 332 |
$(LN) target-pisa$(X)pisa.def machine.def |
| 333 |
$(LN) target-pisa$(X)loader.c loader.c |
| 334 |
$(LN) target-pisa$(X)symbol.c symbol.c |
| 335 |
$(LN) target-pisa$(X)syscall.c syscall.c |
| 336 |
-$(RMDIR) tests |
| 337 |
$(LNDIR) tests-pisa tests |
| 338 |
|
| 339 |
config-alpha: |
| 340 |
-$(RM) machine.h machine.c machine.def loader.c symbol.c syscall.c |
| 341 |
$(LN) target-alpha$(X)alpha.h machine.h |
| 342 |
$(LN) target-alpha$(X)alpha.c machine.c |
| 343 |
$(LN) target-alpha$(X)alpha.def machine.def |
| 344 |
$(LN) target-alpha$(X)loader.c loader.c |
| 345 |
$(LN) target-alpha$(X)symbol.c symbol.c |
| 346 |
$(LN) target-alpha$(X)syscall.c syscall.c |
| 347 |
-$(RMDIR) tests |
| 348 |
$(LNDIR) tests-alpha tests |
| 349 |
|
| 350 |
sysprobe$(EEXT): sysprobe.c |
| 351 |
$(CC) $(FFLAGS) -o sysprobe$(EEXT) sysprobe.c |
| 352 |
@echo endian probe results: $(ENDIAN) |
| 353 |
@echo probe flags: $(MFLAGS) |
| 354 |
@echo probe libs: $(MLIBS) |
| 355 |
|
| 356 |
wattch-interact$(EEXT): sysprobe$(EEXT) eval.o misc.o stats.o power.o wattch-interact.o cacti/libcacti.$(LEXT) |
| 357 |
$(CC) eval.o misc.o stats.o power.o wattch-interact.o cacti/libcacti.$(LEXT) $(CFLAGS) -lc -lm -o wattch-interact |
| 358 |
|
| 359 |
power$(EEXT): power.c |
| 360 |
$(CC) $(SAFECFLAGS) -c power.c |
| 361 |
|
| 362 |
sim-fast$(EEXT): sysprobe$(EEXT) sim-fast.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 363 |
$(CC) -o sim-fast$(EEXT) $(CFLAGS) sim-fast.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 364 |
|
| 365 |
sim-safe$(EEXT): sysprobe$(EEXT) sim-safe.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 366 |
$(CC) -o sim-safe$(EEXT) $(CFLAGS) sim-safe.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 367 |
|
| 368 |
sim-profile$(EEXT): sysprobe$(EEXT) sim-profile.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 369 |
$(CC) -o sim-profile$(EEXT) $(CFLAGS) sim-profile.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 370 |
|
| 371 |
sim-eio$(EEXT): sysprobe$(EEXT) sim-eio.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 372 |
$(CC) -o sim-eio$(EEXT) $(CFLAGS) sim-eio.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 373 |
|
| 374 |
sim-bpred$(EEXT): sysprobe$(EEXT) sim-bpred.$(OEXT) bpred.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 375 |
$(CC) -o sim-bpred$(EEXT) $(CFLAGS) sim-bpred.$(OEXT) bpred.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 376 |
|
| 377 |
sim-cheetah$(EEXT): sysprobe$(EEXT) sim-cheetah.$(OEXT) $(OBJS) libcheetah/libcheetah.$(LEXT) libexo/libexo.$(LEXT) |
| 378 |
$(CC) -o sim-cheetah$(EEXT) $(CFLAGS) sim-cheetah.$(OEXT) $(OBJS) libcheetah/libcheetah.$(LEXT) libexo/libexo.$(LEXT) $(MLIBS) |
| 379 |
|
| 380 |
sim-cache$(EEXT): sysprobe$(EEXT) sim-cache.$(OEXT) cache.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) |
| 381 |
$(CC) -o sim-cache$(EEXT) $(CFLAGS) sim-cache.$(OEXT) cache.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) $(MLIBS) |
| 382 |
|
| 383 |
sim-outorder$(EEXT): sysprobe$(EEXT) sim-outorder.$(OEXT) cache.$(OEXT) bpred.$(OEXT) resource.$(OEXT) ptrace.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) cacti/libcacti.$(LEXT) |
| 384 |
$(CC) -o sim-outorder$(EEXT) $(CFLAGS) sim-outorder.$(OEXT) cache.$(OEXT) bpred.$(OEXT) resource.$(OEXT) ptrace.$(OEXT) $(OBJS) libexo/libexo.$(LEXT) cacti/libcacti.$(LEXT) $(MLIBS) |
| 385 |
|
| 386 |
exo libexo/libexo.$(LEXT): sysprobe$(EEXT) |
| 387 |
cd libexo $(CS) \ |
| 388 |
$(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "AR=$(AR)" "AROPT=$(AROPT)" "RANLIB=$(RANLIB)" "CFLAGS=$(MFLAGS) $(FFLAGS) $(OFLAGS)" "OEXT=$(OEXT)" "LEXT=$(LEXT)" "EEXT=$(EEXT)" "X=$(X)" "RM=$(RM)" libexo.$(LEXT) |
| 389 |
|
| 390 |
cacti cacti/libcacti.$(LEXT): sysprobe$(EEXT) |
| 391 |
cd cacti $(CS) \ |
| 392 |
$(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "AR=$(AR)" "AROPT=$(AROPT)" "RANLIB=$(RANLIB)" "CFLAGS=$(MFLAGS) $(FFLAGS) $(SAFEOFLAGS)" "OEXT=$(OEXT)" "LEXT=$(LEXT)" "EEXT=$(EEXT)" "X=$(X)" "RM=$(RM)" libcacti.$(LEXT) |
| 393 |
|
| 394 |
cheetah libcheetah/libcheetah.$(LEXT): sysprobe$(EEXT) |
| 395 |
cd libcheetah $(CS) \ |
| 396 |
$(MAKE) "MAKE=$(MAKE)" "CC=$(CC)" "AR=$(AR)" "AROPT=$(AROPT)" "RANLIB=$(RANLIB)" "CFLAGS=$(MFLAGS) $(FFLAGS) $(OFLAGS)" "OEXT=$(OEXT)" "LEXT=$(LEXT)" "EEXT=$(EEXT)" "X=$(X)" "RM=$(RM)" libcheetah.$(LEXT) |
| 397 |
|
| 398 |
.c.$(OEXT): |
| 399 |
$(CC) $(CFLAGS) -c $*.c |
| 400 |
|
| 401 |
filelist: |
| 402 |
@echo $(SRCS) $(HDRS) Makefile |
| 403 |
|
| 404 |
diffs: |
| 405 |
-rcsdiff RCS/* |
| 406 |
|
| 407 |
sim-tests sim-tests-nt: sysprobe$(EEXT) $(PROGS) |
| 408 |
cd tests $(CS) \ |
| 409 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 410 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-fast$(EEXT)" \ |
| 411 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 412 |
cd .. |
| 413 |
cd tests $(CS) \ |
| 414 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 415 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-safe$(EEXT)" \ |
| 416 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 417 |
cd .. |
| 418 |
cd tests $(CS) \ |
| 419 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 420 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-cache$(EEXT)" \ |
| 421 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 422 |
cd .. |
| 423 |
cd tests $(CS) \ |
| 424 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 425 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-cheetah$(EEXT)" \ |
| 426 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 427 |
cd .. |
| 428 |
cd tests $(CS) \ |
| 429 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 430 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-bpred$(EEXT)" \ |
| 431 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 432 |
cd .. |
| 433 |
cd tests $(CS) \ |
| 434 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 435 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-profile$(EEXT)" \ |
| 436 |
"X=$(X)" "CS=$(CS)" "SIM_OPTS=-all" $(CS) \ |
| 437 |
cd .. |
| 438 |
cd tests $(CS) \ |
| 439 |
$(MAKE) "MAKE=$(MAKE)" "RM=$(RM)" "ENDIAN=$(ENDIAN)" tests \ |
| 440 |
"DIFF=$(DIFF)" "SIM_DIR=.." "SIM_BIN=sim-outorder$(EEXT)" \ |
| 441 |
"X=$(X)" "CS=$(CS)" $(CS) \ |
| 442 |
cd .. |
| 443 |
|
| 444 |
clean: |
| 445 |
-$(RM) *.o *.obj core *~ Makefile.bak sysprobe$(EEXT) $(PROGS) wattch-interact |
| 446 |
cd libcheetah $(CS) $(MAKE) "RM=$(RM)" "CS=$(CS)" clean $(CS) cd .. |
| 447 |
cd libexo $(CS) $(MAKE) "RM=$(RM)" "CS=$(CS)" clean $(CS) cd .. |
| 448 |
cd cacti $(CS) $(MAKE) "RM=$(RM)" "CS=$(CS)" clean $(CS) cd .. |
| 449 |
cd tests $(CS) $(MAKE) "RM=$(RM)" "CS=$(CS)" clean $(CS) cd .. |
| 450 |
|
| 451 |
unpure: |
| 452 |
rm -f sim.pure *pure*.o sim.pure.pure_hardlink sim.pure.pure_linkinfo |
| 453 |
|
| 454 |
depend: |
| 455 |
makedepend.local -n -x $(BINUTILS_INC) $(SRCS) |
| 456 |
|
| 457 |
|
| 458 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |
| 459 |
|
| 460 |
main.$(OEXT): host.h misc.h machine.h machine.def endian.h version.h dlite.h |
| 461 |
main.$(OEXT): regs.h memory.h options.h stats.h eval.h loader.h sim.h |
| 462 |
sim-fast.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 463 |
sim-fast.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h sim.h |
| 464 |
sim-safe.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 465 |
sim-safe.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h sim.h |
| 466 |
sim-cache.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 467 |
sim-cache.$(OEXT): options.h stats.h eval.h cache.h loader.h syscall.h |
| 468 |
sim-cache.$(OEXT): dlite.h sim.h |
| 469 |
sim-profile.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 470 |
sim-profile.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h |
| 471 |
sim-profile.$(OEXT): symbol.h sim.h |
| 472 |
sim-eio.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 473 |
sim-eio.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h eio.h |
| 474 |
sim-eio.$(OEXT): range.h sim.h |
| 475 |
sim-bpred.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 476 |
sim-bpred.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h |
| 477 |
sim-bpred.$(OEXT): bpred.h sim.h |
| 478 |
sim-cheetah.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 479 |
sim-cheetah.$(OEXT): options.h stats.h eval.h loader.h syscall.h dlite.h |
| 480 |
sim-cheetah.$(OEXT): libcheetah/libcheetah.h sim.h |
| 481 |
sim-outorder.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 482 |
sim-outorder.$(OEXT): options.h stats.h eval.h cache.h loader.h syscall.h |
| 483 |
sim-outorder.$(OEXT): bpred.h resource.h bitmap.h ptrace.h range.h dlite.h |
| 484 |
sim-outorder.$(OEXT): sim.h |
| 485 |
memory.$(OEXT): host.h misc.h machine.h machine.def options.h stats.h eval.h |
| 486 |
memory.$(OEXT): memory.h |
| 487 |
regs.$(OEXT): host.h misc.h machine.h machine.def loader.h regs.h memory.h |
| 488 |
regs.$(OEXT): options.h stats.h eval.h |
| 489 |
cache.$(OEXT): host.h misc.h machine.h machine.def cache.h memory.h options.h |
| 490 |
cache.$(OEXT): stats.h eval.h |
| 491 |
bpred.$(OEXT): host.h misc.h machine.h machine.def bpred.h stats.h eval.h |
| 492 |
ptrace.$(OEXT): host.h misc.h machine.h machine.def range.h ptrace.h |
| 493 |
eventq.$(OEXT): host.h misc.h machine.h machine.def eventq.h bitmap.h |
| 494 |
resource.$(OEXT): host.h misc.h resource.h |
| 495 |
endian.$(OEXT): endian.h loader.h host.h misc.h machine.h machine.def regs.h |
| 496 |
endian.$(OEXT): memory.h options.h stats.h eval.h |
| 497 |
dlite.$(OEXT): host.h misc.h machine.h machine.def version.h eval.h regs.h |
| 498 |
dlite.$(OEXT): memory.h options.h stats.h sim.h symbol.h loader.h range.h |
| 499 |
dlite.$(OEXT): dlite.h |
| 500 |
symbol.$(OEXT): host.h misc.h target-pisa/ecoff.h loader.h machine.h |
| 501 |
symbol.$(OEXT): machine.def regs.h memory.h options.h stats.h eval.h symbol.h |
| 502 |
eval.$(OEXT): host.h misc.h eval.h machine.h machine.def |
| 503 |
options.$(OEXT): host.h misc.h options.h |
| 504 |
range.$(OEXT): host.h misc.h machine.h machine.def symbol.h loader.h regs.h |
| 505 |
range.$(OEXT): memory.h options.h stats.h eval.h range.h |
| 506 |
eio.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h options.h |
| 507 |
eio.$(OEXT): stats.h eval.h loader.h libexo/libexo.h host.h misc.h machine.h |
| 508 |
eio.$(OEXT): syscall.h sim.h endian.h eio.h |
| 509 |
stats.$(OEXT): host.h misc.h machine.h machine.def eval.h stats.h |
| 510 |
endian.$(OEXT): endian.h loader.h host.h misc.h machine.h machine.def regs.h |
| 511 |
endian.$(OEXT): memory.h options.h stats.h eval.h |
| 512 |
misc.$(OEXT): host.h misc.h machine.h machine.def |
| 513 |
power.$(OEXT): host.h misc.h machine.h machine.def cache.h memory.h options.h |
| 514 |
power.$(OEXT): stats.h eval.h power.h |
| 515 |
pisa.$(OEXT): host.h misc.h machine.h machine.def eval.h regs.h |
| 516 |
loader.$(OEXT): host.h misc.h machine.h machine.def endian.h regs.h memory.h |
| 517 |
loader.$(OEXT): options.h stats.h eval.h sim.h eio.h loader.h |
| 518 |
loader.$(OEXT): target-pisa/ecoff.h |
| 519 |
syscall.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 520 |
syscall.$(OEXT): options.h stats.h eval.h loader.h sim.h endian.h eio.h |
| 521 |
syscall.$(OEXT): syscall.h |
| 522 |
symbol.$(OEXT): host.h misc.h target-pisa/ecoff.h loader.h machine.h |
| 523 |
symbol.$(OEXT): machine.def regs.h memory.h options.h stats.h eval.h symbol.h |
| 524 |
alpha.$(OEXT): host.h misc.h machine.h machine.def eval.h regs.h |
| 525 |
loader.$(OEXT): host.h misc.h machine.h machine.def endian.h regs.h memory.h |
| 526 |
loader.$(OEXT): options.h stats.h eval.h sim.h eio.h loader.h |
| 527 |
loader.$(OEXT): target-alpha/ecoff.h target-alpha/alpha.h |
| 528 |
syscall.$(OEXT): host.h misc.h machine.h machine.def regs.h memory.h |
| 529 |
syscall.$(OEXT): options.h stats.h eval.h loader.h sim.h endian.h eio.h |
| 530 |
syscall.$(OEXT): syscall.h |
| 531 |
symbol.$(OEXT): host.h misc.h loader.h machine.h machine.def regs.h memory.h |
| 532 |
symbol.$(OEXT): options.h stats.h eval.h symbol.h target-alpha/ecoff.h |
| 533 |
symbol.$(OEXT): target-alpha/alpha.h |