📄 makefile
字号:
# ===============================================================## Makefile for the simple Bayesian optimization Algorithm (sBOA)## author: Martin Pelikan## last modified: February, 1999## ===============================================================## usage:# make fast - compile what needed only ## make clean - cleans object files## make all - the same as make optimized## make tar.Z - create a .tar.Z archive of the files # for transfering the sources## -----------------------------------------------------------------# ----------------------------------------------------------------------# use the name of your C++ compiler instead of gcc in the following line# ----------------------------------------------------------------------CC = CC# ------------------------------------------------------------------# chose optimization level you want to have your code optimized with# ------------------------------------------------------------------OPTIMIZE = -O3# --------------------------------# no need to go beyond these lines# --------------------------------FLAG = -c $(OPTIMIZE)LFLAG = -lmCPP = K2.cc \ args.cc \ bayesian.cc \ boa.cc \ checkCycles.cc \ computeCounts.cc \ fitness.cc \ getFileArgs.cc \ graph.cc \ header.cc \ help.cc \ main.cc \ mymath.cc \ population.cc \ random.cc \ recomputeGains.cc \ replace.cc \ select.cc \ stack.cc \ startUp.cc \ statistics.cc \ utils.ccOBJS = K2.o \ args.o \ bayesian.o \ boa.o \ checkCycles.o \ computeCounts.o \ fitness.o \ getFileArgs.o \ graph.o \ header.o \ help.o \ main.o \ mymath.o \ population.o \ random.o \ recomputeGains.o \ replace.o \ select.o \ stack.o \ startUp.o \ statistics.o \ utils.o## make boa creates an executable file called 'boa'#boa: clean $(CC) -o boa $(CPP) $(LFLAG) $(OPTIMIZE)fast: $(OBJS) $(CC) -o boa $(OBJS) $(LFLAG) $(OPTIMIZE)all: clean make boaK2.o: K2.cc $(CC) $(FLAG) K2.ccargs.o: args.cc $(CC) $(FLAG) args.ccbayesian.o: bayesian.cc $(CC) $(FLAG) bayesian.ccboa.o: boa.cc $(CC) $(FLAG) boa.cccheckCycles.o: checkCycles.cc $(CC) $(FLAG) checkCycles.cccomputeCounts.o: computeCounts.cc $(CC) $(FLAG) computeCounts.ccfitness.o: fitness.cc $(CC) $(FLAG) fitness.ccgetFileArgs.o: getFileArgs.cc $(CC) $(FLAG) getFileArgs.ccgraph.o: graph.cc $(CC) $(FLAG) graph.ccheader.o: header.cc $(CC) $(FLAG) header.cchelp.o: help.cc $(CC) $(FLAG) help.ccmain.o: main.cc $(CC) $(FLAG) main.ccmymath.o: mymath.cc $(CC) $(FLAG) mymath.ccpopulation.o: population.cc $(CC) $(FLAG) population.ccrandom.o: random.cc $(CC) $(FLAG) random.ccrecomputeGains.o: recomputeGains.cc $(CC) $(FLAG) recomputeGains.ccreplace.o: replace.cc $(CC) $(FLAG) replace.ccselect.o: select.cc $(CC) $(FLAG) select.ccstack.o: stack.cc $(CC) $(FLAG) stack.ccstartUp.o: startUp.cc $(CC) $(FLAG) startUp.ccstatistics.o: statistics.cc $(CC) $(FLAG) statistics.ccutils.o: utils.cc $(CC) $(FLAG) utils.cc## make clean removes all .o files#clean: @rm -f $(OBJS)## make compressed tar file containing the source code#tar.Z: @tar cvf sBOA.tar *.cc *.h examples/input.* examples/output.* Makefile README COPYRIGHT ; @compress sBOA.tar
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -