Commit 7a70d42e authored by Ethan Coon's avatar Ethan Coon
Browse files

updates config file to be easier to edit

parent 71c4ff0a
Installing ELM Kernels
===========================
First, this is an extremely hacky, but relatively simple Make-based build system.
All builds occur in-source.
First, edit the file: ```src/config/Makefile.config```
Then, making the library should simply require a:
```
cd src
make
```
Or alternatively build a C++ or Fortran test via:
```
cd tests_c
make all test
```
or
```
cd tests
make all test
```
respectively.
# Available from: git clone https://code.ornl.gov/isp/acme_inputdata
ELM_DATA_LOCATION = /Users/uec/codes/elm/kernels/repos/ELM_Kernels/repos/acme_inputdata
# assumes you have a working NETCDF. This can easily be the version built by
# ATS as a part of an ATS installation.
NETCDF_ROOT = /Users/uec/codes/ats/amanzi-tpls/install-0.88
# assumes you have a working fortran and c++ compilers with libraries
FC = gfortran
FCFLAGS = -Wall -Wunused -fimplicit-none -free -g3 -fbounds-check
#FCFLAGS = -Wall -Wunused -fimplicit-none -free -O3
CC = clang++
CPPFLAGS = -g -Wall -std=c++11
STD_LIB_ROOT = /usr
# note, the linker should almost always be your fortran compiler, NOT your c compiler
LINKER = gfortran
# ------------------------------------------------
# Hopefully below shouldn't have to be changed.
# ------------------------------------------------
.PRECIOUS: %.o
.SUFFIXES:
.PHONY: all
......@@ -15,18 +39,17 @@
.cxx.o:
$(CXX) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
#%.o : %.F90
# $(FC) -c $(FCFLAGS) $< -o $@
SHELL = /bin/sh
ELM_DATA_LOCATION = /Users/uec/codes/elm/kernels/repos/ELM_Kernels/repos/acme_inputdata
ELM_LIB = libelm.a
ELM_LIBS = -lelm
ELM_DIR = elm
ELM_LIB_DEPEND = $(PARFLOW_LIB_DIR)/libelm.a
NETCDF_ROOT = /Users/uec/codes/ats/amanzi-tpls/install-0.88
STD_LIB_ROOT = /usr
ELM_UTILS_DIR = cime_utils
......@@ -36,16 +59,6 @@ M4 =
RM = rm -fr
CP = cp
XARGS =
FC = gfortran
FCFLAGS = -Wall -Wunused -fimplicit-none -free -g3 -fbounds-check
#FCFLAGS = -Wall -Wunused -fimplicit-none -free -O3
CC = clang++
CPPFLAGS = -g -Wall -std=c++11
LINKER = gfortran
AR = ar
######################################################################
......@@ -54,8 +67,5 @@ AR = ar
ELM_CLEAN=$(RM) *.o *.ii *.int.c *.log *.log.* stamp-* core core.* stats -r ti_files ii_files *.mod *.a
%.o : %.F90
@echo "found the right .o rule"
$(FC) -c $(FCFLAGS) $< -o $@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment