⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 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    = -lm

CPP   = 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.cc

OBJS  = 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 boa

K2.o: K2.cc
	$(CC) $(FLAG) K2.cc

args.o: args.cc
	$(CC) $(FLAG) args.cc

bayesian.o: bayesian.cc
	$(CC) $(FLAG) bayesian.cc

boa.o: boa.cc
	$(CC) $(FLAG) boa.cc

checkCycles.o: checkCycles.cc
	$(CC) $(FLAG) checkCycles.cc

computeCounts.o: computeCounts.cc
	$(CC) $(FLAG) computeCounts.cc

fitness.o: fitness.cc
	$(CC) $(FLAG) fitness.cc

getFileArgs.o: getFileArgs.cc
	$(CC) $(FLAG) getFileArgs.cc

graph.o: graph.cc
	$(CC) $(FLAG) graph.cc

header.o: header.cc
	$(CC) $(FLAG) header.cc

help.o: help.cc
	$(CC) $(FLAG) help.cc

main.o: main.cc
	$(CC) $(FLAG) main.cc

mymath.o: mymath.cc
	$(CC) $(FLAG) mymath.cc

population.o: population.cc
	$(CC) $(FLAG) population.cc

random.o: random.cc
	$(CC) $(FLAG) random.cc

recomputeGains.o: recomputeGains.cc
	$(CC) $(FLAG) recomputeGains.cc

replace.o: replace.cc
	$(CC) $(FLAG) replace.cc

select.o: select.cc
	$(CC) $(FLAG) select.cc

stack.o: stack.cc
	$(CC) $(FLAG) stack.cc

startUp.o: startUp.cc
	$(CC) $(FLAG) startUp.cc

statistics.o: statistics.cc
	$(CC) $(FLAG) statistics.cc

utils.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 + -