Skip to content
Snippets Groups Projects
Commit 62b21151 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Refactor compiler flags in the makefiles.

parent f613bd71
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -19,7 +19,11 @@ check_PROGRAMS += cdi_read_f2003 cdi_write_f2003
endif ENABLE_ISOC_INTERFACE
AM_CPPFLAGS = -I$(top_srcdir)/src
AM_FCFLAGS = $(FC_OPTINC)$(top_srcdir)/src $(FC_MOD_FLAG)../src
AM_FCFLAGS =
if ENABLE_ISOC_INTERFACE
AM_FCFLAGS += $(FC_MOD_FLAG)$(top_builddir)/src
endif ENABLE_ISOC_INTERFACE
AM_LDFLAGS =
if ENABLE_ALL_STATIC
......
......@@ -10,16 +10,20 @@ if ENABLE_CF_INTERFACE
check_PROGRAMS += collectData2003
endif ENABLE_CF_INTERFACE
AM_CPPFLAGS = -I$(top_srcdir)/src $(YAXT_C_INCLUDE)
AM_CPPFLAGS = -I$(top_srcdir)/src
if ENABLE_MPI
AM_CPPFLAGS += -DUSE_MPI
endif ENABLE_MPI
AM_CFLAGS = $(MPI_C_INCLUDE)
AM_CFLAGS = $(YAXT_C_INCLUDE) $(MPI_C_INCLUDE)
AM_FCFLAGS = $(FC_OPTINC)$(top_builddir)/src $(FC_OPTINC)$(top_srcdir)/src $(MPI_FC_INCLUDE)
if ENABLE_MPI
AM_FCFLAGS += $(FC_DEFINE)USE_MPI $(YAXT_FC_MOD)
endif ENABLE_MPI
AM_FCFLAGS =
if ENABLE_CF_INTERFACE
AM_FCFLAGS += $(FC_OPTINC)$(top_builddir)/src $(FC_OPTINC)$(top_srcdir)/src
endif ENABLE_CF_INTERFACE
if BUILD_PIO_FC_PROGRAMS
AM_FCFLAGS += $(FC_DEFINE)USE_MPI
endif BUILD_PIO_FC_PROGRAMS
AM_FCFLAGS += $(YAXT_FC_MOD) $(MPI_FC_MOD)
AM_LDFLAGS =
if ENABLE_ALL_STATIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment