File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,21 @@ CC = $(MPICC)
1212CXX = $(MPICXX )
1313
1414CXXFLAGS ?= -Wall -g -O2
15+ CXXFLAGS += -std=c++11
1516
1617
1718CODELIB = src/libsakura.a
1819OBJ = interface.o
1920
20- all : sakura_worker
21+ all : sakura_worker
2122
2223clean :
23- rm -f * .so * .o * .pyc worker_code.cc worker_code.h
24+ rm -f * .so * .o * .pyc worker_code.cc worker_code.h
2425 rm -f * ~ sakura_worker
2526 make -C src clean
2627
2728$(CODELIB ) :
28- make -C src all
29+ make -C src all CXXFLAGS= " $( CXXFLAGS ) "
2930
3031worker_code.cc : interface.py
3132 $(CODE_GENERATOR ) --type=c interface.py SakuraInterface -o $@
@@ -37,5 +38,5 @@ sakura_worker: worker_code.cc worker_code.h $(CODELIB) $(OBJ)
3738 $(MPICXX ) $(CXXFLAGS ) $(SC_FLAGS ) $(LDFLAGS ) -I./src $< $(CODELIB ) $(OBJ ) -o $@ -L./src -lsakura $(SC_CLIBS )
3839
3940interface.o : interface.cc
40- $(MPICXX ) $(CXXFLAGS ) $(SC_FLAGS ) -I./src -c -o $@ $<
41+ $(MPICXX ) $(CXXFLAGS ) $(SC_FLAGS ) -I./src -c -o $@ $<
4142
You can’t perform that action at this time.
0 commit comments