gdb/
[binutils-gdb.git] / gdb / Makefile.in
index b01a3c4dc6287b545115419fd36f6eb04745b0da..e5eee0626f2953b09c1fe888ca88a9f4ca04e8ff 100644 (file)
@@ -155,7 +155,8 @@ WERROR_CFLAGS = @WERROR_CFLAGS@
 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
 GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
 
-GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " | sed "s/ -Wformat-nonliteral / /g"`
+GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \
+                  | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
 
 RDYNAMIC = @RDYNAMIC@
 
@@ -275,6 +276,8 @@ SUBDIR_PYTHON_OBS = \
        py-cmd.o \
        py-frame.o \
        py-function.o \
+       py-inferior.o \
+       py-infthread.o \
        py-lazy-string.o \
        py-objfile.o \
        py-param.o \
@@ -293,6 +296,8 @@ SUBDIR_PYTHON_SRCS = \
        python/py-cmd.c \
        python/py-frame.c \
        python/py-function.c \
+       python/py-inferior.c \
+       python/py-infthread.c \
        python/py-lazy-string.c \
        python/py-objfile.c \
        python/py-param.c \
@@ -691,7 +696,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
        scm-exp.c scm-lang.c scm-valprint.c \
        sentinel-frame.c \
        serial.c ser-base.c ser-unix.c \
-       solib.c solib-null.c source.c \
+       solib.c solib-target.c source.c \
        stabsread.c stack.c std-regs.c symfile.c symfile-mem.c symmisc.c \
        symtab.c \
        target.c target-descriptions.c target-memory.c \
@@ -733,7 +738,7 @@ ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
 c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h       \
 cli/cli-decode.h cli/cli-cmds.h cli/cli-dump.h \
 cli/cli-script.h macrotab.h symtab.h version.h gnulib/wchar.in.h \
-gnulib/string.in.h gnulib/str-two-way.h gnulib/extra/link-warning.h \
+gnulib/string.in.h gnulib/str-two-way.h \
 gnulib/stdint.in.h remote.h gdb.h sparc-nat.h gdbserver/win32-low.h \
 gdbserver/i387-fp.h gdbserver/server.h gdbserver/terminal.h \
 gdbserver/mem-break.h gdbserver/wincecompat.h gdbserver/target.h \
@@ -770,7 +775,7 @@ language.h nbsd-tdep.h wrapper.h solib-svr4.h \
 macroexp.h ui-file.h regcache.h gdb_string.h tracepoint.h i386-tdep.h \
 inf-child.h p-lang.h event-top.h gdbtypes.h scm-tags.h user-regs.h \
 regformats/regdef.h config/alpha/nm-osf3.h  config/i386/nm-i386gnu.h \
-config/i386/nm-fbsd.h config/i386/nm-linux.h \
+config/i386/nm-fbsd.h \
 config/nm-nto.h config/sparc/nm-sol2.h config/nm-linux.h \
 config/rs6000/nm-rs6000.h top.h bsd-kvm.h gdb-stabs.h reggroups.h \
 annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h        \
@@ -859,7 +864,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        reggroups.o regset.o \
        trad-frame.o \
        tramp-frame.o \
-       solib.o solib-null.o \
+       solib.o solib-target.o \
        prologue-value.o memory-map.o xml-support.o xml-syscall.o \
        target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
        inferior.o osdata.o gdb_usleep.o record.o gcore.o \
@@ -1033,6 +1038,8 @@ install-tui:
                $(INSTALL_DATA) $(srcdir)/gdb.1 \
                        $(DESTDIR)$(man1dir)/$$transformed_name.1
 
+install-python:
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
 
 uninstall: force $(CONFIG_UNINSTALL)
        transformed_name=`t='$(program_transform_name)'; \
@@ -1474,7 +1481,6 @@ ALLDEPFILES = \
        mips64obsd-nat.c mips64obsd-tdep.c \
        nbsd-nat.c nbsd-tdep.c obsd-tdep.c \
        solib-osf.c \
-       solib-target.c \
        somread.c solib-som.c \
        posix-hdep.c \
        ppc-sysv-tdep.c ppc-linux-nat.c ppc-linux-tdep.c \
@@ -1526,14 +1532,15 @@ main.o: $(srcdir)/main.c
 # definitly will not work.  "monitor.c" needs to be rewritten so that
 # it doesn't use format strings and instead uses callbacks.
 monitor.o: $(srcdir)/monitor.c
-       $(COMPILE.pre) $(INTERNAL_WARN_CFLAGS) $(COMPILE.post) $(srcdir)/monitor.c
+       $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
+               $(COMPILE.post) $(srcdir)/monitor.c
        $(POSTCOMPILE)
 
 # Do not try to build "printcmd.c" with -Wformat-nonliteral.  It manually
 # checks format strings.
 printcmd.o: $(srcdir)/printcmd.c
-       $(COMPILE.pre) $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS_NO_FORMAT) \
-               $(GDB_WERROR_CFLAGS) $(COMPILE.post) $(srcdir)/printcmd.c
+       $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
+               $(COMPILE.post) $(srcdir)/printcmd.c
        $(POSTCOMPILE)
 
 # Message files.  Based on code in gcc/Makefile.in.
@@ -2019,6 +2026,14 @@ py-function.o: $(srcdir)/python/py-function.c
        $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c
        $(POSTCOMPILE)
 
+py-inferior.o: $(srcdir)/python/py-inferior.c
+       $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-inferior.c
+       $(POSTCOMPILE)
+
+py-infthread.o: $(srcdir)/python/py-infthread.c
+       $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-infthread.c
+       $(POSTCOMPILE)
+
 py-lazy-string.o: $(srcdir)/python/py-lazy-string.c
        $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-lazy-string.c
        $(POSTCOMPILE)