Cleanup bfd_close() cleanups.
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 5628234a427ab30be134d8b51f1b13c97ca7760d..335489a9b21af57266ddc853f4a9281acb7a840b 100644 (file)
@@ -117,7 +117,6 @@ MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
 # We are using our own version of REGEX now to be consistent across
 # machines.
 REGEX = @REGEX@
-REGEX_CFLAGS = @REGEX_CFLAGS@
 
 # Where is the BFD library?  Typically in ../bfd.
 BFD_DIR = ../bfd
@@ -264,7 +263,7 @@ GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
 
 # CFLAGS is specifically reserved for setting from the command line
 # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
-CFLAGS = -g
+CFLAGS = @CFLAGS@
 
 # Need to pass this to testsuite for "make check".  Probably should be
 # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
@@ -277,7 +276,7 @@ INTERNAL_WARN_CFLAGS = \
        $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
        $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
        $(INTL_CFLAGS) $(TUI_CFLAGS) $(ENABLE_CFLAGS) \
-       $(REGEX_CFLAGS) $(GDB_WARN_CFLAGS)
+       $(GDB_WARN_CFLAGS)
 INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
 
 # LDFLAGS is specifically reserved for setting from the command line
@@ -467,7 +466,7 @@ SFILES = ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \
        demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \
        event-loop.c event-top.c \
        expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \
-       findvar.c gdbarch.c gdbarch-utils.c gdbtypes.c \
+       findvar.c gdbarch.c arch-utils.c gdbtypes.c \
        inf-loop.c infcmd.c inflow.c infrun.c language.c \
        kod.c kod-cisco.c \
        ui-out.c cli-out.c \
@@ -500,7 +499,6 @@ LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
 getopt_h =     $(INCLUDE_DIR)/getopt.h
 floatformat_h =        $(INCLUDE_DIR)/floatformat.h
 bfd_h =                $(BFD_DIR)/bfd.h
-elf_bfd_h =     $(BFD_SRC)/elf-bfd.h
 dis-asm_h =    $(INCLUDE_DIR)/dis-asm.h 
 remote-sim_h = $(INCLUDE_DIR)/remote-sim.h
 
@@ -549,7 +547,7 @@ remote_h =  remote.h
 version_h =    version.h
 ui_out_h =      ui-out.h
 cli_out_h =    cli-out.h
-gdbarch_utils_h = gdbarch-utils.h
+arch_utils_h = arch-utils.h
 
 # Header files that need to have srcdir added.  Note that in the cases
 # where we use a macro like $(gdbcmd_h), things are carefully arranged
@@ -607,7 +605,7 @@ COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
        symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
        expprint.o environ.o \
        event-loop.o event-top.o inf-loop.o \
-       gdbarch.o gdbarch-utils.o gdbtypes.o copying.o $(DEPFILES) \
+       gdbarch.o arch-utils.o gdbtypes.o copying.o $(DEPFILES) \
        mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
        kod.o kod-cisco.o \
        gdb-events.o \
@@ -943,19 +941,12 @@ doc/gdb.dvi:
 doc/gdb.info:
        cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)
 
-# When DJGPP Make runs on MS-DOS, it downcases all file names, so
-# it doesn't find COPYING, and wants to make it...
-copying.txt:
-       test -f copying.txt || \
-         (test "$$LN_S" = "ln -s" && \
-           ln -s $(srcdir)/COPYING copying.txt;) || \
-         cp -p $(srcdir)/COPYING copying.txt 2>/dev/null || \
-         ln $(srcdir)/COPYING copying.txt 2>/dev/null || \
-         cp $(srcdir)/COPYING copying.txt
-
 # Make copying.c from COPYING
-copying.c: copying.txt copying.awk
-       awk -f $(srcdir)/copying.awk < $(srcdir)/copying.txt > copying.c
+$(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ \
+               $(srcdir)/COPYING $(srcdir)/copying.awk
+       awk -f $(srcdir)/copying.awk \
+               < $(srcdir)/COPYING > $(srcdir)/copying.tmp
+       mv $(srcdir)/copying.tmp $(srcdir)/copying.c
 
 version.c: Makefile
        rm -f version.c
@@ -1067,11 +1058,11 @@ ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
        29k-share/udi/udi2go32.c \
        a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \
        altos-xdep.c arm-convert.s \
-       arm-linux-nat.c arm-tdep.c arm-xdep.c coff-solib.c \
-       convex-tdep.c convex-xdep.c \
+       arm-linux-nat.c arm-linux-tdep.c arm-tdep.c arm-xdep.c \
+       coff-solib.c convex-tdep.c convex-xdep.c \
        core-sol2.c core-regset.c core-aout.c corelow.c \
        dcache.c delta68-nat.c dpx2-nat.c dstread.c exec.c fork-child.c \
-       go32-nat.c gould-tdep.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
+       go32-nat.c h8300-tdep.c h8500-tdep.c \
        hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c \
         hp-psymtab-read.c hp-symtab-read.c \
        i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c i386-linux-nat.c \
@@ -1079,7 +1070,7 @@ ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
        i387-tdep.c \
        i386-linux-tdep.c \
        i960-tdep.c \
-       ia64-linux-nat.c ia64-tdep.c \
+       ia64-linux-nat.c ia64-linux-tdep.c ia64-tdep.c \
        infptrace.c inftarg.c irix4-nat.c irix5-nat.c isi-xdep.c \
        lynx-nat.c m3-nat.c \
        m68k-tdep.c \
@@ -1134,6 +1125,9 @@ annotate.o: annotate.c $(defs_h) annotate.h $(value_h) target.h $(gdbtypes_h)
 arm-linux-nat.o: arm-linux-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) \
        gdb_string.h
 
