chapter 2 code
This commit is contained in:
19
ch2/Makefile
Normal file
19
ch2/Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user