#---------------------------------------------------------------------
#      Copyright (C) GFD Dennou Club, 2000-2005. All rights reserved.
#---------------------------------------------------------------------
#
#= Template File for "Config.mk", build configuration of gt4f90io (autoconf)
#
#  * Developers:
#    Eizi TOYODA, Masatsugu ODAKA, Shin-ichi TAKEHIRO, Yasuhiro MORIKAWA
#  * Version: $Id: Config.mk.in,v 1.5 2005/05/30 18:12:26 morikawa Exp $
#  * Tag Name: $Name: gt4f90io-20050615 $
#  * Change History:
#
#== Overview
#
# This file is template file to create "configure" script by
# autoconf 2.13. Some functions are defined in "aclocal.m4"
# (for example, DC_ARG_WITH).
#


#== for Debian install
#
DESTDIR = 

#== Fortran Compiler
#
FC=@FC@

#=== Flags needed when compiled and linked
#
SYSFFLAGS=@SYSFFLAGS@

#=== Flags needed when linked
#
SYSLDFLAGS=@SYSLDFLAGS@

#=== Libraries needed when linked
#
SYSLDLIBS=@SYSLDLIBS@ 

#=== Information of Modules (std.mod, HP.mod, fqs.mod, intel.d, hitachi.f90)
#
F90MODTYPE=@F90MODTYPE@

#=== Extensions of Module Files (".mod" or ".d" or ".f90")
#
MODEXT=@MOD@
#
#=== Extensions of Module Files used when "make clean"
#
#if "F90MODTYPE = hitachi.f90", clean nothing.
#
MODS=@CLEAN_MODS@



#== Prefix for Install
#
prefix=@prefix@@gt4dstsuffix@
exec_prefix=@exec_prefix@
gt4binsuffix=@gt4binsuffix@

#== Editor for module information (Used when "F90MODTYPE=intel.d")
IFCCEM=@IFCCEM@

#== DEST_LIB  : directory to which the library file is installed
#
DEST_LIB=$(DESTDIR)@libdir@

#== DEST_INC  : directory to which the module files are installed
#
DEST_INC=$(DESTDIR)@includedir@

#== DEST_BIN  : directory to which the executable files are installed
#
DEST_BIN=$(DESTDIR)@bindir@

#== DEST_DOC  : directory to which the documantation files are installed
#
DEST_DOC=$(DESTDIR)@docdir@

#== LIBNAME   : gt4f90io library name lib$(LIBNAME).a
#
LIBNAME=@gt4libname@@gt4libsuffix@

#== SYSDEPABORT: system dependent routine
#
SYSDEPABORT=@SYSDEPABORT@

#
#== Set Commands for basis command
#
#Please edit according to your system.
#
CP         = cp -p
INSTALL    = install -m 644
INSTALLBIN = install -m 755
MKDIR      = mkdir
RM         = rm -f
RMDIR      = rmdir
TAGS       = etags
MAKE       = make
AR         = ar r          # AR : Library builder specification
RUBY       = ruby          # for Generation RD documents
RD2        = rd2           # for Generation RD documents


#== RD Document Setting
#
#RUBYLIB = $(DESTDIR)
CSS            = gt4f90io.css
RD2HTM_LIB     = $(RD2) -r rd/rd2html-lib
RD2_JA_FLAG    = --html-charset=EUC-JP --with-part=JA:rd
RD2_EN_FLAG    = --html-charset=US-ASCII --with-part=EN:rd
RD2_LIB_FLAG   = --with-part=HTML:include --out-code=euc
RD2HTM_EXT_LIB = $(RD2) -r rd/rd2html-ext-lib
EXT_LIB_FLAG   = --ref-extension --native-inline --head-element # --headline-secno
RD2_CSSFLAG    = --with-css=$(CSS)

RD2HTML        = $(RD2HTM_EXT_LIB) $(RDFLAG) $(RD2_CSSFLAG)


#== Suffixes Rules
#
#=== Initialize
#
.SUFFIXES:

#=== Setting
#
.SUFFIXES: .f90 .o

.f90.o:
	$(FC) -c $(INCLUDE_GT) $(FFLAGS) $(SYSFFLAGS) $(INCLUDES) $<
