#= Makefile for build of gtool5 library in UNIX like platform # # Authors:: Eizi TOYODA (toyoda), Yasuhiro MORIKAWA (morikawa) # Version:: $Id: Makefile,v 1.11 2009-03-23 21:29:04 morikawa Exp $ # Tag Name:: $Name: gtool5-20090324 $ # Copyright:: Copyright (C) GFD Dennou Club, 2004-2009. All rights reserved. # License:: See COPYRIGHT[link:../../COPYRIGHT] # ###################################################################### # #== Settings # in Config.mk, DEST_LIB, DEST_INC is defined DIRDEPTH=.. INCLUDEFILE = $(DIRDEPTH)/Config.mk include $(INCLUDEFILE) SUBDIRS = sysdep dc_utils netcdf abst_netcdf gt_mem gtdata history gtool # End Settings ###################################################################### ###################################################################### #== Rules # all: rb2f90 @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done rb2f90: @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done clean: depend.touch @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done clean.rb2f90: depend.touch @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done depend: @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done depend.touch: @for i in $(SUBDIRS) ; do \ touch $${i}/depend; \ done clean.depend: @for i in $(SUBDIRS) ; do \ $(RM) $${i}/depend; \ done install: all test -d $(DEST_LIB) || $(INSTALLDIR) $(DEST_LIB) test -d $(DEST_INC) || $(INSTALLDIR) $(DEST_INC) $(INSTALL) $(LIBPATH) $(DEST_LIB) $(RANLIB) $(DEST_LIB)/$(LIBNAME) $(INSTALL) $(MODDIR)/$(MODS) $(MODINCS) $(DEST_INC) if [ X$(F90MODTYPE) = X"intel.d" ]; then \ $(INSTALL) work.pc $(DEST_INC)/work.pc ;\ fi Makefile.win: @for i in $(SUBDIRS) ; do \ cd $$i || exit 1; \ $(MAKE) $@ || exit 1; \ cd .. ; \ done clean.mkwin: @for i in $(SUBDIRS) ; do \ $(RM) $${i}/Makefile.win ; \ done