1# -*- Automake -*- 2# 3# Makefile for the XMLF90 package 4# 5# Copyright (C) 2017 Yann Pouillon 6# 7# This file is part of the XMLF90 software package. For license information, 8# please see the COPYING file in the top-level directory of the source 9# distribution. 10# 11 12 # ------------------------------------ # 13 14# 15# External dependencies 16# 17 18AM_CPPFLAGS = -I../wxml 19AM_FCFLAGS = -I../wxml 20 21 # ------------------------------------ # 22 23# 24# Main source files 25# 26 27# Common source files 28x90_srcs = \ 29 m_wcml.f90 \ 30 m_wstml.f90 \ 31 xmlf90_cml.f90 32 33# Fortran modules 34# Note: never expect they will have the same name as their source 35if F90_MOD_UPPERCASE 36x90_f03_int_mods = \ 37 M_WCML.$(MODEXT) \ 38 M_WSTML.$(MODEXT) 39 40x90_f03_ext_mods = \ 41 XMLF90_CML.$(MODEXT) 42else 43x90_f03_int_mods = \ 44 m_wcml.$(MODEXT) \ 45 m_wstml.$(MODEXT) 46 47x90_f03_ext_mods = \ 48 xmlf90_cml.$(MODEXT) 49endif 50 51# Libraries to build 52noinst_LTLIBRARIES = libxmlf90_cml.la 53 54libxmlf90_cml_la_SOURCES = $(x90_srcs) 55 56# Fortran modules to install 57f03moddir = $(includedir) 58install-data-local: 59 $(INSTALL) -d -m 755 $(DESTDIR)$(f03moddir) 60 $(INSTALL) -m 644 $(x90_f03_ext_mods) $(x90_f03_int_mods) $(DESTDIR)$(f03moddir) 61 62uninstall-local: 63 cd $(DESTDIR)$(f03moddir) && rm -f $(x90_f03_ext_mods) $(x90_f03_int_mods) 64 65# Local cleaning 66clean-local: 67 rm -f $(x90_f03_int_mods) $(x90_f03_ext_mods) *.obj 68 69 # ------------------------------------ # 70 71# Explicit dependencies within XMLF90 72# Note: this is needed because of Fortran 73m_wcml.$(LTOBJEXT): \ 74 m_wstml.$(LTOBJEXT) 75 76xmlf90_cml.$(LTOBJEXT): \ 77 m_wcml.$(LTOBJEXT) \ 78 m_wstml.$(LTOBJEXT) 79 80