# # logresolve 2.0 - http://www.uunet.ca/~tomr/progs/logresolve/ # Tom Rathborne - tomr@uunet.ca - http://www.uunet.ca/~tomr/ # # 'make' compiles everything (currently just logresolve) # 'make logresolve' builds the program # 'make clean' cleans up (removes objects AND executables) # .SUFFIXES: .c .o .c.o: $(COMPILER) $(CFLAGS) -c $< COMPILER = gcc LIBS = -lgdbm CFLAGS = -O1 OBJECTS = logresolve PIECES = logresolve.o lr-nsrec.o lr-stats.o lr-ip.o lr-hash.o lr-dbm.o ALLDEPS = logresolve.h INCLUDES = logresolve.h lr-dbm.h lr-hash.h lr-ip.h lr-nsrec.h lr-stats.h logresolve: $(PIECES) $(COMPILER) $(CFLAGS) $(LIBS) -o logresolve $(PIECES) clean: rm -f $(OBJECTS) $(PIECES) logresolve.o: logresolve.c $(INCLUDES) lr-nsrec.o: lr-nsrec.h $(ALLDEPS) lr-stats.o: lr-stats.h $(ALLDEPS) lr-ip.o: lr-ip.h lr-nsrec.h $(ALLDEPS) lr-hash.o: lr-hash.h lr-dbm.h lr-nsrec.h $(ALLDEPS) lr-dbm.o: lr-dbm.h lr-nsrec.h $(ALLDEPS)