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

📄 makefile

📁 SGA-C使用机器级的bit串以提高效率
💻
字号:
#
# 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 systems
CC=cc
LDLIBS= -lm

# uncomment two of the following lines to determine selection routine
# roulette wheel, stochastic remainder, and tournament selection
# are distributed with SGA-C
SELECTCODE = rselect.c
SELECTOBJ = rselect.o
#SELECTCODE = srselect.c
#SELECTOBJ = srselect.o
#SELECTCODE = tselect.c
#SELECTOBJ = tselect.o



SRCCODE=main.c app.c generate.c initial.c memory.c\
	operators.c random.c report.c $(SELECTCODE)\
	statistic.c utility.c

OBJECTS=main.o app.o generate.o initial.o\
 	memory.o operators.o random.o report.o\
 	$(SELECTOBJ) statistic.o utility.o

sga:    $(OBJECTS)
	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
	chmod 755 $@

$(OBJECTS): sga.h external.h

listing:
	cat *.h > sga.list
	cat $(SRCCODE) >> sga.list

clean:
	rm -f sga 
	rm -f *.on sga.sym
	rm -f *.o

⌨️ 快捷键说明

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