diff options
author | Per Bothner <per@bothner.com> | 1992-05-22 20:44:24 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-05-22 20:44:24 +0000 |
commit | 45212e5e5c6b72fa6af320c2adbea696074d3e57 (patch) | |
tree | dfaf254acd59d94a2cb3ce878463acbfff92f602 /binutils/Makefile.in | |
parent | 31f62b897660f88537af9f541fa946e263e31cb9 (diff) | |
download | gdb-45212e5e5c6b72fa6af320c2adbea696074d3e57.zip gdb-45212e5e5c6b72fa6af320c2adbea696074d3e57.tar.gz gdb-45212e5e5c6b72fa6af320c2adbea696074d3e57.tar.bz2 |
* Makefile.in: Better lex support.
* Makefile.in (dist): Generate flex and bison outputs
for distribution.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r-- | binutils/Makefile.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 8ec1d35..df3d5cd 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -53,13 +53,16 @@ INSTALL_DATA = $(INSTALL) AR = ar AR_FLAGS = qv CFLAGS = -g -BISON = bison -y -FLEX = flex MAKEINFO = makeinfo RANLIB = ranlib BISONFLAGS = -tvd TEXI2ROFF=texi2roff +BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/ ; else echo bison -y ; fi` +# Comment these out if using lex. +LEX_OPTIONS = -I -Cem +LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex -S../flex/flex.skel ; else echo flex ; fi` + # Distribution version VERSION=1.97 # Distribution name @@ -166,7 +169,7 @@ arparse.c:arparse.y arlex.c:arlex.l - $(FLEX) -I -Cem -t $(VPATH)/arlex.l >arlex.c + $(LEX) $(LEX_OPTIONS) -t $(VPATH)/arlex.l >arlex.c $(AR_PROG): $(ADDL_LIBS) ar.o arparse.o arlex.o not-ranlib.o $(BFD) arsup.o $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o arparse.o arlex.o arsup.o not-ranlib.o $(ADDL_LIBS) $(LOADLIBES) @@ -327,8 +330,8 @@ dist: $(DIST_NAME).tar.Z $(DIST_NAME).tar.Z: cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME) - make binutils.mm -f Makefile.in - cd ../ld; make ld.mm -f Makefile.in + make arparse.c arlex.c binutils.mm -f Makefile.in + cd ../ld; make ldgram.c ldgram.h ldlex.c ld.mm -f Makefile.in cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z rm -rf ../../$(DIST_NAME) |