Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 7714e8bbda374d04de2bed6451c2bf481c3c424b..bdfdfd65a12353d23130112140010259f95c9ea6 100644 (file)
@@ -162,8 +162,8 @@ INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
 # you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
 INSTALLED_LIBS=-lbfd -lreadline $(TERMCAP) -lopcodes -lmmalloc \
        -liberty $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS)
-CLIBS = $(BFD) $(READLINE) $(TERMCAP) $(OPCODES) $(MMALLOC) \
-       $(LIBIBERTY) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS)
+CLIBS = $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) \
+       $(LIBIBERTY) $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS)
 CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) \
        $(BFD) $(READLINE) $(OPCODES) $(MMALLOC) $(LIBIBERTY)
 
@@ -187,6 +187,10 @@ RUNTESTFLAGS=
 # besides ser-unix.o
 SER_HARDWIRE=ser-unix.o
 
+# The `remote' debugging target is supported for most architectures,
+# but not all (e.g. 960)
+REMOTE_O=remote.o
+
 # Host and target-dependent makefile fragments come in here.
 ####
 # End of host and target-dependent makefile fragments
@@ -287,10 +291,10 @@ SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \
        dbxread.c demangle.c dwarfread.c elfread.c environ.c eval.c expprint.c \
        findvar.c gdbtypes.c infcmd.c inflow.c infrun.c language.c putenv.c \
        m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
-       mem-break.c minsyms.c mipsread.c objfiles.c parse.c printcmd.c \
-       remote.c source.c stabsread.c stack.c symfile.c symmisc.c symtab.c \
-       target.c typeprint.c utils.c valarith.c valops.c valprint.c values.c \
-       serial.c ser-unix.c
+       mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
+       printcmd.c remote.c source.c stabsread.c stack.c symfile.c symmisc.c \
+       symtab.c target.c typeprint.c utils.c valarith.c valops.c valprint.c \
+       values.c serial.c ser-unix.c
 
 # Files that are not source code, but need to go into
 # gdb-$(VERSION).tar.Z.
@@ -300,7 +304,7 @@ NONSRC = Makefile.in munch configure.in ChangeLog ChangeLog-9091 \
        Projects .gdbinit COPYING $(YYFILES) copying.c copying.awk \
        saber.suppress standalone.c stuff.c kdb-start.c gcc.patch \
        nindy-share/Makefile nindy-share/VERSION nindy-share/README \
-       vx-share/README 29k-share/udi/README config/convex/Convex.notes
+       vx-share/README 29k-share/README config/convex/Convex.notes
 
 # All source files that lint should look at
 LINTFILES = $(SFILES) $(YYFILES) init.c
@@ -363,11 +367,11 @@ HFILES = buildsym.h call-cmds.h defs.h environ.h $(gdbcmd_h) \
        config/m68k/xm-m68k.h config/sparc/xm-sparc.h config/xm-sysv4.h \
        config/vax/xm-vax.h config/nm-trash.h $(udiheaders) \
        29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \
-       nindy-share/block_io.h nindy-share/coff.h nindy-share/demux.h \
-       nindy-share/env.h nindy-share/stop.h nindy-share/ttycntl.h \
+       nindy-share/block_io.h nindy-share/coff.h \
+       nindy-share/env.h nindy-share/stop.h \
        vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \
        vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \
-       vx-share/xdr_ptrace.h vx-share/xdr_rdb.h
+       vx-share/xdr_ptrace.h vx-share/xdr_rdb.h thread.h
 
 # GDB "info" files, which should be included in their entirety
 INFOFILES = gdb.info*
@@ -386,26 +390,27 @@ TARDIRS = doc sparclite
 # variables analogous to SER_HARDWIRE which get defaulted in this
 # Makefile.in
 
-DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES)
+DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_O)
 
 SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
 # and it's more useful to see it in the .y file.
-TAGFILES = $(SFILES) $(HFILES) $(ALLPARAM) $(POSSLIBS) 
+TAGFILES = $(SFILES) $(HFILES) $(ALLDEPFILES) $(ALLPARAM) $(POSSLIBS) 
 
 TARFILES = $(SFILES) $(HFILES) $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \
        $(ALLPARAM) $(INFOFILES) $(POSSLIBS) $(REMOTE_EXAMPLES)
 
 
-OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o \
+OBS =  version.o main.o blockframe.o breakpoint.o findvar.o stack.o thread.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 \
+       symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
        utils.o expprint.o environ.o gdbtypes.o copying.o $(DEPFILES) \
        mem-break.o target.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 mipsread.o stabsread.o core.o c-lang.o ch-lang.o m2-lang.o \
        complaints.o typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \
