chapter 3 code

This commit is contained in:
Bo Wang
2016-10-31 23:45:35 -04:00
parent 7efe72ebb3
commit 21fc540278
4 changed files with 148 additions and 1 deletions

22
ch3/Makefile Normal file
View File

@@ -0,0 +1,22 @@
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 hierarchical
all: $(PROGS)
stack: stack.o
$(CPP) $(OFLAG) stack stack.o -lpthread
hierarchical: hierarchical.o
$(CPP) $(OFLAG) hierarchical hierarchical.o -lpthread
clean:
rm -f ${PROGS} *.o