📄 mk.cwp
字号:
########### THIS MAKEFILE IS FOR INITIAL CWP-PAR INSTALLS# It should NOT be used on a machine already running CWP-PAR!!!## The source files on the tar tape use xxx Mb of disk.# The installed executables and libs take another xxx Mb of disk.## CWP-PAR requires ANSI C compiler/include files.###########****** YOUR INPUT NEEDED *****************### ROOT is the parent of the directory where you want the binary to go# If it is acceptable to you, choose /usr/local/cwp, then the binary# will go into /usr/local/cwp/bin, the libs into /usr/local/cwp/lib and# the includes into /usr/local/cwp/include.ROOT = /home/zli/cwp## OPTC is the optimization flag for your C compiler (-O for most)OPTC = -O##****** END INPUT--BUT KEEP READING!! *****########### Many files at CWP have been maintained under RCS.# Hence they will often be read-only. When such files# have to edited during the installation, the simplest# expedient is to give yourself write privileges by# "chmod u+w filename."## In particular, look at the top of ./cwp/include/cwp.h# and reset CWPBIN according to what you picked as ROOT above--# this isn't used now, but we want it available. We may# add other portability defines at the top of this file.## Some makes don't understand the $$@ notation and you'll# have to type the compile routine for each program in the group.# Hints are given in the makefiles for most of the vunerable# directories.## The codes are intended to be ANSI C. Pre ANSI C compilers# are going to have a real hard time.## Some directories have Portability subdirectories, if you# seem to be missing something poke around in these directories.# We think that for full ANSI C compatible compilers, you won't# need any of this.## If the default ROOT was changed, after installation please# scrutinize the Makefiles for incorrect paths so they can be# used to install later fixes and enhancements.## This makefile is experimental. It may well require some# intervention by a sophisticated user willing to diddle# around in the sub-directory makefiles.########## INSTALLATION INSTRUCTIONS ########## "make -f mk.cwp install" should do it!###################### Address questions to:## Jack K. Cohen# Center for Wave Phenomena# Colorado School of Mines# Golden, CO 80401# (303) 273-3557# jkc@keller.Mines.Colorado.edu########## THANKS. YOU CAN STOP READING HERE UNLESS YOU ARE CURIOUS.# Some convenient abbreviationsB = $(ROOT)/binI = $(ROOT)/includeL = $(ROOT)/libdonothing: # To protect against an idle "make" to "see what happens" @echo "This is a dangerous makefile--so the default is do_nothing"install: mkdirs compilemkdirs: # Make the CWP-PAR binary directories if not already there @echo "" @echo "Creating binary directories (if not already there) ..." -mkdir $(ROOT) $B $L $Icompile : cd ./cwp; $(MAKE) ROOT=$(ROOT) OPTC=$(OPTC) cd ./par; $(MAKE) ROOT=$(ROOT) OPTC=$(OPTC)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -