chapter 6 code

This commit is contained in:
Bo Wang
2016-11-01 00:18:21 -04:00
parent 39e08c0cfc
commit 809451045e
7 changed files with 715 additions and 0 deletions

34
ch6/Makefile Normal file
View File

@@ -0,0 +1,34 @@
CPP = g++
CPPFLAGS = -g -std=c++0x
OFLAG = -o
.SUFFIXES : .o .cpp .c
.cpp.o :
$(CPP) $(CPPFLAGS) -c $<
.c.o :
$(CPP) $(CPPFLAGS) -c $<
PROGS = stack queue queuelist queuelist2 list
all: $(PROGS)
stack: stack.o
$(CPP) $(OFLAG) stack stack.o -lpthread
queue: queue.o
$(CPP) $(OFLAG) queue queue.o -lpthread
queuelist: queuelist.o
$(CPP) $(OFLAG) queuelist queuelist.o -lpthread
queuelist2: queuelist2.o
$(CPP) $(OFLAG) queuelist2 queuelist2.o -lpthread
lookuptable: lookuptable.o
$(CPP) $(OFLAG) lookuptable lookuptable.o -lpthread
list: list.o
$(CPP) $(OFLAG) list list.o -lpthread
clean:
rm -f ${PROGS} *.o