-       c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o serial.o
+       c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o nlmread.o \
+       serial.o
 
 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
 
@@ -461,9 +466,14 @@ uninstall: force
        @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
 
 init.c: munch $(OBS) $(TSOBS)
-       $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c
+       $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c-new
+       mv init.c-new init.c
+
+.PRECIOUS: init.c
 
+# Removing the old gdb first works better if it is running, at least on SunOS.
 gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
+       rm -f gdb
        $(CC-LD) $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \
          init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
 
@@ -579,12 +589,6 @@ setup-to-dist: force_update
        $(MAKE) $(MFLAGS) gdb.info
        $(MAKE) $(MFLAGS) refcard.ps
 
-# Update the "alldeps.mak" file in a source directory.
-update-alldeps: force_update
-       ../configure none -norecursion
-       rm -f alldeps.mak
-       $(MAKE) $(MFLAGS) alldeps.mak
-
 # Build a tar file from a proto-gdb.dir.
 gdb-$(VERSION).tar.Z: force_update
        rm -f gdb.tar gdb-$(VERSION).tar.Z
@@ -607,7 +611,7 @@ make-proto-gdb-1: $(TARFILES) $(TARDIRS) gdb.info
            cd $$i; \
            ln -s $${rootme}/$$i/* .; \
            rm -rf SCCS CVS CVS.adm RCS config.status; \
-           if test -f Makefile.in; then rm Makefile; else true; fi;); \
+           if test -f Makefile.in; then rm -f Makefile; else true; fi;); \
          done ; \
          for i in `echo $(TARFILES)`; do \
            (cd proto-gdb.dir ; \
@@ -645,7 +649,7 @@ clean:
 distclean: clean
        @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do 
        rm -f nm.h tm.h xm.h config.status
-       rm -f y.output yacc.acts yacc.tmp
+       rm -f y.output yacc.acts yacc.tmp y.tab.h
        rm -f Makefile
 
 realclean: clean
@@ -701,8 +705,10 @@ version.c: Makefile
 
 # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
 # in srcdir, then compiled in objdir to c-exp.tab.o.
-# c-exp.tab.c is so the command argument will never match c-exp.y
-# (some "makes" rewrite the VPATH into command arguments if they match deps).
+
+# If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
+# would sometimes re-write it into $(srcdir)/c-exp.tab.c.
+
 # Remove bogus decls for malloc/realloc/free which conflict with everything
 # else.
 c-exp.tab.o: c-exp.tab.c
@@ -717,7 +723,7 @@ c-exp.tab.c: c-exp.y Makefile.in
             -e 's/realloc/xrealloc/g' \
          < y.tab.c > c-exp.new
        -rm y.tab.c
-       mv c-exp.new c-exp.tab.c
+       mv c-exp.new ./c-exp.tab.c
 
 # ch-exp.tab.c is generated in objdir from ch-exp.y if it doesn't exist
 # in srcdir, then compiled in objdir to ch-exp.tab.o.
@@ -737,7 +743,7 @@ ch-exp.tab.c: ch-exp.y Makefile.in c-exp.tab.c
             -e 's/realloc/xrealloc/g' \
          < y.tab.c > ch-exp.new
        -rm y.tab.c
-       mv ch-exp.new ch-exp.tab.c
+       mv ch-exp.new ./ch-exp.tab.c
 
 # m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
 # in srcdir, then compiled in objdir to m2-exp.tab.o.
@@ -757,7 +763,7 @@ m2-exp.tab.c: m2-exp.y Makefile.in ch-exp.tab.c
             -e 's/realloc/xrealloc/g' \
          < y.tab.c > m2-exp.new
        -rm y.tab.c
-       mv m2-exp.new m2-exp.tab.c
+       mv m2-exp.new ./m2-exp.tab.c
 
 # These files are updated atomically, so make never has to remove them
 .PRECIOUS: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c
@@ -790,10 +796,11 @@ unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
 # These are things from config/*/*.m? fragments.  There is no good reason
 # why they are separate from the lists of files above.
 
-ALLDEPFILES = 29k-share/udi/udi/udip2soc.c 29k-share/udi/udi/udr.c \
+ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
        a29k-pinsn.c a29k-tdep.c a68v-nat.c altos-xdep.c arm-convert.s \
        arm-pinsn.c arm-tdep.c arm-xdep.c convex-pinsn.c convex-tdep.c \
