📄 makefile
字号:
## SimpleScalar(TM) Tool Suite# Copyright (C) 1994-2003 by Todd M. Austin, Ph.D. and SimpleScalar, LLC.# All Rights Reserved. # # THIS IS A LEGAL DOCUMENT, BY USING SIMPLESCALAR,# YOU ARE AGREEING TO THESE TERMS AND CONDITIONS.# # No portion of this work may be used by any commercial entity, or for any# commercial purpose, without the prior, written permission of SimpleScalar,# LLC (info@simplescalar.com). Nonprofit and noncommercial use is permitted# as described below.# # 1. SimpleScalar is provided AS IS, with no warranty of any kind, express# or implied. The user of the program accepts full responsibility for the# application of the program and the use of any results.# # 2. Nonprofit and noncommercial use is encouraged. SimpleScalar may be# downloaded, compiled, executed, copied, and modified solely for nonprofit,# educational, noncommercial research, and noncommercial scholarship# purposes provided that this notice in its entirety accompanies all copies.# Copies of the modified software can be delivered to persons who use it# solely for nonprofit, educational, noncommercial research, and# noncommercial scholarship purposes provided that this notice in its# entirety accompanies all copies.# # 3. ALL COMMERCIAL USE, AND ALL USE BY FOR PROFIT ENTITIES, IS EXPRESSLY# PROHIBITED WITHOUT A LICENSE FROM SIMPLESCALAR, LLC (info@simplescalar.com).# # 4. No nonprofit user may place any restrictions on the use of this software,# including as modified by the user, by any other authorized user.# # 5. Noncommercial and nonprofit users may distribute copies of SimpleScalar# in compiled or executable form as set forth in Section 2, provided that# either: (A) it is accompanied by the corresponding machine-readable source# code, or (B) it is accompanied by a written offer, with no time limit, to# give anyone a machine-readable copy of the corresponding source code in# return for reimbursement of the cost of distribution. This written offer# must permit verbatim duplication by anyone, or (C) it is distributed by# someone who received only the executable form, and is accompanied by a# copy of the written offer of source code.# # 6. SimpleScalar was developed by Todd M. Austin, Ph.D. The tool suite is# currently maintained by SimpleScalar LLC (info@simplescalar.com). US Mail:# 2395 Timbercrest Court, Ann Arbor, MI 48105.# # Copyright (C) 1994-2003 by Todd M. Austin, Ph.D. and SimpleScalar, LLC.##################################################################### Modify the following definitions to suit your build environment,# NOTE: most platforms should not require any changes##################################################################### Define below C compiler and flags, machine-specific flags and libraries,# build tools and file extensions, these are specific to a host environment,# pre-tested environments follow...##### vanilla Unix, GCC build#### NOTE: the SimpleScalar simulators must be compiled with an ANSI C## compatible compiler.#### tested hosts:#### Slackware Linux version 2.0.33, GNU GCC version 2.7.2.2## FreeBSD version 3.0-current, GNU egcs version 2.91.50## Alpha OSF1 version 4.0, GNU GCC version 2.7.2## PA-RISC HPUX version B.10.01, GNU GCC version 2.7-96q3## SPARC SunOS version 5.5.1, GNU egcs-2.90.29## RS/6000 AIX Unix version 4, GNU GCC version cygnus-2.7-96q4## Windows NT version 4.0, Cygnus CygWin/32 beta 19##CC = gccOFLAGS = -O0 -g -WallMFLAGS = `./sysprobe -flags`MLIBS = `./sysprobe -libs` -lmENDIAN = `./sysprobe -s`MAKE = makeAR = ar qcvAROPT =RANLIB = ranlibRM = rm -fRMDIR = rm -fLN = ln -sLNDIR = ln -sDIFF = diffOEXT = oLEXT = aEEXT =CS = ;X=/#### Solaris 2.6, GNU GCC version 2.7.2.3###CC = gcc # /s/gcc-2.7.2.3/bin/gcc#OFLAGS = -O0 -g -Wall#MFLAGS = `./sysprobe -flags`#MLIBS = `./sysprobe -libs` -lm -lsocket -lnsl#ENDIAN = `./sysprobe -s`#MAKE = make#AR = ar qcv#AROPT =#RANLIB = ranlib#RM = rm -f#RMDIR = rm -f#LN = ln -s#LNDIR = ln -s#DIFF = diff#OEXT = o#LEXT = a#EEXT =#CS = ;#X=/#### Alpha OSF1 version 4.0, DEC C compiler version V5.2-036###CC = cc -std#OFLAGS = -O0 -g -w#MFLAGS = `./sysprobe -flags`#MLIBS = `./sysprobe -libs` -lm#ENDIAN = `./sysprobe -s`#MAKE = make#AR = ar qcv#AROPT =#RANLIB = ranlib#RM = rm -f#RMDIR = rm -f#LN = ln -s#LNDIR = ln -s#DIFF = diff#OEXT = o#LEXT = a#EEXT =#CS = ;#X=/#### PA-RISC HPUX version B.10.01, c89 HP C compiler version A.10.31.02###CC = c89 +e -D__CC_C89#OFLAGS = -g#MFLAGS = `./sysprobe -flags`#MLIBS = `./sysprobe -libs` -lm#ENDIAN = `./sysprobe -s`#MAKE = make#AR = ar qcv#AROPT =#RANLIB = ranlib#RM = rm -f#RMDIR = rm -f#LN = ln -s#LNDIR = ln -s#DIFF = diff#OEXT = o#LEXT = a#EEXT =#CS = ;#X=/#### SPARC SunOS version 5.5.1, Sun WorkShop C Compiler (acc) version 4.2###CC = /opt/SUNWspro/SC4.2/bin/acc#OFLAGS = -O0 -g#MFLAGS = `./sysprobe -flags`#MLIBS = `./sysprobe -libs` -lm#ENDIAN = `./sysprobe -s`#MAKE = make#AR = ar qcv#AROPT =#RANLIB = ranlib#RM = rm -f#RMDIR = rm -f#LN = ln -s#LNDIR = ln -s#DIFF = diff#OEXT = o#LEXT = a#EEXT =#CS = ;#X=/#### RS/6000 AIX Unix version 4, xlc compiler build###CC = xlc -D__CC_XLC#OFLAGS = -g#MFLAGS = `./sysprobe -flags`#MLIBS = `./sysprobe -libs` -lm#ENDIAN = `./sysprobe -s`#MAKE = make#AR = ar qcv#AROPT =#RANLIB = ranlib#RM = rm -f#RMDIR = rm -f#LN = ln -s#LNDIR = ln -s#DIFF = diff#OEXT = o#LEXT = a#EEXT =#CS = ;#X=/#### WinNT, MS VC++ build#### NOTE: requires MS VC++ version 5.0 + service pack 3 or later## NOTE1: before configuring the simulator, delete the symbolic link "tests/"###CC = cl /Za /nologo#OFLAGS = /W3 /Zi#MFLAGS = -DBYTES_LITTLE_ENDIAN -DWORDS_LITTLE_ENDIAN -DFAST_SRL -DFAST_SRA#MLIBS =#ENDIAN = little#MAKE = nmake /nologo#AR = lib#AROPT = -out:#RANLIB = dir#RM = del/f/q#RMDIR = del/s/f/q#LN = copy#LNDIR = xcopy/s/e/i#DIFF = dir#OEXT = obj#LEXT = lib#EEXT = .exe#CS = &&#X=\\\\## Compilation-specific feature flags## -DDEBUG - turns on debugging features# -DBFD_LOADER - use libbfd.a to load programs (also required BINUTILS_INC# and BINUTILS_LIB to be defined, see below)# -DGZIP_PATH - specifies path to GZIP executable, only needed if SYSPROBE# cannot locate binary# -DSLOW_SHIFTS - emulate all shift operations, only used for testing as# sysprobe will auto-detect if host can use fast shifts#FFLAGS = -DDEBUG## Point the Makefile to your Simplescalar-based bunutils, these definitions# should indicate where the include and library directories reside.# NOTE: these definitions are only required if BFD_LOADER is defined.##BINUTILS_INC = -I../include#BINUTILS_LIB = -L../lib###################################################################### YOU SHOULD NOT NEED TO MODIFY ANYTHING BELOW THIS COMMENT####################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -