This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] configure.in/Makefile.in Remove UI files from libgdb
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] configure.in/Makefile.in Remove UI files from libgdb
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Mon, 11 Dec 2000 22:33:05 +0000
- Organization: Red Hat Canada Ltd. - Toronto
The UI files (CLI, MI and GDBTK) will not be added to the libgdb
archive anymore.
ChangeLog:
* Makefile.in (CONFIG_LOBS): New macro. Configured to the files
that must be added to the gdblib itself.
(DEPFILES): Use CONFIG_LOBS, not CONFIG_OBS.
(INIT_FILES): Include CONFIG_OBS.
(gdb$(EXEEXT)): Depend on CONFIG_OBS and link with it.
(kdb): Ditto.
* configure.in (CONFIG_LOBS): New variable. Object files that must
be added to gdblib for the specific configuration.
* configure: Regenerate.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.50
diff -c -p -r1.50 configure.in
*** configure.in 2000/12/11 21:11:16 1.50
--- configure.in 2000/12/11 21:53:17
*************** CY_GNU_GETTEXT
*** 40,45 ****
--- 40,46 ----
dnl List of object files added by configure.
CONFIG_OBS=
+ CONFIG_LOBS=
CONFIG_DEPS=
CONFIG_SRCS=
CONFIG_INITS=
*************** if test ${build} = ${host} -a ${host} =
*** 407,413 ****
if test "$GCC" = "yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
! CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
else
AC_MSG_RESULT(no (suppressed because you are not using GCC))
--- 408,414 ----
if test "$GCC" = "yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
! CONFIG_LOBS="${CONFIG_LOBS} hpux-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
else
AC_MSG_RESULT(no (suppressed because you are not using GCC))
*************** if test ${build} = ${host} -a ${host} =
*** 421,427 ****
if test -f /usr/lib/libthread_db.so.1 ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_THREAD_DB_LIB)
! CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
AC_CHECK_LIB(dl, dlopen)
if test "$GCC" = "yes" ; then
--- 422,428 ----
if test -f /usr/lib/libthread_db.so.1 ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_THREAD_DB_LIB)
! CONFIG_LOBS="${CONFIG_LOBS} sol-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
AC_CHECK_LIB(dl, dlopen)
if test "$GCC" = "yes" ; then
*************** no) enable_netrom=no ;;
*** 560,566 ****
esac])
if test "${enable_netrom}" = "yes"; then
! CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
fi
--- 564,570 ----
esac])
if test "${enable_netrom}" = "yes"; then
! CONFIG_LOBS="${CONFIG_LOBS} remote-nrom.o"
CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
fi
*************** AC_SUBST(IGNORE_SIM_OBS)
*** 962,967 ****
--- 966,972 ----
AC_SUBST(ENABLE_CFLAGS)
AC_SUBST(CONFIG_OBS)
+ AC_SUBST(CONFIG_LOBS)
AC_SUBST(CONFIG_DEPS)
AC_SUBST(CONFIG_SRCS)
AC_SUBST(CONFIG_INITS)
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.52
diff -c -p -r1.52 Makefile.in
*** Makefile.in 2000/12/11 21:11:16 1.52
--- Makefile.in 2000/12/11 21:53:19
*************** SUBDIR_GDBTK_INSTALL= install-gdbtk
*** 277,282 ****
--- 277,283 ----
SUBDIR_GDBTK_UNINSTALL=
CONFIG_OBS= @CONFIG_OBS@
+ CONFIG_LOBS= @CONFIG_LOBS@
CONFIG_SRCS= @CONFIG_SRCS@
CONFIG_DEPS= @CONFIG_DEPS@
CONFIG_INITS= @CONFIG_INITS@
*************** POSSLIBS = gnu-regex.c gnu-regex.h
*** 643,649 ****
# Makefile.in
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \
! $(REMOTE_OBS) $(SIM_OBS) $(CONFIG_OBS)
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS)
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
--- 644,650 ----
# Makefile.in
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \
! $(REMOTE_OBS) $(SIM_OBS) $(CONFIG_LOBS)
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS)
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
*************** uninstall: force $(CONFIG_UNINSTALL)
*** 775,781 ****
# tui-file.c.
#
! INIT_FILES = $(OBS) $(TSOBS) $(CONFIG_INITS)
init.c: $(INIT_FILES)
@echo Making init.c
@rm -f init.c-tmp init.l-tmp
--- 776,782 ----
# tui-file.c.
#
! INIT_FILES = $(OBS) $(TSOBS) $(CONFIG_OBS) $(CONFIG_INITS)
init.c: $(INIT_FILES)
@echo Making init.c
@rm -f init.c-tmp init.l-tmp
*************** init.c: $(INIT_FILES)
*** 816,824 ****
init.o: init.c $(defs_h) $(call_cmds_h)
# Removing the old gdb first works better if it is running, at least on SunOS.
! gdb$(EXEEXT): main.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
rm -f gdb$(EXEEXT)
! $(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -o gdb$(EXEEXT) main.o libgdb.a
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
nlm: force
rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do
--- 817,827 ----
init.o: init.c $(defs_h) $(call_cmds_h)
# Removing the old gdb first works better if it is running, at least on SunOS.
! gdb$(EXEEXT): main.o libgdb.a $(CONFIG_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
rm -f gdb$(EXEEXT)
! $(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -o gdb$(EXEEXT) \
! main.o libgdb.a $(CONFIG_OBS) $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS)\
! $(LOADLIBES)
nlm: force
rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=all DODIRS=nlm subdir_do
*************** tm-sun4os4.h: tm-sparc.h
*** 887,895 ****
xm-vaxult.h: xm-vax.h
xm-vaxbsd.h: xm-vax.h
! kdb: $(NTSSTART) $(OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
! ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
! -lc $(CLIBS)
# Put the proper machine-specific files first, so M-. on a machine
# specific routine gets the one for the correct machine. (FIXME: those
--- 890,898 ----
xm-vaxult.h: xm-vax.h
xm-vaxbsd.h: xm-vax.h
! kdb: $(NTSSTART) $(OBS) $(CONFIG_OBS) $(NTSOBS) $(ADD_DEPS) $(CDEPS)
! ld -o kdb $(NTSSTART) $(OBS) $(CONFIG_OBS) $(NTSOBS) init.o \
! $(ADD_FILES) -lc $(CLIBS)
# Put the proper machine-specific files first, so M-. on a machine
# specific routine gets the one for the correct machine. (FIXME: those