# "plantsim" Makefile # version 1.0 # 20th October 1995 # Author: William Fang CC=cc # use -DSTATS if statistics are desired CCFLAGS=-fullwarn -O1 LDFLAGS=-lm -lmalloc OBJECTS= collDetect.o collIntMat.o database.o intersect.o lex.yy.o matrix.o \ obj_gram.tab.o parseArgs.o plants.o plantsim.o polyPairTest.o \ seads.o testDB.o HEADERS= collDetect.h collIntMat.h database.h intersect.h matrix.h \ obj_gram.tab.h plants.h plantsim.h polyPairTest.h raw_tab.h \ seads.h testDB.h all: plantsim plantsim: $(OBJECTS) $(HEADERS) $(CC) $(CCFLAGS) -o plantsim $(OBJECTS) $(LDFLAGS) plantsim.o: plantsim.c plantsim.h collDetect.h $(CC) $(CCFLAGS) -c plantsim.c collDetect.o: collDetect.h collDetect.c testDB.h $(CC) $(CCFLAGS) -c collDetect.c database.o: database.c database.h collDetect.h $(CC) $(CCFLAGS) -c database.c intersect.o: intersect.c intersect.h collDetect.h $(CC) $(CCFLAGS) -c intersect.c parseArgs.o: parseArgs.c collDetect.h plantsim.h $(CC) $(CCFLAGS) -c parseArgs.c obj_gram.tab.o: obj_gram.tab.c $(CC) $(CCFLAGS) -c obj_gram.tab.c obj_gram.tab.h: obj_gram.tab.c obj_gram.tab.c: obj_gram.y collDetect.h database.h bison -d obj_gram.y lex.yy.o: obj_lex.l obj_gram.tab.h raw_tab.h lex obj_lex.l $(CC) $(CCFLAGS) -c lex.yy.c collIntMat.o: collIntMat.h collIntMat.c collDetect.h $(CC) $(CCFLAGS) -c collIntMat.c seads.o: seads.h seads.c collDetect.h $(CC) $(CCFLAGS) -c seads.c matrix.o: matrix.h matrix.c collDetect.h $(CC) $(CCFLAGS) -c matrix.c testDB.o: testDB.h testDB.c polyPairTest.h matrix.h collDetect.h $(CC) $(CCFLAGS) -c testDB.c polyPairTest.o: polyPairTest.h polyPairTest.c database.h collDetect.h $(CC) $(CCFLAGS) -c polyPairTest.c plants.o: plants.h plants.c collIntMat.h collDetect.h $(CC) $(CCFLAGS) -c plants.c clean: rm *.o rm lex.yy.c obj_gram.tab.c obj_gram.tab.h