source: XIOS/dev/branch_openmp/extern/ep_dev/makefile @ 1511

Last change on this file since 1511 was 1511, checked in by yushan, 6 years ago

save dev

File size: 529 bytes
RevLine 
[1381]1appname := EP_test
2
[1511]3CXX := mpiicc -D_intelmpi -D_noMemory_check -D_nocheck_sum -qopenmp
[1381]4CXXFLAGS := -std=c++11  -g
5
6srcfiles := $(shell find . -name "*.cpp")
[1500]7headfiles := $(shell find . -name "*.hpp")
[1381]8objects  := $(patsubst %.cpp, %.o, $(srcfiles))
9
10all: $(appname)
11
[1500]12$(appname): $(objects) $(headfiles)
[1381]13        $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(appname) $(objects) $(LDLIBS)
14
15depend: .depend
16
[1511]17depend: $(srcfiles) 
[1381]18        rm -f ./.depend
19        $(CXX) $(CXXFLAGS) -MM $^>>./.depend;
20
21clean:
22        rm -f $(objects)
23
24dist-clean: clean
25        rm -f *~ .depend
26
27
Note: See TracBrowser for help on using the repository browser.