chapter 1 code

This commit is contained in:
Bo Wang
2014-04-22 21:57:19 -04:00
parent 6e45d14431
commit 4ca3902293
2 changed files with 37 additions and 0 deletions

19
ch1/Makefile Normal file
View File

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