Tue Sep 14 12:21:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
+ * Makefile.in (remote_utils_h): add serial.h and target.h.
+ (main.o, remote-es.o, remote-nindy.o, remote.o): remove target.h
+ (already in remote_utils_h).
+ (remote-utils.o): new rule.
+
+ * remote-utils.h: include serial.h.
+
+ * serial.h: ifdef protect from multiple inclusion.
+
* remote.c, remote-nindy.c, remote-mon.c, remote-es.c: include
remote-utils.h.
#dis-asm_h = $(INCLUDE_DIR)/dis-asm.h
dcache_h = dcache.h
-remote_utils_h = $(dcache_h) remote-utils.h
+remote_utils_h = $(dcache_h) serial.h target.h remote-utils.h
readline_headers = \
$(READLINE_SRC)/chardefs.h \
main.o: main.c $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
$(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h \
- target.h $(remote_utils_h)
+ $(remote_utils_h)
$(CC) -c $(INTERNAL_CFLAGS) $(READLINE_CFLAGS) $(srcdir)/main.c
maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h)
$(defs_h) $(gdbcore_h) $(inferior_h) symfile.h target.h terminal.h
remote-es.o: remote-es.c $(bfd_h) $(wait_h) $(command_h) $(defs_h) \
- $(inferior_h) target.h terminal.h
+ $(inferior_h) $(remote_utils_h) terminal.h
remote-hms.o: remote-hms.c $(wait_h) $(defs_h) $(gdbcore_h) \
$(inferior_h) serial.h target.h terminal.h
remote-nindy.o: remote-nindy.c $(ieee-float_h) $(wait_h) $(command_h) \
$(defs_h) $(gdbcore_h) $(inferior_h) \
- nindy-share/env.h nindy-share/stop.h \
- symfile.h target.h
+ nindy-share/env.h nindy-share/stop.h $(remote_utils_h) \
+ symfile.h
remote-sim.o: remote-sim.c $(wait_h) $(defs_h) $(gdbcore_h) \
$(inferior_h) target.h terminal.h
remote-z8k.o: remote-z8k.c $(wait_h) $(srcdir)/../sim/z8k/sim.h \
$(defs_h) $(gdbcore_h) $(inferior_h) target.h terminal.h
+remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
+ $(inferior_h) $(remote_utils_h)
+
remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
- $(inferior_h) serial.h symfile.h target.h terminal.h
+ $(inferior_h) $(remote_utils_h) symfile.h terminal.h
rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) target.h
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef SERIAL_H
+#define SERIAL_H
+
/* Terminal state pointer. This is specific to each type of interface. */
typedef PTR serial_ttystate;
/* Set the process group of the caller to its own pid, or do nothing if
we lack job control. */
extern int gdb_setpgid PARAMS ((void));
+
+#endif /* SERIAL_H */