00001: #./configure 00002: #./make 00003: #./make install
| 安装的文件 |
|---|
| /usr/local/include/cgnslib.h |
| /usr/local/include/cgnslib_f.h |
| /usr/local/include/cgnswin_f.h |
| /usr/local/lib/libcgns.a |
cgnstools工具包提供了一些很有用的工具,比如adfviewer
00001: #cp /usr/lib/tcl8.5/tclConfig.sh /usr/include/tcl8.5 00002: #cp /usr/lib/tk8.5/tkConfig.sh /usr/include/tcl8.5/tk-private/unix/ 00003:
-- 生成初步make.def和makefile,需要指定tk和tcl的路径
00001: #./configure --with-tk=/usr/include/tcl8.5/tk-private --with-tcl=/usr/include/tcl8.5
-- 修改make.def,因为自动生成的有些问题,修改相应的路径并加入-lXft
00001: TKINCS = -I/usr/include/tcl8.5/ -I/usr/include/tcl8.5/tk-private/generic 00002: TKLIBS = /usr/lib/libtk8.5.a /usr/lib/libtcl8.5.a -lX11 -lXss -lXext -lpthread -ldl -lpthread -lieee -lm -lXft
00001: #----------------------------------------------------------------------- 00002: # installation command and directories 00003: # INSTALL - install command 00004: # INSTALL_PROG - install executable 00005: # INSTALL_DATA - install data 00006: # BIN_INSTALL_DIR - installation directory for shell script 00007: # EXE_INSTALL_DIR - installation directory for executables 00008: # WSH_INSTALL_DIR - installation directory for cgns wish executables 00009: # LIB_INSTALL_DIR - installation directory for tcl scripts 00010: #----------------------------------------------------------------------- 00011: 00012: INSTALL = /usr/bin/install -c 00013: INSTALL_PROG = ${INSTALL} 00014: INSTALL_DATA = ${INSTALL} -m 644 00015: 00016: BIN_INSTALL_DIR = /usr/local/bin 00017: EXE_INSTALL_DIR = /usr/local/bin 00018: WSH_INSTALL_DIR = $(EXE_INSTALL_DIR)/cgnswish 00019: LIB_INSTALL_DIR = /usr/local/share/cgnstools