2008-01-05 06:04:15 +08:00
|
|
|
# serial = RedHat Linux box, g++, no MPI, no FFTs
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
# System-specific settings
|
2009-08-12 22:38:28 +08:00
|
|
|
|
2009-09-25 00:30:58 +08:00
|
|
|
# LINKFORT/FORTLIB settings can be removed if not using meam or reax packages
|
|
|
|
# LINKBLAS/BLASLIB settings can be removed if not using user-atc package
|
|
|
|
# LINKGPU/GPULIB settings can be removed if not using gpu package
|
2009-08-07 22:37:39 +08:00
|
|
|
|
|
|
|
include Makefile.package
|
2006-09-28 03:51:33 +08:00
|
|
|
|
2008-01-05 06:04:15 +08:00
|
|
|
CC = g++
|
2009-08-07 22:37:39 +08:00
|
|
|
CCFLAGS = -O -DFFT_NONE -I../STUBS $(PKGINC)
|
2006-09-28 03:51:33 +08:00
|
|
|
DEPFLAGS = -M
|
2008-01-05 06:04:15 +08:00
|
|
|
LINK = g++
|
2009-08-07 22:37:39 +08:00
|
|
|
LINKFORT = -L/opt/intel/fce/10.0.023/lib
|
2009-09-25 00:30:58 +08:00
|
|
|
LINKBLAS =
|
2009-08-12 22:38:28 +08:00
|
|
|
LINKGPU =
|
2009-09-25 00:30:58 +08:00
|
|
|
LINKFLAGS = -O -L../STUBS $(PKGPATH) $(LINKFORT) $(LINKBLAS) $(LINKGPU)
|
2009-08-07 22:37:39 +08:00
|
|
|
USRLIB = -lmpi $(PKGLIB)
|
|
|
|
FORTLIB = -lifcore -lsvml -lompstub -limf
|
2009-09-25 00:30:58 +08:00
|
|
|
BLASLIB =
|
2009-08-12 22:38:28 +08:00
|
|
|
GPULIB =
|
2009-09-25 00:30:58 +08:00
|
|
|
SYSLIB = $(FORTLIB) $(BLASLIB) $(GPULIB)
|
2006-09-28 03:51:33 +08:00
|
|
|
ARCHIVE = ar
|
|
|
|
ARFLAGS = -rc
|
|
|
|
SIZE = size
|
|
|
|
|
|
|
|
# Link target
|
|
|
|
|
|
|
|
$(EXE): $(OBJ)
|
|
|
|
$(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
|
|
|
|
$(SIZE) $(EXE)
|
|
|
|
|
|
|
|
# Library target
|
|
|
|
|
|
|
|
lib: $(OBJ)
|
|
|
|
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
|
|
|
|
|
|
|
|
# Compilation rules
|
|
|
|
|
|
|
|
%.o:%.cpp
|
|
|
|
$(CC) $(CCFLAGS) -c $<
|
|
|
|
|
|
|
|
%.d:%.cpp
|
|
|
|
$(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@
|
|
|
|
|
|
|
|
# Individual dependencies
|
|
|
|
|
|
|
|
DEPENDS = $(OBJ:.o=.d)
|
|
|
|
include $(DEPENDS)
|