+arm-linux-tdep.o: arm-linux-tdep.c $(defs_h) target.h $(value_h) \
+                 $(gdbtypes_h) $(floatformat_h)
+
 arm-tdep.o: arm-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
        $(gdbcore_h)
 
@@ -1199,7 +1193,9 @@ complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h)
 # OBSOLETE convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
 # OBSOLETE     $(inferior_h)
 
-copying.o: copying.c $(defs_h) $(gdbcmd_h)
+# Provide explicit rule/dependency - works for more makes.
+copying.o: $(srcdir)/copying.c $(defs_h) $(gdbcmd_h)
+       $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/copying.c
 
 core-aout.o: core-aout.c $(defs_h) $(gdbcore_h) $(value_h) $(inferior_h)
 
@@ -1240,7 +1236,7 @@ dwarfread.o: dwarfread.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
        $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
        $(symtab_h) gdb_string.h
 
-dwarf2read.o: dwarf2read.c $(bfd_h) $(elf_bfd_h) buildsym.h $(defs_h) \
+dwarf2read.o: dwarf2read.c $(bfd_h) buildsym.h $(defs_h) \
        $(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
        $(symtab_h) gdb_string.h
 
@@ -1366,12 +1362,12 @@ tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \
 
 gdbarch.o: gdbarch.c $(defs_h) $(bfd_h) $(gdbcmd_h)
 
-gdbarch-utils.o: gdbarch-utils.c $(defs_h) $(bfd_h) $(gdbcmd_h) \
-       $(gdbarch_utils_h)
+arch-utils.o: arch-utils.c $(defs_h) $(bfd_h) $(gdbcmd_h) \
+       $(arch_utils_h)
 
 gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \
        $(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \
-       $(value_h) gdb_string.h
+       $(value_h) gdb_string.h wrapper.h
 
 go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) gdb_wait.h $(gdbcore_h) \
        $(command_h) $(floatformat_h) target.h
@@ -1379,11 +1375,6 @@ go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) gdb_wait.h $(gdbcore_h) \
 gnu-nat.o: process_reply_S.h exc_request_S.h notify_S.h msg_reply_S.h \
        exc_request_U.h msg_U.h gnu-nat.h
 
-# OBSOLETE gould-tdep.o: gould-tdep.c $(OP_INCLUDE)/np1.h $(defs_h) $(frame_h) \
-# OBSOLETE     $(gdbcore_h) $(symtab_h)
-
-# OBSOLETE gould-xdep.o: gould-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
-
 h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h)
 
 h8500-tdep.o: h8500-tdep.c $(bfd_h) $(dis-asm_h) $(defs_h) \
@@ -1438,8 +1429,10 @@ i960-tdep.o: i960-tdep.c $(floatformat_h) $(defs_h) $(expression_h) \
 ia64-linux-nat.o: ia64-linux-nat.c  $(defs_h) $(inferior_h) $(target_h) \
        $(gdbcore_h)
 
+ia64-linux-tdep.o: ia64-linux-tdep.c $(defs_h) $(arch_utils_h)
+
 ia64-tdep.o: ia64-tdep.c $(defs_h) $(inferior_h) symfile.h $(gdbcore_h) \
-       $(floatformat_h) objfiles.h $(INCLUDE_DIR)/elf/common.h
+       $(arch_utils_h) $(floatformat_h) objfiles.h $(INCLUDE_DIR)/elf/common.h
 
 infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
        $(inferior_h) target.h language.h gdb_string.h
@@ -1544,7 +1537,7 @@ minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
 mips-nat.o: mips-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) 
 
 mips-tdep.o: mips-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
-       $(gdbarch_utils_h) \
+       $(arch_utils_h) \
        $(inferior_h) language.h objfiles.h symfile.h gdb_string.h
 
 mipsread.o: mipsread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
@@ -1809,7 +1802,8 @@ sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(gdbcore_h) \
        target.h
 
 sparc-tdep.o: sparc-tdep.c $(floatformat_h) $(defs_h) $(gdbcore_h) \
-       $(inferior_h) objfiles.h symfile.h target.h gdb_string.h
+       $(inferior_h) objfiles.h symfile.h target.h gdb_string.h \
+       $(arch_utils_h)
 
 sparcl-tdep.o: sparcl-tdep.c $(defs_h) $(gdbcore_h) target.h
 
@@ -1950,7 +1944,7 @@ gdb-events.o: gdb-events.c gdb-events.h $(defs_h) $(gdbcmd_h)
 ui-out.o: ui-out.c $(defs_h) $(ui_out_h) expression.h language.h
 cli-out.o: cli-out.c $(defs_h) $(ui_out_h) $(cli_out_h)
 varobj.o: varobj.c $(defs_h) $(frame_h) $(value_h) \
-       $(language_h) valprint.h varobj.h
+       $(language_h) valprint.h varobj.h wrapper.h
        $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<
 wrapper.o: wrapper.c $(defs_h) $(frame_h) $(value_h) wrapper.h
 
This page took 0.027481 seconds and 4 git commands to generate.