makefile

来自「GENETIC ALGORITHM BOOKS」· 代码 · 共 47 行

TXT
47
字号
## Makefile for Simple Genetic Algorithm C code####################################### Define implicit compilation rules ####################################### uncomment following lines for UNIX computers# nominally tested on Sun, Cray UNICOS, and Vax Ultrix systemsCC=ccLDLIBS= -lm# uncomment two of the following lines to determine selection routine# roulette wheel, stochastic remainder, and tournament selection# are distributed with SGA-CSELECTCODE = rselect.cSELECTOBJ = rselect.o#SELECTCODE = srselect.c#SELECTOBJ = srselect.o#SELECTCODE = tselect.c#SELECTOBJ = tselect.oSRCCODE=main.c app.c generate.c initial.c memory.c\	operators.c random.c report.c $(SELECTCODE)\	statistic.c utility.cOBJECTS=main.o app.o generate.o initial.o\ 	memory.o operators.o random.o report.o\ 	$(SELECTOBJ) statistic.o utility.osga:    $(OBJECTS)	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDLIBS)	chmod 755 $@$(OBJECTS): sga.h external.hlisting:	cat *.h > sga.list	cat $(SRCCODE) >> sga.listclean:	rm -f sga 	rm -f *.on sga.sym	rm -f *.o

⌨️ 快捷键说明

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