-       convex-xdep.c core-svr4.c coredep.c corelow.c exec.c fork-child.c \
+       convex-xdep.c core-svr4.c coredep.c corelow.c delta68-nat.c exec.c \
+       fork-child.c \
        go32-xdep.c gould-pinsn.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
        hp300ux-nat.c hppa-pinsn.c hppa-tdep.c hppab-nat.c hppah-nat.c \
        i386-pinsn.c i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \
@@ -801,19 +808,20 @@ ALLDEPFILES = 29k-share/udi/udi/udip2soc.c 29k-share/udi/udi/udr.c \
        infptrace.c inftarg.c irix4-nat.c isi-xdep.c m68k-pinsn.c m68k-tdep.c \
        m88k-nat.c m88k-pinsn.c m88k-tdep.c mips-nat.c mips-pinsn.c \
        mips-tdep.c news-xdep.c nindy-share/Onindy.c nindy-share/nindy.c \
-       nindy-share/ttybreak.c nindy-share/ttyflush.c nindy-tdep.c \
+       nindy-share/ttyflush.c nindy-tdep.c \
        ns32k-pinsn.c paread.c procfs.c pyr-pinsn.c pyr-tdep.c pyr-xdep.c \
        remote-adapt.c remote-eb.c remote-es.c remote-hms.c remote-mips.c \
        remote-mm.c remote-monitor.c remote-nindy.c remote-sim.c remote-st.c \
        remote-udi.c remote-vx.c remote-z8k.c rs6000-nat.c rs6000-pinsn.c \
        rs6000-tdep.c ser-go32.c ser-tcp.c sh-tdep.c solib.c sparc-nat.c \
        sparc-pinsn.c sparc-tdep.c sun3-nat.c sun386-nat.c symm-tdep.c \
-       symm-xdep.c tahoe-pinsn.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \
+       symm-nat.c tahoe-pinsn.c ultra3-nat.c ultra3-xdep.c umax-xdep.c \
        vax-pinsn.c vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
        xcoffexec.c xcoffread.c xcoffsolib.c z8k-tdep.c
 
 ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \
-       config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h config/arm/tm-arm.h \
+       config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h \
+       config/alpha/xm-alpha.h config/arm/tm-arm.h \
        config/arm/xm-arm.h config/convex/tm-convex.h \
        config/convex/xm-convex.h config/gould/tm-np1.h config/gould/tm-pn.h \
        config/gould/xm-np1.h config/gould/xm-pn.h config/h8300/tm-h8300.h \
@@ -850,14 +858,18 @@ ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \
        config/m68k/xm-sun2.h config/m68k/xm-sun3.h config/m68k/xm-sun3os4.h \
        config/m88k/nm-m88k.h config/m88k/tm-delta88.h config/m88k/tm-m88k.h \
        config/m88k/xm-delta88.h config/m88k/xm-m88k.h config/mips/nm-irix3.h \
-       config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/tm-bigmips.h \
+       config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/nm-riscos.h \
+       config/mips/nm-news-mips.h config/mips/tm-bigmips.h \
        config/mips/tm-irix3.h config/mips/tm-mips.h config/mips/xm-irix3.h \
-       config/mips/xm-irix4.h config/mips/xm-mips.h config/nm-sysv4.h \
+       config/mips/xm-irix4.h config/mips/xm-mips.h config/mips/xm-riscos.h \
+       config/mips/xm-news-mips.h \
+       config/nm-sysv4.h \
        config/none/nm-none.h config/none/tm-none.h config/none/xm-none.h \
        config/ns32k/nm-umax.h config/ns32k/tm-merlin.h config/ns32k/tm-umax.h \
        config/ns32k/xm-merlin.h config/ns32k/xm-umax.h config/pa/nm-hppab.h \
        config/pa/nm-hppah.h config/pa/tm-hppab.h config/pa/tm-hppah.h \
-       config/pa/xm-hppab.h config/pa/xm-hppah.h config/pyr/tm-pyr.h \
+       config/pa/xm-hppab.h config/pa/xm-hppah.h config/pa/xm-pa.h \
+       config/pyr/tm-pyr.h \
        config/pyr/xm-pyr.h config/romp/xm-rtbsd.h config/rs6000/nm-rs6000.h \
        config/rs6000/tm-rs6000.h config/rs6000/xm-rs6000.h config/sh/tm-sh.h \
        config/sparc/nm-sun4os4.h config/sparc/tm-sparclite.h \
