* Makefile.in (python.o): Remove dependencies. Use COMPILE and
authorTom Tromey <tromey@redhat.com>
Fri, 8 Aug 2008 17:38:35 +0000 (17:38 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 8 Aug 2008 17:38:35 +0000 (17:38 +0000)
POSTCOMPILE.
(python-utils.o): Likewise.

gdb/ChangeLog
gdb/Makefile.in

index 8f0a53061ea17e18502c46b990202d8244aaf061..82ecc7ce6eed4f0ebcfafd6b44649c12fa124470 100644 (file)
@@ -1,3 +1,9 @@
+2008-08-08  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
+       POSTCOMPILE.
+       (python-utils.o): Likewise.
+
 2008-08-08  Andreas Schwab  <schwab@suse.de>
 
        * corefile.c (_initialize_core): Remove spurious paren from set
index 0a61c243d02b3153c80b3ea83cf03cffdfdafb20..7f8c9eafa743ed899c9b5165a8c88458d2010918 100644 (file)
@@ -1822,6 +1822,23 @@ tui-winsource.o: $(srcdir)/tui/tui-winsource.c
        $(COMPILE) $(srcdir)/tui/tui-winsource.c
        $(POSTCOMPILE)
 
+#
+# gdb/python/ dependencies
+#
+# Need to explicitly specify the compile rule as make will do nothing
+# or try to compile the object file into the sub-directory.
+
+# Flags needed to compile Python code
+PYTHON_CFLAGS=@PYTHON_CFLAGS@
+
+python.o: $(srcdir)/python/python.c
+       $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
+       $(POSTCOMPILE)
+
+python-utils.o: $(srcdir)/python/python-utils.c
+       $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-utils.c
+       $(POSTCOMPILE)
+
 \f
 
 #
@@ -1863,22 +1880,4 @@ $(all_object_files) : $(generated_files)
 # Dependencies.
 @GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
 
-#
-# gdb/python/ dependencies
-#
-# Need to explicitly specify the compile rule as make will do nothing
-# or try to compile the object file into the sub-directory.
-
-# Flags needed to compile Python code
-PYTHON_CFLAGS=@PYTHON_CFLAGS@
-
-python.o: $(srcdir)/python/python.c $(defs_h) $(python_h) \
-       $(command_h) $(libiberty_h) $(cli_decode_h) $(charset_h) $(top_h) \
-       $(exceptions_h) $(python_internal_h) $(version_h) $(cli_script_h) \
-       $(ui_out_h) $(target_h) $(gdbthread_h)
-       $(CC) -c $(INTERNAL_CFLAGS) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
-python-utils.o: $(srcdir)/python/python-utils.c $(defs_h) $(python_internal_h)
-       $(CC) -c $(INTERNAL_CFLAGS) $(PYTHON_CFLAGS) \
-         $(srcdir)/python/python-utils.c -o python-utils.o
-
 ### end of the gdb Makefile.in.