# # makefile for Netrestore 2.0 network restoration simulation routines # FITNESSOBJS = math.o strings.o netsim.o lists1.o fitness.o RREACTOBJS =heuropt2.o knapsack2.o lists.o netsim2.o strings2.o rreact.o rmath.o TWOPRONGOBJS = math.o strings.o netsim.o lists1.o twoprong.o SHNNEWOBJS = math.o strings2.o netsim2.o lists.o shnnew.o CC = cc # you may wish to use gcc here instead #CC = gcc # you may wish to use cc here instead OPT = -O DEB = -g # uncomment this for debugging CFLAGS = $(OPT) $(DEB) $(DEFS) -Ip2c/home LIBS = -Lp2c/home -lp2c -lm BIN = #BIN = install : P2C fitness rreact twoprong shnnew rm *.o P2C : cd p2c ; \ make install twoprong : $(TWOPRONGOBJS) $(CC) $(CFLAGS) $(TWOPRONGOBJS) -o $(BIN)twoprong $(LIBS) fitness : $(FITNESSOBJS) $(CC) $(CFLAGS) $(FITNESSOBJS) -o $(BIN)fitness $(LIBS) rreact : $(RREACTOBJS) $(CC) $(CFLAGS) $(RREACTOBJS) -o $(BIN)rreact $(LIBS) shnnew : $(SHNNEWOBJS) $(CC) $(CFLAGS) $(SHNNEWOBJS) -o $(BIN)shnnew $(LIBS) math.o : math.h rmath.o : rmath.h strings2.o : strings2.h strings.o : strings.h netsim2.o : strings2.h lists.o : lists.h heuropt2.o : heuropt2.h strings2.h netsim.h lists.h globals2.h rmath.h knapsack2.o : knapsack2.h strings2.h netsim.h lists.h globals2.h fitness.o : strings.h netsim.h lists1.h math.h fitness.c rreact.o : strings2.h netsim.h lists.h rmath.h globals2.h heuropt2.h knapsack2.h twoprong.o : strings.h netsim.h lists1.h math.h twoprong.c shnnew.o : strings2.h netsim2.h lists.h math.h shnnew.c