updated makefile to have examples of how to get clang/gcc to work
This commit is contained in:
parent
dd5c982be1
commit
ae67c0cb26
15
Makefile
15
Makefile
@ -1,8 +1,17 @@
|
|||||||
CXX=g++-4.7
|
# may or may not work, most stuff okay on:
|
||||||
# CPPFLAGS=-Wall -g
|
# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
|
||||||
# CPPFLAGS=-Wall -g -std=c++0x
|
CXX=g++
|
||||||
CPPFLAGS=-Wall -g -std=c++0x -pthread
|
CPPFLAGS=-Wall -g -std=c++0x -pthread
|
||||||
|
|
||||||
|
# works with g++-4.7:
|
||||||
|
# CXX=g++-4.7
|
||||||
|
# CPPFLAGS=-Wall -g -std=c++0x -pthread
|
||||||
|
|
||||||
|
# works on clang (on ubuntu and mac) build following this:
|
||||||
|
# http://solarianprogrammer.com/2011/10/16/llvm-clang-libc-linux/
|
||||||
|
# CXX=clang++
|
||||||
|
# CPPFLAGS=-Wall -g -std=c++0x -stdlib=libc++ -L/opt/clang/lib -pthread
|
||||||
|
|
||||||
all: auto constexpr ilists init init_new lambda loops thread thread2 tuple
|
all: auto constexpr ilists init init_new lambda loops thread thread2 tuple
|
||||||
|
|
||||||
run: all
|
run: all
|
||||||
|
Loading…
Reference in New Issue
Block a user