]> Git Repo - binutils.git/blobdiff - Makefile.in
Get prototype of memchr right
[binutils.git] / Makefile.in
index a0b3b7ea6e950cd806b6b5419855a561d6e715c3..5a30c8b20dfb801d12d86b06834e3a7ece3c549e 100644 (file)
@@ -16,7 +16,7 @@
 # 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 12:18:34 PST 1991, by [email protected]
+# Last Mod Wed Nov 13 15:08:42 PST 1991, by [email protected]
 #
 # $Id$
 
@@ -35,10 +35,20 @@ BISON = `if [ -d $(unsubdir)/../bison ] ; \
        then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -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.
 ###
@@ -56,16 +66,16 @@ all.xclib:  all.normal
 
 subdir_do: force
        for i in $(DODIRS); do \
-               if [ -f $(unsubdir)/$$i/localenv -o -f $(unsubdir)/$$i.$(target)/localenv ] ; then \
-                       if (cd $(unsubdir)/$$i`if [ -d $(unsubdir)/$$i.$(target) ] ; \
-                               then echo .$(target) ; fi`$(subdir); \
+               if [ -f $(unsubdir)/$$i/localenv ] ; then \
+                       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 -o -d $(unsubdir)/$$i.$(target) ] ; then \
-                       if (cd $(unsubdir)/$$i`if [ -d $(unsubdir)/$$i.$(target) ] ; \
-                               then echo .$(target) ; fi`$(subdir); \
+               else if [ -d $(unsubdir)/$$i ] ; then \
+                       if (cd $(unsubdir)/$$i$(subdir); \
                                $(MAKE) \
                                        "against=$(against)" \
                                        "AR=$(AR)" \
@@ -74,7 +84,9 @@ subdir_do: force
                                        "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 ; \
@@ -103,26 +115,18 @@ bootstrap3:
 pass:
        cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
        $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" \
-               "CC=`pwd`/$(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/gcc \
-               -O \
-               -B`pwd`/$(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
-               -B`pwd`/$(unsubdir)/gas`if [ -d $(unsubdir)/gas.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
-               -B`pwd`/$(unsubdir)/ld`if [ -d $(unsubdir)/ld.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/" \
-               "AR=`pwd`/$(unsubdir)/binutils`if [ -d $(unsubdir)/binutils.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/ar" \
-               "RANLIB=`pwd`/$(unsubdir)/binutils`if [ -d $(unsubdir)/binutils.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/ranlib" \
-               "LOADLIBES=`pwd`/$(unsubdir)/gnulib`if [ -d $(unsubdir)/binutils.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
+               "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
+               -O $(GCCVERBOSE) \
+               -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
+               -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
+               -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
+               "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 \
-               -L`pwd`/$(unsubdir)/gnulib`if [ -d $(unsubdir)/gnulib.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
-               -B`pwd`/$(unsubdir)/ld`if [ -d $(unsubdir)/ld.$(target) ] ; \
-               then echo .$(target) ; fi`$(subdir)/$(stagepass)/"
+               -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
+               -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
 
 
 stage1:
@@ -150,51 +154,61 @@ clean:
        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
-       if [ -d $(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-                then echo .$(target) ; fi`$(subdir) ] ; then \
-               (cd  $(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-                       then echo .$(target) ; fi`$(subdir) ; \
+       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
 
 install-fixed-includes: force
-       if [ -d $(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-                then echo .$(target) ; fi`$(subdir) ] ; then \
-               (cd  $(unsubdir)/gcc`if [ -d $(unsubdir)/gcc.$(target) ] ; \
-                       then echo .$(target) ; fi`$(subdir) ; \
+       if [ -d $(unsubdir)/gcc$(subdir) ] ; then \
+               (cd  $(unsubdir)/gcc$(subdir) ; \
                                $(MAKE) install-fixed-includes) ; \
        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
@@ -261,4 +275,6 @@ make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
 
 force_update:
 
+nothing:
+
 # end of Makefile.in
This page took 0.027181 seconds and 4 git commands to generate.