Makefile.linux-sles_12-x86_64 1.03 KB
Newer Older
1
MPICXX = CC
2
MPIF90 = ftn
3 4
MPIF77 = ftn
MPICC  = cc
5

6
MPI_CFLAGS   = -g -O3 -I$(HOME)/install/$(ARCHI)/include/ -DDBG -DCOLOR
7
MPI_LDFLAGS  = -L$(HOME)/install/$(ARCHI)/lib/ -ltapioca -llustreapi -Wl,--whole-archive,-ldmapp,--no-whole-archive
8

9
MPI_F90_FLAGS   = -g -O0 -I$(HOME)/install/$(ARCHI)/include/ -DDBG -DCOLOR  -fpp
10 11
MPI_F90_LDFLAGS = $(MPI_LDFLAGS) -lstdc++

12 13
INSTALL_PATH = $(HOME)/install/$(ARCHI)

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
###### S3D-IO ONLY ######
# CPQ: define this and the code will use system(3)
# SAVEFILEINSEPDIR: do not know

S3D_F90_FLAGS   = -DCPQ -DSAVEFILEINSEPDIR -DMPIIO ${MPI_F90_FLAGS}
S3D_F90_LDFLAGS = ../../../bindings/F90/tapioca_f90api.o ${MPI_F90_LDFLAGS}
COMPILE_F90     = ${MPIF90} -g ${S3D_F90_FLAGS} -c -o $@
COMPILE_F77     = ${MPIF77} -g ${S3D_F90_FLAGS} -c -o $@
COMPILE_C       = ${MPICC}  -g -c -o $@

LINK             = ${MPIF90} ${S3D_F90_LDFLAGS}
######     END     ######

######   BT ONLY   ######
BT_F90_FLAGS    = ${MPI_F90_FLAGS}
BT_F90_LDFLAGS  = ../../bindings/F90/tapioca_f90api.o ${MPI_F90_LDFLAGS}
######     END     ######