## Makefile.am -- Main Makefile for WHIZARD ## ## Process this file with automake to produce Makefile.in # # Copyright (C) 1999-2012 by # Wolfgang Kilian # Thorsten Ohl # Juergen Reuter # Christian Speckner # # WHIZARD is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # WHIZARD is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ######################################################################## ## Use the m4 directory for local Autoconf macros ACLOCAL_AMFLAGS = -I m4 ## Subdirectories to configure SUBDIRS = src share test scripts libtool-config if !OCAML_AVAILABLE dist-hook: rm -rf $(distdir) mkdir $(distdir) endif ## Install libtool libtoolexeclibdir = $(pkglibdir) nodist_libtoolexeclib_SCRIPTS = libtool ## Extra files in the distribution dist_noinst_DATA = BUGS EXTENSIONS ## Use the same compiler and compiler flags for distcheck DISTCHECK_CONFIGURE_FLAGS = F77=$(F77) F77FLAGS="$(F77FLAGS)" FC=$(FC) \ FCFLAGS="$(FCFLAGS)" LIBS="$(LIBS)" --enable-distribution EXTRA_DISTCHECK_CONFIGURE_FLAGS = \ "--disable-noweb-force" \ "--disable-noweb-force --disable-ocaml" \ "--disable-noweb-force --disable-static" \ "--enable-shower" \ "--enable-fc-quadruple --enable-fc-openmp" extra-distcheck: @echo "=================================================" >$@.log @echo "make distcheck with additional configure options:" >>$@.log for flag in $(EXTRA_DISTCHECK_CONFIGURE_FLAGS); do \ if $(MAKE) $(AM_MAKEFLAGS) \ DISTCHECK_CONFIGURE_FLAGS='$(DISTCHECK_CONFIGURE_FLAGS) '"$$flag" \ distcheck; then \ echo "PASS $$flag" >>$@.log; \ else \ echo "FAIL $$flag" >>$@.log; \ fi; \ done @echo "=================================================" >>$@.log @cat $@.log @rm -f $@.log ## This is generated by configure DISTCLEANFILES = VERSION ## Generate O'Mega caches: install-all-caches: cd src/omega && $(MAKE) $(AM_MAKEFLAGS) install-all-caches install-data-hook: @echo '' @echo '*******************************************************************' @echo '* +-------------------------------------------------------------+ *' @echo '* | CAUTION: | *' @echo '* | | *' @echo '* | If you have not already run "make check", then we strongly | *' @echo '* | recommend you do so. | *' @echo '* | | *' @echo '* | WHIZARD has been carefully tested by its authors, but | *' @echo '* | compilers are all too often released with serious bugs. | *' @echo '* | WHIZARD tends to explore interesting corners in compilers | *' @echo '* | and has hit bugs on quite a few occasions. | *' @echo '* | | *' @echo '* +-------------------------------------------------------------+ *' @echo '*******************************************************************' @echo '' ## Remove backup files maintainer-clean-local: -rm -f *~