# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#$Id$
-
srcdir = .
prefix = /usr/local
program_prefix =
+program_suffix =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
AR = ar
AR_FLAGS = qv
CFLAGS = -g
-BISON = bison -y
-FLEX = flex
MAKEINFO = makeinfo
RANLIB = ranlib
-BISONFLAGS = -tvd
+BISONFLAGS = -d
TEXI2ROFF=texi2roff
+BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; 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.96
+VERSION=1.97
# Distribution name
DIST_NAME=binutils-${VERSION}
check:
/bin/sh $(srcdir)/sanity.sh .
+test-install:
+ /bin/sh $(srcdir)/sanity.sh $(bindir)
+
info: binutils.info
#$(BFD):$(LIBDIR)/../common/*.c
$(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(DISASMS) $(ADDL_LIBS) $(LOADLIBES)
arparse.c:arparse.y
- $(BISON) $(BISONFLAGS) $(VPATH)/arparse.y
- mv y.tab.c arparse.c
- mv y.tab.h arparse.h
+ $(BISON) $(BISONFLAGS) $(srcdir)/arparse.y
+ -mv y.tab.c arparse.c
+ -mv y.tab.h arparse.h
-arlex.c:arlex.l
- $(FLEX) -I -Cem -t $(VPATH)/arlex.l >arlex.c
+arlex.c: arlex.l
+ $(LEX) $(LEX_OPTIONS) $(srcdir)/arlex.l
+ mv lex.yy.c 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)
-rm -f $(STAGESTUFF) TAGS
install: all
+ -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
+ if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
+ -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
for i in $(PROGS) ; do \
- $(INSTALL_PROGRAM) $$i $(bindir)/$(program_prefix)$$i ; \
+ $(INSTALL_PROGRAM) $$i $(bindir)/$(program_prefix)$${i}$(program_suffix) ; \
done
+ -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
+ if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
+ -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
for i in $(MANPAGES) ; do \
- $(INSTALL_DATA) $(srcdir)/$$i $(man1dir)/$(program_prefix)$$i ; \
+ $(INSTALL_DATA) $(srcdir)/$$i $(man1dir)/$(program_prefix)$${i}$(program_suffix) ; \
done
install-info: info
+ -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
+ if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
+ -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
for i in *.info* ; do \
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
done
$(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)
alloca.o:alloca.c
am29k-pinsn.o: am29k-pinsn.c
ar.o: ar.c
+arsup.o: arsup.c
bucomm.o: bucomm.c
copy.o: copy.c
cplus-dem.o:cplus-dem.c