📄 custom
字号:
# Customization of makefile for QMG 2.0 for Unix / Tcl 8.x# Customize as indicated by comments below.# for egcs 1.1 and 2.95, add -DOLD_STYLE_STREAMBUF to the next line.# for MIPS-Pro 7.3 (and any other recent standard-conforming# compiler), add -DNEED_TYPENAME_KEYWD to the next line## If you are using your library's lapack instead of the version# shipped with QMG, you may need to # insert -D options for the symbols# zgeqrf_, zunmqr_, zungqr_, zgghrd_, zhgeqz_# zgeev_# LAPACK_INT_T# LAPACK_DOUBLECOMPLEX_T# so that the types and routine names in qpatchmath.cpp match with # those in your LAPACK library.ADDITIONAL_DEFINES = -DOLD_STYLE_STREAMBUF# If you are using your library's xdr.h instead of the version shipped# with QMG, then set XDRH to the location of xdr.h in your library.# If you are using QMG's version, the next line should be# XDRH = XDRH = /usr/include/rpc# The next line is the QMG root, which should have subdirectories# tcl and tcl2. The next line sets this root to be two up from# the current directory. This statement works on many systems# but not all, so it may need to be customized. Also, if you plan# to move QMG after you are finished building it, then change# the following statement to reflect the destination directory.QMG_ABS_ROOT = `pwd`/../..# The TCLINCLUDE variable should be of the form# -I<path> where path holds the location of tcl.hTCLINCLUDE = -I/usr/u/meshgen/tcl8.1.1/generic# The next two lines are the name of the C++ compiler and C compiler# that you are using.#CC = /usr/local/gnu/gcc-2.95.1/bin/g++CCI = /usr/local/gnu/gcc-2.95.1/bin/gcc# other C++ compiler options## Mips-Pro 7.3 needs # OTHER_CPLUSPLUS_OPTIONS = -LANG:std \# -I../../src/platform_specific/mips_7.3 # You should also insert -n32 or -64 depending on whether you want 32 or# 64 bit code.## egcs-1.1.2 and 2.95 needs# OTHER_CPLUSPLUS_OPTIONS = -I../../src/platform_specific/egcs## On some platforms, e.g. Solaris 2.6, egcs-2.95 needs a -B option to specify# the path to the gnu assembler "as". This is because the Solaris# assembler can't handle the long names generated by egcs 2.95.# So add -B<path to as> here. The path MUST end with a /.## KCC needs -x on this line.#OTHER_CPLUSPLUS_OPTIONS = -I../../src/platform_specific/egcs \ -B/usr/local/gnu/binutils-2.9.1/bin/# other C compiler options. Mips needs either -n32 or -64.OTHER_C_OPTIONS =# compiler option for optimization# Mips-Pro needs -O3# KCC gets +K3 (takes a long time to compile!)OPTIMIZE = -O# compiler option for more optimizationLAPACK_OPTIMIZE = -O# TCLTKVERSION is the version of Tcl/Tk you are using, for instance,# 8.1. You should specify this so that it matches up exactly with the# name of the library archive. For instance, if the library archive# is called# libtcl8.1.a or libtcl8.1.so# then this option should be 8.1.# On some platforms, the archive may be named libtcl81.a or libtcl81.so,# in which case this option should be 81.TCLTKVERSION = 8.1# TCLLIBDIR is the location of the archive libtclXX.a or libtclXX.soTCLLIBDIR = /usr/u/meshgen/tcl8.1.1/unix# If you want to use your library version of XDR, then use the# statement# XDROB2 =# If you want to use QMG's version, then use the statement# XDROB2 = $(XDRSTDLIBOB)XDROB2 = $(XDRSTDLIBOB)# If you are using QMG's Lapack, Blas, and LIBF77, this next statement# should say# CLPCK = $(CLAPACK2OB) $(BLAS2OB) $(LIBF77OB)# If you are using QMG's Lapack but your own library blas and LIBF77, then say# CLPCK = $(CLAPACK2OB)# If you are using your own library Lapack, blas and LIBF77, then say# CLPCK = CLPCK = $(CLAPACK2OB) $(BLAS2OB) $(LIBF77OB)# ADDITIONAL_LIBS holds other -L and -l options necessary for linking# QMG. If you are using your system's Lapack, blas, and libf77, then# ADDITIONAL_LIBS needs to include -L and -l options for that.# If you are using your system's XDR, then you may need -L and -l# options for that too, although sometimes XDR is already available# in libc.a.# If you are using mips-pro 7.3 on an SGI, you should # ADDITIONAL_LIBS = -lcomplib.sgimath -lCio# to get built-in lapack# If you use vendor LAPACK under Sun Solaris 2.6 Workshop, you need# ADDITIONAL_LIBS = -L<location of libsunperf.a> -lsunperf -lF77 -lM77 -lsunmath -lnsl -lSUNWPro_lic# On RS6000/AIX, to get the library blas, use# -llapack -lblas -lxlf90# and in addition, add -Dzgegv_=zgegv and -Dzgeev_=zgeev to the# ADDITIONAL_DEFINES variable above.# If you are using the QMG versions, these options aren't needed.ADDITIONAL_LIBS = # Ordinarily, the linker is the same as the CC command.# Like this: # LINKER = $(CC)LINKER = $(CC)# Options for the linker go here. For instance, if you are using# SGI MipsPro 7.3 in 64-bit mode, then you need -64 here else you need -n32.# KCC needs -bmaxdata:0x60000000 -x## On some platforms, you need to specify an option to the linker about# which library paths to search at runtime for .so files. \# For instance, on Solaris 2.6 this is the -R option. But you have to # precede the option with a flag to make sure that the option is sent to the# linker rather than the compiler. For egcs this means preceding# the option with the string -Xlinker.LINKFLAGS = -Xlinker -R$(TCLLIBDIR)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -