Line | |
---|
1 | appname := EP_test |
---|
2 | |
---|
3 | CXX := mpiicc -D_intelmpi -openmp |
---|
4 | CXXFLAGS := -std=c++11 -g |
---|
5 | #CXXFLAGS := -std=c++11 -g |
---|
6 | |
---|
7 | srcfiles := $(shell find . -name "*.cpp") |
---|
8 | objects := $(patsubst %.cpp, %.o, $(srcfiles)) |
---|
9 | |
---|
10 | all: $(appname) |
---|
11 | |
---|
12 | $(appname): $(objects) |
---|
13 | $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(appname) $(objects) $(LDLIBS) |
---|
14 | |
---|
15 | depend: .depend |
---|
16 | |
---|
17 | .depend: $(srcfiles) |
---|
18 | rm -f ./.depend |
---|
19 | $(CXX) $(CXXFLAGS) -MM $^>>./.depend; |
---|
20 | |
---|
21 | clean: |
---|
22 | rm -f $(objects) |
---|
23 | |
---|
24 | dist-clean: clean |
---|
25 | rm -f *~ .depend |
---|
26 | |
---|
27 | include .depend |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.