File tree Expand file tree Collapse file tree 7 files changed +63
-3
lines changed Expand file tree Collapse file tree 7 files changed +63
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ clean: smeka-clean-src
1616
1717.PHONY: smeka-clean-mod
1818smeka-clean-mod:
19- rm -f $(FMOD_DIR)/*.mod $(FMOD_DIR)/*.MOD
19+ rm -f $(F_MODS)
2020clean: smeka-clean-mod
2121
2222.PHONY: smeka-clean-obj
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ FC ?= $(V_FC)
9898ifdef V_CPP
9999CPP ?= $(V_CPP)
100100endif
101+ ifdef V_FPP
102+ FPP ?= $(V_FPP)
103+ endif
101104MPICC ?= $(V_MPICC)
102105MPICXX ?= $(V_MPICXX)
103106MPIFC ?= $(V_MPIFC)
@@ -128,10 +131,10 @@ show: smeka-show-compiler
128131# Define the default compilation options:
129132ifeq ($(SMEKA_CPP_F),0)
130133%.o: %.F90
131- $(FC) -c -o $@ $(FFLAGS) $(CPPFLAGS ) $(FPPFLAGS) $(INCLUDES ) $<
134+ $(FC) -c -o $@ $(FFLAGS) $(INCLUDES ) $(FPPFLAGS) $<
132135else
133136%.o: %.F90
134- $(CPP ) $(CPPFLAGS ) $(FPPFLAGS) $(INCLUDES ) $< > $(<:.F90=_cpp.f90)
137+ $(FPP ) $(INCLUDES ) $(FPPFLAGS) $< > $(<:.F90=_cpp.f90)
135138 $(FC) -c -o $@ $(FFLAGS) $(INCLUDES) $(<:.F90=_cpp.f90)
136139endif
137140%.o: %.f90
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ install: smeka-install-lib smeka-install
1212.PHONY: smeka-install-lib
1313.NOTPARALLEL: smeka-install-lib
1414smeka-install-lib: smeka-install-init-dir
15+ ifneq ($(LIBRARIES),)
1516 install -pm $(_OCT_rwxrxrx) -t $(LIB_DIR) $(LIBRARIES)
17+ endif
1618
1719
1820.PHONY: smeka-install-init-dir
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ V_CXX = clang
88# What to do here?
99V_FC = gfortran
1010V_CPP = clang -E -P -x c
11+ V_FPP = gfortran -E -P -x c
1112
1213
1314V_MPICC = mpicc
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ V_CC = gcc
77V_CXX = g++
88V_FC = gfortran
99V_CPP = cpp -E -P -x c
10+ V_FPP = gfortran -E -P -x c
1011
1112V_MPICC = mpicc
1213V_MPICXX = mpic++
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ V_CC = icc
77V_CXX = icpc
88V_FC = ifort
99V_CPP = cpp -E -P -x c
10+ V_FPP = ifort -E -P -xc
1011
1112V_MPICC = mpicc
1213V_MPICXX = mpic++
Original file line number Diff line number Diff line change 1+ # This contains default compiler options
2+ # for the PGI vendor compiler suite.
3+ V_VENDOR = pgi
4+
5+ # Compiler binaries
6+ V_CC = pgcc
7+ V_CXX = pgc++
8+ V_FC = pgfortran
9+ V_CPP = pgcc -E -P
10+ V_FPP = pgfortran -E -F
11+
12+ V_MPICC = mpicc
13+ V_MPICXX = mpic++
14+ V_MPIFC = mpif90
15+
16+ # Flag for output directory of modules
17+ V_FC_MODDIR = -J
18+
19+ # Flag for PIC compilation
20+ V_PIC = -fPIC
21+
22+ # default compiler flags
23+ V_CFLAGS =
24+ V_CXXFLAGS =
25+ V_FFLAGS =
26+
27+ # default compiler flags for debugging
28+ V_FLAGS_debug = -g -Mbounds
29+ V_CFLAGS_debug = $(V_FLAGS_debug )
30+ V_CXXFLAGS_debug = $(V_FLAGS_debug )
31+ V_FFLAGS_debug = $(V_FLAGS_debug )
32+
33+ # These are pgi compiler options
34+ V_FLAGS_weak = -O1
35+ V_CFLAGS_weak = $(V_FLAGS_weak )
36+ V_CXXFLAGS_weak = $(V_FLAGS_weak )
37+ V_FFLAGS_weak = $(V_FLAGS_weak )
38+
39+ V_FLAGS_medium = -O2
40+ V_CFLAGS_medium = $(V_FLAGS_medium )
41+ V_CXXFLAGS_medium = $(V_FLAGS_medium )
42+ V_FFLAGS_medium = $(V_FLAGS_medium )
43+
44+ V_FLAGS_hard = -O3
45+ V_CFLAGS_hard = $(V_FLAGS_hard )
46+ V_CXXFLAGS_hard = $(V_FLAGS_hard )
47+ V_FFLAGS_hard = $(V_FLAGS_hard )
48+
49+
50+ # Local Variables:
51+ # mode: makefile-gmake
52+ # End:
You can’t perform that action at this time.
0 commit comments