=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/demos/Attic/Makefile.am,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/demos/Attic/Makefile.am 2000/09/09 14:13:18 1.1.1.1 +++ OpenXM_contrib/gmp/demos/Attic/Makefile.am 2003/08/25 16:06:03 1.1.1.2 @@ -1,6 +1,6 @@ ## Process this file with automake to generate Makefile.in -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright 2000, 2001 Free Software Foundation, Inc. # # This file is part of the GNU MP Library. # @@ -21,42 +21,22 @@ AUTOMAKE_OPTIONS = gnu no-dependencies $(top_builddir)/ansi2knr +SUBDIRS = calc expr +EXTRA_DIST = perl INCLUDES = -I$(top_srcdir) LDADD = $(top_builddir)/libgmp.la -EXTRA_DIST = calc.y calclex.l +qcn_LDADD = $(LDADD) $(LIBM) +primes_LDADD = $(LDADD) $(LIBM) -calc_SOURCES = calc.c calclex.c calc.h -qcn_LDADD = $(LDADD) -lm - # None of these programs are built by default, but "make " will # build them once libgmp.la is built. # -EXTRA_PROGRAMS = calc factorize isprime pexpr primes qcn +EXTRA_PROGRAMS = factorize isprime pexpr primes qcn CLEANFILES = $(EXTRA_PROGRAMS) allprogs: $(EXTRA_PROGRAMS) - - -# The distribution includes calc.c, calc.h and calclex.c, generated with -# bison and flex, so the calc program will build even if yacc and lex aren't -# available. The rules below regenerate those files if you modify calc.y or -# calclex.l. -# -# Using "cd"s instead of a $(srcdir) path ensures $(srcdir) doesn't get into -# the "#line"s in the generated files. -# -# FIXME: Automake yacc handling isn't quite right when building in a -# separate object directory, hence the explicit rules used for now. -# -# FIXME: With ansi2knr and no-dependencies, there doesn't seem any easy way -# to manually express that calclex$U.lo depends on calc.h. Making calclex.c -# depend on calc.h gets the right result, but the extra lex runs are -# unnecessary. - -$(srcdir)/calclex.c: calclex.l calc.h - cd $(srcdir); lex -ocalclex.c calclex.l -$(srcdir)/calc.c $(srcdir)/calc.h: calc.y - cd $(srcdir); yacc -d -ocalc.c calc.y + cd calc; $(MAKE) $(AM_MAKEFLAGS) allprogs + cd expr; $(MAKE) $(AM_MAKEFLAGS) allprogs