diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-07-15 23:53:22 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-07-15 23:53:22 +0200 |
commit | 8c82cafeb84bbe7305c2ddad467f98135119d078 (patch) | |
tree | ac6a74072dc88e60444f2ea6515b2078ecd4704c /demos | |
parent | fc2f613464e2d2e586c670d7e7369921d2afce24 (diff) | |
download | gmp-8c82cafeb84bbe7305c2ddad467f98135119d078.tar.gz |
Regenerate for:
Correction to calc program checkin: make sure the calclex.c is
recompiled if calc.h changes, amend some comments.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Makefile.in | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/demos/Makefile.in b/demos/Makefile.in index 8b88b5d05..75aa2aa6b 100644 --- a/demos/Makefile.in +++ b/demos/Makefile.in @@ -129,7 +129,7 @@ calc_SOURCES = calc.c calclex.c calc.h qcn_LDADD = $(LDADD) -lm # None of these programs are built by default, but "make <whatever>" will -# build them once libgmp.la has been built. +# build them once libgmp.la is built. # EXTRA_PROGRAMS = calc factorize isprime pexpr primes qcn @@ -409,14 +409,22 @@ mostlyclean distclean maintainer-clean allprogs: $(EXTRA_PROGRAMS) # The distribution includes calc.c, calc.h and calclex.c, generated with -# bison and flex, so the calc program can be built even if yacc and lex -# aren't available. The rules below will regenerate those files if you -# modify calc.y or calclex.l. +# 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. # -# The "cd"s ensure $(srcdir) doesn't get into the "#line"s in the generated -# files. +# Using "cd"s instead of a $(srcdir) path ensures $(srcdir) doesn't get into +# the "#line"s in the generated files. +# +# FIXME: With ansi2knr and no-dependencies, there doesn't seem any easy way +# to manually express that calclex$U.o depends on calc.h. Making calclex.c +# depend on calc.h gets the right result, but the extra lex runs are +# unnecessary. +# +# FIXME: Automake yacc handling isn't quite right when building in a +# separate object directory, so explicit rules are used for now. -$(srcdir)/calclex.c: calclex.l +$(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 |