## ## SGPC: Simple Genetic Programming in C ## (c) 1993 by Walter Alden Tackett and Aviram Carmi ## ## This code and documentation is copyrighted and is not in the public domain. ## All rights reserved. ## ## - This notice may not be removed or altered. ## ## - You may not try to make money by distributing the package or by using the ## process that the code creates. ## ## - You may not distribute modified versions without clearly documenting your ## changes and notifying the principal author. ## ## - The origin of this software must not be misrepresented, either by ## explicit claim or by omission. Since few users ever read sources, ## credits must appear in the documentation. ## ## - Altered versions must be plainly marked as such, and must not be ## misrepresented as being the original software. Since few users ever read ## sources, credits must appear in the documentation. ## ## - The authors are not responsible for the consequences of use of this ## software, no matter how awful, even if they arise from flaws in it. ## ## If you make changes to the code, or have suggestions for changes, ## let us know! (gpc@ipld01.hac.com) # $Id: Makefile.simple,v 1.7 1993/04/23 01:56:25 gpc-avc Exp gpc-avc $ # # # -DMALLOPTS should be defined if you have mallopts # comment out -DMALLOPTS if you do not have mallopts (to optimize malloc()) # define USE_TIMES if you don't have getrusage() and want to use times() # # $Log: Makefile.simple,v $ # Revision 1.7 1993/04/23 01:56:25 gpc-avc # Added COMPRESS macro so that the compression command for checkpoint # files is easily changed in Makefile # TYPE = float # To enable reporting output for each gen set REP_ON_GEN to 1 REP_ON_GEN = 1 # To enable debugging output set DEBUG to 1 DEBUG = 0 # Note: last definition wins. The first one is inteded as a comment char # to 'sh', i.e. no compression, if you do not have compress use # something similar for your system. COMPRESS = "#" COMPRESS = "compress -f" COMPRESS = "gzip -f" FLAGS = \ -DTYPE=$(TYPE) \ -DREP_ON_GEN=$(REP_ON_GEN) \ -DDEBUG=$(DEBUG) \ -DMALLOPTS \ -DCOMPRESS='$(COMPRESS)' SRCS = \ gpc.c \ eval.c \ random.c \ treegen.c \ treeio.c \ treeops.c \ selection.c \ crossover.c \ populations.c \ generations.c \ mutation.c \ getparams.c \ malloc4.c \ qsort.c INCS = \ gpc.h \ proto.h \ random.h \ malloc4.h OBJS = $(SRCS:%.c=%.o) ## NOTE: last definition wins ## CC = gcc CC = cc CPPFLAGS = -I../lib $(FLAGS) CFLAGS = -O .KEEP_STATE: PURIFY = purify -chain-length=50 -free-queue-length=1000 -free-queue-threshold=20000 -inuse-at-exit -output-limit=8000000 -cache-dir=/u/a0u2/carmi/gpc purify := CC = $(PURIFY) gcc purify := CFLAGS = -g cc debug-cc gcc debug-gcc purify prof all: libgpc.a libgpc.a: $(OBJS) ar ruv libgpc$(TYPE).a $(OBJS) ranlib libgpc$(TYPE).a clean: /bin/rm -f $(OBJS) libgpc$(TYPE).a Makefile.bak print: lwf -s7 -l -p-2 -m -t8 $(SRCS) $(INCS) | lpr co: -co -l $(SRCS) $(INCS) Makefile ci: -ci -l $(SRCS) $(INCS) Makefile lint : $(LINT.c) $(FLAGS) $(SRCS) depend: makedepend -- $(CFLAGS) -- $(CPPFLAGS) $(SRCS) # DO NOT DELETE THIS LINE -- make depend depends on it. gpc.o: /usr/include/malloc.h /usr/include/stdio.h /usr/include/stdlib.h gpc.o: /usr/include/sys/stdtypes.h gpc.h proto.h random.h eval.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h eval.o: /usr/include/sys/errno.h /usr/include/math.h eval.o: /usr/include/floatingpoint.h /usr/include/sys/ieeefp.h eval.o: /usr/include/values.h gpc.h proto.h random.h random.o: /usr/include/math.h /usr/include/floatingpoint.h random.o: /usr/include/sys/ieeefp.h random.h treegen.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h treegen.o: /usr/include/sys/errno.h gpc.h proto.h random.h treeio.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h treeio.o: /usr/include/sys/errno.h gpc.h proto.h random.h treeops.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h treeops.o: /usr/include/sys/errno.h gpc.h proto.h random.h selection.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h selection.o: /usr/include/sys/errno.h /usr/include/math.h selection.o: /usr/include/floatingpoint.h /usr/include/sys/ieeefp.h gpc.h selection.o: proto.h random.h crossover.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h crossover.o: /usr/include/sys/errno.h gpc.h proto.h random.h populations.o: /usr/include/stdio.h /usr/include/malloc.h populations.o: /usr/include/errno.h /usr/include/sys/errno.h populations.o: /usr/include/values.h gpc.h proto.h random.h generations.o: /usr/include/stdio.h /usr/include/stdlib.h generations.o: /usr/include/sys/stdtypes.h /usr/include/malloc.h generations.o: /usr/include/errno.h /usr/include/sys/errno.h gpc.h proto.h generations.o: random.h mutation.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h mutation.o: /usr/include/sys/errno.h gpc.h proto.h random.h getparams.o: /usr/include/stdio.h /usr/include/malloc.h /usr/include/errno.h getparams.o: /usr/include/sys/errno.h gpc.h proto.h random.h malloc4.h malloc4.o: /usr/include/stdio.h /usr/include/stdlib.h malloc4.o: /usr/include/sys/stdtypes.h malloc4.h qsort.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h qsort.o: /usr/include/sys/sysmacros.h /usr/include/stdlib.h