From 5c9ebc048969ffd6d8ad7aafcd3decca0d577d8a Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Sat, 5 May 2012 14:12:32 -0600 Subject: [PATCH] updated make file to be more automatic --- Makefile | 20 ++++++++++++++++---- README.rst | 10 ++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 30dbc17..48507bb 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.rst b/README.rst index ac6c9dc..d9360dc 100644 --- a/README.rst +++ b/README.rst @@ -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!