@@ -870,6 +882,7 @@ ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \
 
 ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
        config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \
+       config/alpha/alpha-osf1.mh \
        config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \
        config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \
        config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \
@@ -880,7 +893,8 @@ ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
        config/i386/i386sol2.mh config/i386/i386sol2.mt config/i386/i386v.mh \
        config/i386/i386v.mt config/i386/i386v32.mh config/i386/i386v4.mh \
        config/i386/i386v4.mt config/i386/linux.mh config/i386/linux.mt \
-       config/i386/ncr3000.mh config/i386/ncr3000.mt config/i386/sun386.mh \
+       config/i386/ncr3000.mh config/i386/ncr3000.mt config/i386/ptx.mh \
+       config/i386/sun386.mh \
        config/i386/sun386.mt config/i386/symmetry.mh config/i386/symmetry.mt \
        config/i960/nindy960.mt config/i960/vxworks960.mt config/m68k/3b1.mh \
        config/m68k/3b1.mt config/m68k/altos.mh config/m68k/altos.mt \
@@ -990,6 +1004,8 @@ dbxread.o: dbxread.c $(breakpoint_h) buildsym.h $(command_h) \
        $(gdbtypes_h) language.h objfiles.h partial-stab.h stabsread.h \
        symfile.h $(symtab_h) target.h
 
+delta68-nat.o: delta68-nat.c $(defs_h)
+
 demangle.o: demangle.c $(defs_h) $(gdbcmd_h)
 
 dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
@@ -1117,17 +1133,17 @@ mipsread.o: mipsread.c buildsym.h complaints.h $(defs_h) \
 news-xdep.o: news-xdep.c
 
 Onindy.o: nindy-share/Onindy.c $(wait_h) nindy-share/block_io.h \
-       nindy-share/env.h nindy-share/ttycntl.h
+       nindy-share/env.h
        $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/Onindy.c
 
 nindy.o: nindy-share/nindy.c $(wait_h) nindy-share/block_io.h \
-       nindy-share/env.h nindy-share/ttycntl.h
+       nindy-share/env.h
        $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/nindy.c
 
-ttybreak.o: nindy-share/ttybreak.c nindy-share/ttycntl.h 
-       $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttybreak.c
+nlmread.o: nlmread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
+       gdb-stabs.h objfiles.h symfile.h $(symtab_h)
 
-ttyflush.o: nindy-share/ttyflush.c nindy-share/ttycntl.h 
+ttyflush.o: nindy-share/ttyflush.c
        $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
 
 nindy-tdep.o: nindy-tdep.c $(defs_h) $(frame_h) $(symtab_h) 
@@ -1159,6 +1175,8 @@ pyr-pinsn.o: pyr-pinsn.c $(OP_INCLUDE)/pyr.h $(defs_h) $(gdbcore_h) \
 pyr-tdep.o: pyr-tdep.c $(defs_h) 
 pyr-xdep.o: pyr-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) 
 
+regex.o: regex.c regex.h
+
 remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
        $(inferior_h) target.h terminal.h
 
@@ -1181,8 +1199,8 @@ remote-monitor.o: remote-monitor.c $(wait_h) $(command_h) $(defs_h) \
        $(gdbcore_h) monitor.h serial.h target.h
 
 remote-nindy.o: remote-nindy.c $(ieee-float_h) $(wait_h) $(command_h) \
-       $(defs_h) $(gdbcore_h) $(inferior_h) nindy-share/demux.h \
-       nindy-share/env.h nindy-share/stop.h nindy-share/ttycntl.h \
+       $(defs_h) $(gdbcore_h) $(inferior_h) \
+       nindy-share/env.h nindy-share/stop.h \
        symfile.h target.h
 
 remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \
@@ -1248,7 +1266,7 @@ symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
        language.h objfiles.h symfile.h $(symtab_h) target.h
 
 symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)  
-symm-xdep.o: symm-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
+symm-nat.o: symm-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
 
 symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \
        $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
@@ -1264,13 +1282,15 @@ tahoe-pinsn.o: tahoe-pinsn.c $(OP_INCLUDE)/tahoe.h $(defs_h) \
 target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
        objfiles.h symfile.h target.h
 
+thread.o: thread.c $(defs_h) thread.h 
+
 typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
        $(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
        $(value_h) 
 
 ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
-ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h
-umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h
+ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
+umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
 
 utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
        language.h signals.h target.h terminal.h
This page took 0.027766 seconds and 4 git commands to generate.