chapter 2 code

This commit is contained in:
Bo Wang
2014-04-22 21:57:39 -04:00
parent 4ca3902293
commit 7efe72ebb3
2 changed files with 88 additions and 0 deletions

19
ch2/Makefile Normal file
View File

@@ -0,0 +1,19 @@
CPP = g++
CPPFLAGS = -g -std=c++0x
OFLAG = -o
.SUFFIXES : .o .cpp .c
.cpp.o :
$(CPP) $(CPPFLAGS) -c $<
.c.o :
$(CPP) $(CPPFLAGS) -c $<
PROGS = accumulate
all: $(PROGS)
accumulate: accumulate.o
$(CPP) $(OFLAG) accumulate accumulate.o -lpthread
clean:
rm -f ${PROGS} *.o