4-mpi/{hello → hello_hybrid}/Makefile RENAMED
@@ -1,26 +1,26 @@
1
  APPNAME=$(shell basename `pwd`)
2
 
3
  CC=mpicc
4
  CXX=mpic++
5
- FLAGS=-g -Wall -Wextra
6
  CFLAGS=$(FLAGS)
7
  CXXFLAGS=$(FLAGS)
8
  LIBS=
9
 
10
 
11
  all: $(APPNAME)
12
 
13
  %: %.c
14
  $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
15
 
16
  %: %.cpp
17
  $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS)
18
 
19
 
20
  .PHONY: clean
21
  clean:
22
  rm -f $(APPNAME) *.o
23
 
24
  .PHONY: gitignore
25
  gitignore:
26
  echo $(APPNAME) > .gitignore
1
  APPNAME=$(shell basename `pwd`)
2
 
3
  CC=mpicc
4
  CXX=mpic++
5
+ FLAGS=-g -Wall -Wextra -std=gnu11 -fopenmp
6
  CFLAGS=$(FLAGS)
7
  CXXFLAGS=$(FLAGS)
8
  LIBS=
9
 
10
 
11
  all: $(APPNAME)
12
 
13
  %: %.c
14
  $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
15
 
16
  %: %.cpp
17
  $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS)
18
 
19
 
20
  .PHONY: clean
21
  clean:
22
  rm -f $(APPNAME) *.o
23
 
24
  .PHONY: gitignore
25
  gitignore:
26
  echo $(APPNAME) > .gitignore