📄 makefile
字号:
# Makefile for the ACO-ACS timetaling program# ---# Sunday March 10 2002# #all: ACO-ACS debug_ACO-ACSall: ACO-ACSOBJECTS = Control.o Timer.o Random.o util.o Problem.o Solution.o Ant.o ACO-ACS.o #CFLAGS = -Wall -ansi CFLAGS = -Wall -ansi -O3ACO-ACS: $(OBJECTS) g++ $(OBJECTS) $(CFLAGS) -o timetabling.aco.be.1Timer.o: Timer.C Timer.h g++ $(CFLAGS) -c Timer.CRandom.o: Random.cc Random.h g++ $(CFLAGS) -c Random.ccControl.o: Control.cpp Control.h Timer.h Solution.h g++ $(CFLAGS) -c Control.cpputil.o: util.cpp util.h g++ $(CFLAGS) -c util.cppProblem.o: Problem.cpp Problem.h util.h g++ $(CFLAGS) -c Problem.cppSolution.o: Solution.cpp Solution.h Problem.h Timer.h g++ $(CFLAGS) -c Solution.cppAnt.o: Ant.cpp Ant.h Problem.h Solution.h g++ $(CFLAGS) -c Ant.cppACO-ACS.o: ACO-ACS.cpp Random.h Problem.h util.h Solution.h Timer.h Control.h g++ $(CFLAGS) -c ACO-ACS.cppCDEBUG = -g -DDEBUGDEBUG_OBJECTS = debug_Timer.o debug_Random.o debug_Control.o debug_util.o debug_Problem.o debug_Solution.o debug_Ant.o debug_ACO-ACS.o debug: debug_ACO-ACSdebug_ACO-ACS: $(DEBUG_OBJECTS) g++ $(DEBUG_OBJECTS) $(CDEBUG) $(CFLAGS) -o debug_ACO-ACSdebug_Timer.o: Timer.C Timer.h g++ $(CDEBUG) $(CFLAGS) -c Timer.C -o debug_Timer.odebug_Random.o: Random.cc Random.h g++ $(CDEBUG) $(CFLAGS) -c Random.cc -o debug_Random.odebug_Control.o: Control.h Control.cpp Timer.h Solution.h g++ $(CDEBUG) $(CFLAGS) -c Control.cpp -o debug_Control.odebug_util.o: util.cpp util.h g++ $(CDEBUG) $(CFLAGS) -c util.cpp -o debug_util.odebug_Problem.o: Problem.cpp Problem.h util.h g++ $(CDEBUG) $(CFLAGS) -c Problem.cpp -o debug_Problem.odebug_Solution.o: Solution.cpp Solution.h Problem.h Timer.h g++ $(CDEBUG) $(CFLAGS) -c Solution.cpp -o debug_Solution.odebug_Ant.o: Ant.cpp Ant.h Problem.h Solution.h g++ $(CDEBUG) $(CFLAGS) -c Ant.cpp -o debug_Ant.odebug_ACO-ACS.o: ACO-ACS.cpp Random.h Problem.h util.h Solution.h Timer.h Control.h g++ $(CDEBUG) $(CFLAGS) -c ACO-ACS.cpp -o debug_ACO-ACS.o.PHONY: cleanclean: rm timetabling.aco.be.1 $(OBJECTS) debug_ACO-ACS $(DEBUG_OBJECTS) *~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -