[patch] (obvious) $< fix in gdb/Makefile.in

Ben Harris bjh21@netbsd.org
Wed Nov 7 03:14:00 GMT 2001


$< doesn't work in non-implicit rules in all makes, and fixes for this
have been deemed "obvious", so:

2001-11-16  Ben Harris  <bjh21@netbsd.org>

	* Makefile.in (os9kread.o): Replace $< with autoconf-approved
	$(srcdir)/....
	(procfs.o): Ditto
	(z8k-tdep.o): Ditto

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.127
diff -u -c -3 -p -r1.127 Makefile.in
*** Makefile.in	2001/11/14 18:38:01	1.127
--- Makefile.in	2001/11/16 19:41:06
*************** os9kread.o: os9kread.c $(buildsym_h) $(c
*** 1713,1719 ****
  	        $(expression_h) $(gdb_stabs_h) $(gdbcore_h) $(gdbtypes_h) \
  		$(language_h) $(objfiles_h) $(stabsread_h) $(symfile_h) \
  		$(symtab_h) $(target_h) $(gdb_string_h)
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<

  mem-break.o: mem-break.c $(defs_h)

--- 1713,1720 ----
  	        $(expression_h) $(gdb_stabs_h) $(gdbcore_h) $(gdbtypes_h) \
  		$(language_h) $(objfiles_h) $(stabsread_h) $(symfile_h) \
  		$(symtab_h) $(target_h) $(gdb_string_h)
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
! 		$(srcdir)/os9kread.c

  mem-break.o: mem-break.c $(defs_h)

*************** printcmd.o: printcmd.c $(breakpoint_h) $
*** 1823,1829 ****
  # match output format strings.
  procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
  	$(target_h) $(gdb_string_h) $(gdbthread_h) proc-utils.h
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<

  proc-api.o: proc-api.c $(defs_h) $(gdbcmd_h) proc-utils.h $(completer_h)

--- 1824,1830 ----
  # match output format strings.
  procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
  	$(target_h) $(gdb_string_h) $(gdbthread_h) proc-utils.h
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $(srcdir)/procfs.c

  proc-api.o: proc-api.c $(defs_h) $(gdbcmd_h) proc-utils.h $(completer_h)

*************** xcoffsolib.o: xcoffsolib.c $(bfd_h) $(de
*** 2164,2170 ****
  z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis_asm_h) $(defs_h) $(frame_h) \
  	$(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(gdbcore_h) $(value_h) \
  	$(regcache_h)
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<

  c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \
  	$(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) $(value_h) \
--- 2165,2172 ----
  z8k-tdep.o: z8k-tdep.c $(bfd_h) $(dis_asm_h) $(defs_h) $(frame_h) \
  	$(gdbcmd_h) $(gdbtypes_h) $(symtab_h) $(gdbcore_h) $(value_h) \
  	$(regcache_h)
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
! 		$(srcdir)/z8k-tdep.c

  c-exp.tab.o: c-exp.tab.c c-lang.h $(defs_h) $(expression_h) \
  	$(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) $(value_h) \

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>



More information about the Gdb-patches mailing list