# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#
-# Last Mod Tue Nov 5 23:28:51 PST 1991, by rich@cygnus.com
+# Last Mod Wed Nov 13 23:26:23 PST 1991, by rich@cygnus.com
#
# $Id$
AR_FLAGS = cq
BISON = `if [ -d $(unsubdir)/../bison ] ; \
- then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ ; \
+ then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -y -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ ; \
else echo yacc ; fi`
+MAKEINFO = `if [ -d $(unsubdir)/../texinfo/C ] ; \
+ then echo \`pwd\`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \
+ else echo echo ; fi`
+
#\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib clib
OTHERS =
ALL = all.normal
+INSTALL_HEADERS = install-headers
+INSTALL_FIXED_INCLUDES = install-fixed-includes
+
+### for debugging
+#GCCVERBOSE=-v
#### host and target specific makefile fragments come in here.
###
if (cd $(unsubdir)/$$i$(subdir); \
$(MAKE) \
"against=$(against)" \
- "BISON=$(BISON)" $(DO)) ; then true ; \
+ "BISON=$(BISON)" \
+ "MAKEINFO=$(MAKEINFO)" \
+ $(DO)) ; then true ; \
else exit 1 ; fi ; \
else if [ -d $(unsubdir)/$$i ] ; then \
if (cd $(unsubdir)/$$i$(subdir); \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
- "BISON=$(BISON)" $(DO)) ; then true ; \
+ "BISON=$(BISON)" \
+ "MAKEINFO=$(MAKEINFO)" \
+ $(DO)) ; then true ; \
else exit 1 ; fi ; \
else true ; fi ; \
fi ; \
cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" \
"CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
- -O \
+ -O $(GCCVERBOSE) \
-B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
-B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
-B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
- "AR=`pwd`/$(unsubdir)/binutil$(subdir)/$(stagepass)/ar" \
+ "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
+ "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
"RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
"LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
"LDFLAGS=-nostdlib /lib/crt0.o \
rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS) $(OTHERS)"
-install: install-dirs install-fixed-includes
+install: install-no-fixincludes $(INSTALL_FIXED_INCLUDES)
+
+install-no-fixincludes: install-dirs $(INSTALL_HEADERS)
$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS) $(OTHERS)"
# The "else true" stuff is for Ultrix; the shell returns the exit code
# of the "if" command, if no commands are run in the "then" or "else" part,
# causing Make to quit.
+
+MAKEDIRS= \
+ $(ddestdir) \
+ $(ddestdir)/bin \
+ $(ddestdir)/include \
+ $(ddestdir)/lib \
+ $(ddestdir)/lib/emacs \
+ $(idestdir) \
+ $(idestdir)/lib \
+ $(idestdir)/info \
+ $(idestdir)/doc \
+ $(idestdir)/man \
+ $(idestdir)/man/man1 \
+ $(idestdir)/man/man5
+
install-dirs: force
- - mkdir $(ddestdir)
- - mkdir $(ddestdir)/include
- - mkdir $(ddestdir)/lib
- - mkdir $(ddestdir)/lib/emacs
- - mkdir $(ddestdir)/bin
- - mkdir $(ddestdir)/lib
- - mkdir $(ddestdir)
- - mkdir $(ddestdir)/bin
- - mkdir $(ddestdir)/lib
- - mkdir $(idestdir)
- - mkdir $(idestdir)include
- - mkdir $(idestdir)/doc
- - mkdir $(idestdir)/man
- - mkdir $(idestdir)/man/man1
- - mkdir $(idestdir)/man/man2
- - mkdir $(idestdir)/man/man3
- - mkdir $(idestdir)/man/man4
- - mkdir $(idestdir)/man/man5
- - mkdir $(idestdir)/man/man6
- - mkdir $(idestdir)/man/man7
- - mkdir $(idestdir)/man/man8
+ for i in $(MAKEDIRS) ; do \
+ echo Making $$i... ; \
+ if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \
+ done
+
+install-headers:
if [ -d $(unsubdir)/gcc$(subdir) ] ; then \
(cd $(unsubdir)/gcc$(subdir) ; \
$(MAKE) install-dir) ; \
else true; \
fi
+dir.info: force
+ gen-info-dir . > dir.info.new
+ mv -f dir.info.new dir.info
+
+generate-dir: force
+ - rm -f menus
+ for i in `find . -name \*.info -print` ; do \
+ echo Frobbing $$i... ; \
+ sed -e '1,/START-INFO-DIR-ENTRY/d' \
+ -e '/END-INFO-DIR-ENTRY/,$$d' $$i >> menus ; \
+ done
+
etags tags: TAGS
TAGS: FORCE
force_update:
+nothing:
+
# end of Makefile.in