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

📄 makefile

📁 这是一个关于模拟退火c c++的算法程序
💻
字号:
# Makefile for the C++ version of the Simulated Annealing code### To port to your machine:#	set CFLAGS for your C compiler#	set CC to your C compiler#	set CPFLAGS for your C++ compiler#	set CPP to your C++ compiler#	set C++ to whatever extension your C++ compiler accepts (the files#		in the archive have .cxx) and change those files to have that#		extension.##	under DOS all the .o extensions need to be globally changed to .obj,#	the -o filename  option in the compile statements need to be removed,#       undefine the MATHLIB option and change the -l for loading the library#MACHINE = LinuxUTIL = ../util## AT&T cfront#CC=cc#CPP = CC#CLASSLIB = classes## Gnu C++ (V2.4.2)#CC=gccCPP=g++#EXTRA_LIBS = -lg++##CFLAGS= -O -I. -I$(UTIL)CPFLAGS = $(CFLAGS) -D$(MACHINE)## The suffix for C++ codeC++ = cxxO = o####ARGFILES = getargs.o stoi.oRANDS = r250c.o randlcg.o#MATHLIB = -lm## if library code is collected into an actual library#LIB_CODE = $(CLASSDIR)/lib$(CLASSLIB).a#LIB      = -L$(CLASSDIR) -l$(CLASSLIB)## if library code is separate object filesLIB_CODE = cputime.o r250.o random.o rndlcg.o registrar.o standio.o barray.o \           randgen.o erstream.oLIB       = $(LIB_CODE)### =============PROBABLY NO ARE NECESSARY BEYOND HERE (except for DOS)=============#all:	satest1 satest2satest1: satest1.$(C++) simann.o $(ARGFILES) $(LIB_CODE)	$(CPP) $(CPFLAGS) -o satest1 satest1.$(C++) simann.o $(ARGFILES) $(LIB) \	$(EXTRA_LIBS) $(MATHLIB)satest2: satest2.$(C++) simann.o $(ARGFILES) $(LIB_CODE)	$(CPP) $(CPFLAGS) -o satest2 satest2.$(C++) simann.o $(ARGFILES) $(LIB) \	$(EXTRA_LIBS) $(MATHLIB)logfit: logfit.$(C++) simann.$(O) $(LIB_CODE)	$(CPP) $(CPFLAGS) -o logfit logfit.$(C++) simann.$(O) $(LIB) \	$(EXTRA_LIBS) $(MATHLIB)#####cputime.o: cputime.cxx cputime.hpp	$(CPP) $(CPFLAGS) -c cputime.cxxgetargs.o: $(UTIL)/getargs.c	$(CC) $(CFLAGS) -c $(UTIL)/getargs.cstoi.o: $(UTIL)/stoi.c	$(CC) $(CFLAGS) -c $(UTIL)/stoi.c##.SUFFIXES :.SUFFIXES : .c++ .cpp .cxx .c .h .o.c++.o:	$(CPP) $(CPFLAGS) -c $*.c++.cpp.o:	$(CPP) $(CPFLAGS) -c $*.cpp.cxx.o:	$(CPP) $(CPFLAGS) -c $*.cxx.c.o:	$(CC) $(CFLAGS) -c $*.c#

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -