updated make file to be more automatic

This commit is contained in:
Stephen M. McQuay 2012-05-05 14:12:32 -06:00
parent 10dd87e479
commit 5c9ebc0489
2 changed files with 26 additions and 4 deletions

View File

@ -1,10 +1,22 @@
CXX=g++
CXX=g++-4.7
# CPPFLAGS=-Wall -g
# CPPFLAGS=-Wall -g -std=c++0x
CPPFLAGS=-Wall -g -std=c++0x -pthread
all:
@echo "build things individually (make loops, etc.)"
all: auto constexpr ilists init init_new lambda loops thread thread2 tuple
test: all
./auto
./constexpr
./ilists
./init
./init_new
./lambda
./loops
./thread
./thread2
./tuple
clean:
@rm -vf auto constexpr ilists2 ilists init init_new lambda loops thread thread2 tuple
@rm -vf auto constexpr ilists init init_new lambda loops thread thread2 tuple

View File

@ -22,4 +22,14 @@ asdf.cc file, run::
make asdf
or to build it all::
make
Also, you can run it all with the test target:
make test
if it returns 0, then everything went fine.
Enjoy!