* Makefile.in (VERSION): gdb-4.7 release.
[external/binutils.git] / gdb / Makefile.in
index ff2c0fa..4bc6c36 100644 (file)
@@ -22,6 +22,7 @@ program_transform_name =
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 libdir = $(exec_prefix)/lib
+tooldir = $(libdir)/$(target_alias)
 
 datadir = $(prefix)/lib
 mandir = $(prefix)/man
@@ -139,7 +140,7 @@ CFLAGS = -g
 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
 INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
 # None of the things in CFLAGS will do any harm, and on some systems
-#  (e.g. SunOS4) it is important to use the M_CFLAGS.
+#  (e.g. SunOS4) it is important to use the MH_CFLAGS.
 LDFLAGS = $(CFLAGS)
 
 # Where is the "-liberty" library, containing getopt and obstack?
@@ -153,20 +154,19 @@ OPCODES = ./../opcodes${subdir}/libopcodes.a
 # The config/mh-* file must define REGEX and REGEX1 on USG machines.
 # If your sysyem is missing alloca(), or, more likely, it's there but
 # it doesn't work, define ALLOCA & ALLOCA1 too.
-# If your system is missing putenv(), add putenv.c to XM_ADD_FILES.
 
 # Libraries and corresponding dependencies for compiling gdb.
 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
 # TERMCAP comes after readline, since readline depends on it.
-CLIBS = ${BFD_LIB}  ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
-       ${XM_CLIBS} ${TM_CLIBS}
-CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
-       ${RL_LIB} ${MMALLOC_LIB}
+CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
+       ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS}
+CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \
+       ${BFD_LIB} ${RL_LIB}            ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY}
 
-ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
-ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
+ADD_FILES = ${REGEX} ${ALLOCA}  ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
+ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
 
-VERSION = 4.6.6
+VERSION = 4.7
 DIST=gdb
 
 LINT=/usr/5bin/lint
@@ -198,7 +198,7 @@ SFILES_MAINDIR = \
         main.c printcmd.c gdbtypes.c \
         remote.c source.c stack.c symmisc.c symtab.c symfile.c \
         utils.c valarith.c valops.c valprint.c values.c c-exp.y m2-exp.y \
-        mem-break.c target.c inftarg.c \
+        mem-break.c target.c \
         dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \
         ieee-float.c language.c parse.c buildsym.c objfiles.c \
         minsyms.c mipsread.c maint.c
@@ -252,7 +252,11 @@ HFILES=    breakpoint.h buildsym.h call-cmds.h command.h defs.h \
        serial.h signals.h solib.h symfile.h symtab.h stabsread.h \
        target.h terminal.h xcoffsolib.h value.h \
        tm-68k.h tm-hppa.h tm-i960.h tm-sparc.h tm-sunos.h tm-sysv4.h \
-       xm-m68k.h xm-sparc.h xm-sysv4.h xm-vax.h
+       xm-m68k.h xm-sparc.h xm-sysv4.h xm-vax.h \
+       nm-i386bsd.h nm-i386mach.h nm-i386sco.h nm-i386v.h nm-i386v4.h nm-irix3.h \
+       nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \
+       nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \
+       nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h
 
 REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
 
@@ -276,7 +280,7 @@ TARDIRS = doc # tests
 # GDB "info" files, which should be included in their entirety
 INFOFILES = gdb.info*
 
-DEPFILES= ${TDEPFILES} ${XDEPFILES}
+DEPFILES= ${TDEPFILES} ${XDEPFILES} ${NATDEPFILES}
 
 SOURCES=$(SFILES) $(ALLDEPFILES) $(YYFILES)
 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} 
@@ -284,19 +288,19 @@ TAGFILES_MAINDIR = $(SFILES_MAINDIR) $(ALLDEPFILES_MAINDIR) \
              ${HFILES} ${ALLPARAM} ${POSSLIBS_MAINDIR} 
 TARFILES = ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES}
 
-OBS = main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
+OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \
     values.o eval.o valops.o valarith.o valprint.o printcmd.o \
     symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \
-    command.o utils.o expprint.o environ.o version.o gdbtypes.o \
+    command.o utils.o expprint.o environ.o gdbtypes.o \
     copying.o $(DEPFILES) mem-break.o target.o \
-    inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
+    ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
     buildsym.o objfiles.o minsyms.o maint.o demangle.o \
     dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \
-    stabsread.o
+    stabsread.o core.o
 
 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
 
-TSOBS = core.o inflow.o
+TSOBS = inflow.o
 
 NTSOBS = standalone.o
 
@@ -395,11 +399,12 @@ alldeps.mak: ${srcdir}/config
        for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \
          echo $$i >>allconfig.tmp; \
          awk <$$i ' \
-           $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" { \
+           $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \
+               || $$1 == "NATDEPFILES=" { \
              for (i = 2; i <= NF; i++) \
                print $$i >> "alldeps.tmp" ; \
             } \
-           $$1 == "TM_FILE=" || $$1 == "XM_FILE=" { \
+           $$1 == "TM_FILE=" || $$1 == "XM_FILE=" || $$1 == "NAT_FILE" { \
              print $$2 >> "allparam.tmp" }' ; \
        done
        sort <alldeps.tmp | uniq | \
@@ -519,7 +524,8 @@ kdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS}
 # Put the proper machine-specific files first.
 # createtags will edit the .o in DEPFILES into .c
 TAGS: ${TAGFILES}
-       $(srcdir)/createtags $(TM_FILE) ${XM_FILE} $(DEPFILES) ${TAGFILES}
+       $(srcdir)/createtags $(TM_FILE) ${XM_FILE} ${NAT_FILE} \
+                            $(DEPFILES) ${TAGFILES}
 tags: TAGS
 
 # Making distributions of GDB and friends.
@@ -537,7 +543,7 @@ gdb.tar.Z: force_update
 
 # Update the "alldeps.mak" file in a source directory.
 update-alldeps: force_update
-       ../configure none
+       ../configure none -norecursion
        rm -f alldeps.mak
        $(MAKE) $(MFLAGS) alldeps.mak
 
@@ -545,7 +551,7 @@ update-alldeps: force_update
 # We update alldeps.mak first, since it is used to generate the list
 # of files to be checked for dependencies.
 update-depend: update-alldeps force_update
-       ../configure none
+       ../configure none -norecursion
        rm -f depend
        $(MAKE) $(MFLAGS) depend
 
@@ -723,7 +729,8 @@ xdr_regs.o: ${srcdir}/vx-share/xdr_regs.c
        ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_regs.c
 
 nindy.o: ${srcdir}/nindy-share/nindy.c
-       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/nindy.c
+       ${CC} -c ${INTERNAL_CFLAGS} -DSTRIP='"$(tooldir)/bin/strip"' \
+               ${srcdir}/nindy-share/nindy.c
 
 Onindy.o: ${srcdir}/nindy-share/Onindy.c
        ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/Onindy.c