HEADERS = SocketLineReader.h SocketUtils.h libhw1/CSE333.h libhw1/HashTable.h libhw1/HashTable_priv.h libhw1/LinkedList.h libhw2/doctable.h libhw2/filecrawler.h libhw2/fileparser.h libhw2/memindex.h libhw3/DocIDTableReader.h libhw3/fileindexutil.h libhw3/IndexTableReader.h libhw3/DocTableReader.h libhw3/fileindexwriter.h libhw3/FileIndexReader.h libhw3/HashTableReader.h libhw3/QueryProcessor.h CFLAGS = -Wall -std=gnu++0x -I. -g LDFLAGS = -L. -L./libhw1 -L./libhw2 -L./libhw3 -lhw3 -lhw2 -lhw1 all: searchserver searchserver: searchserver.o SocketUtils.o SocketLineReader.o g++ $(CFLAGS) -o searchserver searchserver.o SocketUtils.o \ SocketLineReader.o $(LDFLAGS) searchserver.o: searchserver.cc $(HEADERS) g++ $(CFLAGS) -o searchserver.o -c searchserver.cc SocketUtils.o: SocketUtils.cc $(HEADERS) g++ $(CFLAGS) -o SocketUtils.o -c SocketUtils.cc SocketLineReader.o: SocketLineReader.cc $(HEADERS) g++ $(CFLAGS) -o SocketLineReader.o -c SocketLineReader.cc clean: FORCE /bin/rm -f *.o *~ searchserver FORCE: