Commit 1250ef5d authored by Roy Fabrice's avatar Roy Fabrice
Browse files

build: try new makefile layout WIP

parent cdbdb71d
# make.defs.mak
FC=h5pfc
COMPILER=intel
PREFIX=/opt/pfof/2.0/fhi/1.0/hdf5/1.12.0/intelmpi/21.5.1/intel/22.0.2
FHIDIR = /opt/fhi/1.0/hdf5/1.12.0/intelmpi/21.5.1/intel/22.0.2
FHIMOD = $(FHIDIR)/include
FHILIB = $(FHIDIR)/lib
# Intel release flags
FCFLAGS= -O3 -g -I$(FHIMOD) -DINTEL
FCFLAGS+= -DNPRE=8
##FCFLAGS+= -DLONGINT
## FCFLAGS+= -DOPTI
## FCFLAGS+= -convert big_endian
## FCFLAGS+= -qopenmp
# Intel debug flags
DEBUGFLAGS= -O0 -g -I$(FHIMOD) -warn all -check all,noarg_temp_created -traceback -DINTEL -diag-error-limit=10
DEBUGFLAGS+= -DDEBUG
DEBUGFLAGS+= -DNPRE=8
##DEBUGFLAGS+= -DLONGINT
## DEBUGFLAGS+= -DOPTI
## DEBUGFLAGS+=-convert big_endian
LDFLAGS=-g -L$(FHILIB) -lfortran-hdf5-interface-mpi
.SUFFIXES:
# compilation rule for F90 source files
%.debug.o:%.F90
@echo "--------------------------------"
@echo building $*.debug.o with parameters \
FC=$(FC), FCFLAGS=$(FCFLAGS)
$(FC) -c $(FCFLAGS) $< -o $@
%.mod:%.F90
@echo "--------------------------------"
@echo building $*.mod with parameters \
FC=$(FC), FCFLAGS=$(FCFLAGS)
$(FC) -c $(FCFLAGS) $<
\ No newline at end of file
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