This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Update makefile to avoid building tui-file.o
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH]: Update makefile to avoid building tui-file.o
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Date: Wed, 18 Jul 2001 22:58:44 +0200
Hi!
I've integrated the following patch which removes tui-file.o when
building gdb without tui (tested by building on i386 without tui).
Stephane
2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* Makefile.in (COMMON_OBS): Remove tui-file.o.
(SUBDIR_TUI_OBS): Add it here.
(SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
(main.o): Remove dependency with tui-file.h.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.100
diff -u -p -r1.100 Makefile.in
--- Makefile.in 2001/07/17 20:22:49 1.100
+++ Makefile.in 2001/07/18 20:49:30
@@ -183,11 +183,11 @@ SUBDIR_MI_UNINSTALL=
# TUI sub directory definitions
#
SUBDIR_TUI_OBS = \
- tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \
+ tui-file.o tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \
tuiGeneralWin.o tuiLayout.o tuiWin.o tuiCommand.o \
tuiDisassem.o tuiSourceWin.o tuiRegs.o tuiDataWin.o
SUBDIR_TUI_SRCS = \
- tui/tui.c tui/tuiData.c tui/tuiSource.c \
+ tui/tui-file.c tui/tui.c tui/tuiData.c tui/tuiSource.c \
tui/tuiStack.c tui/tuiIO.c \
tui/tuiGeneralWin.c tui/tuiLayout.c \
tui/tuiWin.c tui/tuiCommand.c \
@@ -694,7 +694,7 @@ COMMON_OBS = version.o blockframe.o brea
c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o \
- ui-file.o tui-file.o \
+ ui-file.o \
frame.o \
gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o cp-abi.o
@@ -790,8 +790,7 @@ uninstall: force $(CONFIG_UNINSTALL)
# FIXME: There are 2 problems with this approach. First, if the INIT_FILES
# list includes a file twice (because of some mistake somewhere else)
# the _initialize_* function will be included twice in init.c. Second,
-# init.c may force unnecessary files to be linked in. Like for instance
-# tui-file.c.
+# init.c may force unnecessary files to be linked in.
#
INIT_FILES = $(OBS) $(TSOBS) $(CONFIG_OBS) $(CONFIG_INITS)
@@ -1661,7 +1660,7 @@ m88k-tdep.o: m88k-tdep.c $(defs_h) $(gdb
mac-nat.o: mac-nat.c $(defs_h) $(gdb_string_h) $(regcache_h)
main.o: main.c top.h $(defs_h) $(gdb_string_h) $(event_loop_h) \
- symfile.h $(gdbcore_h) $(srcdir)/tui/tui-file.h $(ui_out_h)
+ symfile.h $(gdbcore_h) $(ui_out_h)
maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
$(expression_h) objfiles.h symfile.h