makefile
来自「用C++编写的遗传算法」· 代码 · 共 43 行
TXT
43 行
# Makefile for the lawnmower probleminclude ../Makefile.iniTARGET = lawnOBJS = mower.o lawn.oCPPFLAGS = $(OVERALLCPPFLAGS) -I$(GPINCLUDE)LDFLAGS = $(OVERALLLDFLAGS) -L$(GPLIB) -lgp -lm# Implicit rule how to compile.cc.o: $(CCC) $(CPPFLAGS) -c $<all: $(TARGET)clean: rm -f $(OBJS) data.* *~superclean: clean rm -f $(TARGET)strip: strip $(OBJS) $(TARGET)$(TARGET) : $(OBJS) $(GPLIBFILE) $(CCC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)# File dependencieslawn.o : lawn.cc ../include/gp.h ../include/gpconfig.h lawn.h mower.o : mower.cc ../include/gp.h lawn.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?