📄 makefile
字号:
## 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -