## -*- Mode: Makefile -*- ## --------------------------------------------------------------------- ## Makefile.am -- process this file with automake to produce Makefile.in ## ## Time-stamp: "2007-07-04 11:50:54 bkorb" ## ## This file is part of AutoGen. ## AutoGen copyright (c) 1992-2007 by Bruce Korb - all rights reserved ## ## AutoGen 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 3 of the License, or ## (at your option) any later version. ## ## AutoGen 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, see . ## ## --------------------------------------------------------------------- ## $Id: Makefile.am,v 4.12 2007/07/04 20:51:10 bkorb Exp $ ## --------------------------------------------------------------------- SUBDIRS = test INCLUDES = @INCLIST@ TEMPLATES = directive.tpl fsm-macro.tpl fsm-trans.tpl fsm.tpl snarf.tpl DEFINITIONS = cgi.def opts.def pseudo.def defParse.def CLEANFILES = autogen.texi autogen.menu autogen.1 GEN_CSRC = opts.h directive.h expr.ini expr.h proto.h pseudo-fsm.h STAMPS = stamp-opts stamp-directive stamp-exprini stamp-fsm \ stamp-man stamp-parse pkgdata_DATA = fsm.tpl fsm-macro.tpl fsm-trans.tpl nodist_man_MANS = autogen.1 DISTCLEANFILES = $(STAMPS) ag.c MAINTAINERCLEANFILES = $(GEN_CSRC) bin_PROGRAMS = autogen csrc = \ autogen.c agCgi.c agInit.c agShell.c cgi-fsm.c \ defDirect.c agUtils.c defParse-fsm.c defLex.c defLoad.c \ defFind.c expFormat.c expGperf.c expGuile.c expExtract.c \ expOutput.c expPrint.c expState.c expMake.c fmemopen.c \ funcCase.c funcDef.c expString.c funcFor.c funcIf.c \ functions.c funcEval.c loadPseudo.c opts.c scmStrings.c \ tpLoad.c tpProcess.c tpParse.c hsrc = autogen.h defParse-fsm.h functions.h cgi-fsm.h EXTRA_DIST = $(csrc) $(hsrc) $(DEFINITIONS) $(TEMPLATES) \ bootstrap.dir schemedef.scm LO_LIB = $(top_builddir)/autoopts/libopts.la SNV_LIB = $(top_builddir)/snprintfv/libsnprintfv.la nodist_autogen_SOURCES = ag.c autogen_SOURCES = $(GEN_CSRC) autogen_LDADD = $(LO_LIB) $(SNV_LIB) $(LIBGUILE_LIBS) autogen_LDFLAGS = $(DYNAMIC_AG) autogen_CFLAGS = $(LIBGUILE_CFLAGS) FUNCLIST = \ funcCase.c funcDef.c funcEval.c funcFor.c funcIf.c functions.c EXPRLIST = \ expFormat.c expGuile.c expOutput.c expPrint.c expState.c \ expString.c expGperf.c expExtract.c $(FUNCLIST) AM_YFLAGS = -d ag.c : Makefile ( echo '#define DEFINING' ; echo '#include "autogen.h"' ; \ for f in $(csrc) ; do echo "#include \"$$f\"" ; done ) > $@ SUFFIXES = .i .c.i : $(COMPILE) -E $< > $@ ## Funny build rules for extracting definitions. "Makefile.in" ## should never depend on these, so they must *not* be listed in the ## "BUILT_SOURCES" list. They are to be rebuilt on explicit request: ## make gen. ALSO: keep the "GEN - RULE" comments - used by bootstrap.dir ## BOOTENV = top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \ srcdir=$(srcdir) \ AGexe=$(AGexe) GDexe=$(GDexe) CLexe=$(CLexe) ## stamp-opts GEN-RULE stamp-opts: opts.def $(top_srcdir)/VERSION $(CLexe) @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-directive GEN-RULE stamp-directive: defDirect.c @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-exprini GEN-RULE stamp-exprini : $(EXPRLIST) snarf.tpl @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-fsm GEN-RULE stamp-fsm : pseudo.def fsm.tpl fsm-macro.tpl fsm-trans.tpl @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-parse GEN-RULE stamp-parse : defParse.def fsm.tpl fsm-macro.tpl fsm-trans.tpl @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## proto.h GEN-RULE proto.h : @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-texi GEN-RULE stamp-texi : $(AGnam) $(CLexe) $(GDexe) @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ ## stamp-man GEN-RULE stamp-man : opts.def $(AGnam) $(CLexe) $(GDexe) @$(BOOTENV) $(SHELL) $(srcdir)/bootstrap.dir $@ autogen.1 : stamp-man autogen.texi : stamp-texi gen : stamp-texi $(GDexe) : cd ../getdefs ; $(MAKE) $(GDnam) $(CLexe) : cd ../columns ; $(MAKE) $(CLnam) ../snprintfv/snprintfv.h : @if [ ! -f ../snprintfv/snprintfv.h ] ; then cd ../snprintfv ; \ ln -s $(top_srcdir)/snprintfv/snprintfv/snprintfv.h . ; fi ../snprintfv/libsnprintfv.la : cd ../snprintfv ; $(MAKE) libsnprintfv.la .NOTPARALLEL: # Makefile.am ends here