mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 14:04:24 +08:00
Only install GDBtk files when GDBtk is being built.
This commit is contained in:
parent
b0b1b869c7
commit
e56ac5c3a3
@ -1,3 +1,18 @@
|
|||||||
|
Thu Feb 24 18:42:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* configure.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Set to
|
||||||
|
$(SUBDIR_*_INSTALL) when so configured.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
|
* Makefile.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Define using
|
||||||
|
configure.
|
||||||
|
(install-only): Add dependency on $(CONFIG_INSTALL). Delete code
|
||||||
|
installing GDBtk.
|
||||||
|
(uninstall): Add dependency on $(CONFIG_UNINSTALL).
|
||||||
|
(SUBDIR_MI_INSTALL, SUBDIR_MI_UNINSTALL, SUBDIR_GDBTK_UNINSTALL,
|
||||||
|
SUBDIR_GDBTK_INSTALL): Define.
|
||||||
|
(install-gdbtk): New target.
|
||||||
|
|
||||||
Thu Feb 24 18:19:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
Thu Feb 24 18:19:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace.
|
* configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace.
|
||||||
|
@ -161,6 +161,8 @@ SUBDIR_MI_INITS = \
|
|||||||
SUBDIR_MI_LDFLAGS=
|
SUBDIR_MI_LDFLAGS=
|
||||||
SUBDIR_MI_CFLAGS= \
|
SUBDIR_MI_CFLAGS= \
|
||||||
-DUI_OUT=1
|
-DUI_OUT=1
|
||||||
|
SUBDIR_MI_INSTALL=
|
||||||
|
SUBDIR_MI_UNINSTALL=
|
||||||
|
|
||||||
# Opcodes currently live in one of two places. Either they are in the
|
# Opcodes currently live in one of two places. Either they are in the
|
||||||
# opcode library, typically ../opcodes, or they are in a header file
|
# opcode library, typically ../opcodes, or they are in a header file
|
||||||
@ -220,6 +222,8 @@ ENABLE_GDBTK= @ENABLE_GDBTK@
|
|||||||
LIBGUI = @LIBGUI@
|
LIBGUI = @LIBGUI@
|
||||||
GUI_CFLAGS_X = @GUI_CFLAGS_X@
|
GUI_CFLAGS_X = @GUI_CFLAGS_X@
|
||||||
IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
|
IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
|
||||||
|
SUBDIR_GDBTK_INSTALL= install-gdbtk
|
||||||
|
SUBDIR_GDBTK_UNINSTALL=
|
||||||
|
|
||||||
CONFIG_OBS= @CONFIG_OBS@
|
CONFIG_OBS= @CONFIG_OBS@
|
||||||
CONFIG_SRCS= @CONFIG_SRCS@
|
CONFIG_SRCS= @CONFIG_SRCS@
|
||||||
@ -227,6 +231,8 @@ CONFIG_DEPS= @CONFIG_DEPS@
|
|||||||
CONFIG_INITS= @CONFIG_INITS@
|
CONFIG_INITS= @CONFIG_INITS@
|
||||||
CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
|
CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
|
||||||
ENABLE_CFLAGS= @ENABLE_CFLAGS@
|
ENABLE_CFLAGS= @ENABLE_CFLAGS@
|
||||||
|
CONFIG_INSTALL = @CONFIG_INSTALL@
|
||||||
|
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
||||||
|
|
||||||
# -I. for config files.
|
# -I. for config files.
|
||||||
# -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also.
|
# -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also.
|
||||||
@ -665,7 +671,7 @@ gdb.z:gdb.1
|
|||||||
# time it takes for make to check that all is up to date.
|
# time it takes for make to check that all is up to date.
|
||||||
# install-only is intended to address that need.
|
# install-only is intended to address that need.
|
||||||
install: all install-only
|
install: all install-only
|
||||||
install-only:
|
install-only: $(CONFIG_INSTALL)
|
||||||
transformed_name=`t='$(program_transform_name)'; \
|
transformed_name=`t='$(program_transform_name)'; \
|
||||||
echo gdb | sed -e $$t` ; \
|
echo gdb | sed -e $$t` ; \
|
||||||
if test "x$$transformed_name" = x; then \
|
if test "x$$transformed_name" = x; then \
|
||||||
@ -675,21 +681,9 @@ install-only:
|
|||||||
fi ; \
|
fi ; \
|
||||||
$(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \
|
$(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \
|
||||||
$(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
|
$(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
|
||||||
$(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \
|
|
||||||
$(SHELL) $(srcdir)/../mkinstalldirs \
|
|
||||||
$(datadir)/gdbtcl/images \
|
|
||||||
$(datadir)/gdbtcl/images2 ; \
|
|
||||||
$(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl/help \
|
|
||||||
$(datadir)/gdbtcl/help/images \
|
|
||||||
$(datadir)/gdbtcl/help/trace ; \
|
|
||||||
cd $(srcdir)/gdbtk/library ; \
|
|
||||||
for i in *.tcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif; \
|
|
||||||
do \
|
|
||||||
$(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \
|
|
||||||
done ;
|
|
||||||
@$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
@$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
||||||
|
|
||||||
uninstall: force
|
uninstall: force $(CONFIG_UNINSTALL)
|
||||||
transformed_name=`t='$(program_transform_name)'; \
|
transformed_name=`t='$(program_transform_name)'; \
|
||||||
echo gdb | sed -e $$t` ; \
|
echo gdb | sed -e $$t` ; \
|
||||||
if test "x$$transformed_name" = x; then \
|
if test "x$$transformed_name" = x; then \
|
||||||
@ -1257,6 +1251,20 @@ findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
|
|||||||
fork-child.o: fork-child.c gdb_wait.h $(defs_h) $(gdbcore_h) \
|
fork-child.o: fork-child.c gdb_wait.h $(defs_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h terminal.h gdbthread.h gdb_string.h
|
$(inferior_h) target.h terminal.h gdbthread.h gdb_string.h
|
||||||
|
|
||||||
|
install-gdbtk:
|
||||||
|
$(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \
|
||||||
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
||||||
|
$(datadir)/gdbtcl/images \
|
||||||
|
$(datadir)/gdbtcl/images2 ; \
|
||||||
|
$(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl/help \
|
||||||
|
$(datadir)/gdbtcl/help/images \
|
||||||
|
$(datadir)/gdbtcl/help/trace ; \
|
||||||
|
cd $(srcdir)/gdbtk/library ; \
|
||||||
|
for i in *.tcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif; \
|
||||||
|
do \
|
||||||
|
$(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \
|
||||||
|
done ;
|
||||||
|
|
||||||
gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico
|
gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico
|
||||||
$(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o
|
$(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o
|
||||||
|
|
||||||
|
394
gdb/configure
vendored
394
gdb/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -43,6 +43,8 @@ CONFIG_DEPS=
|
|||||||
CONFIG_SRCS=
|
CONFIG_SRCS=
|
||||||
CONFIG_INITS=
|
CONFIG_INITS=
|
||||||
ENABLE_CFLAGS=
|
ENABLE_CFLAGS=
|
||||||
|
CONFIG_INSTALL=
|
||||||
|
CONFIG_UNINSTALL=
|
||||||
|
|
||||||
configdirs="doc testsuite"
|
configdirs="doc testsuite"
|
||||||
|
|
||||||
@ -385,6 +387,8 @@ case ${enable_gdbmi} in
|
|||||||
CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
|
CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
|
||||||
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
|
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
|
||||||
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
|
||||||
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
|
||||||
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -694,6 +698,8 @@ if test "${enable_gdbtk}" = "yes"; then
|
|||||||
CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
|
CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
|
||||||
CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
|
CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
|
||||||
CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
|
CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
|
||||||
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
|
||||||
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
|
||||||
|
|
||||||
if test x$gdb_cv_os_cygwin = xyes; then
|
if test x$gdb_cv_os_cygwin = xyes; then
|
||||||
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
||||||
@ -759,6 +765,8 @@ AC_SUBST(CONFIG_OBS)
|
|||||||
AC_SUBST(CONFIG_DEPS)
|
AC_SUBST(CONFIG_DEPS)
|
||||||
AC_SUBST(CONFIG_SRCS)
|
AC_SUBST(CONFIG_SRCS)
|
||||||
AC_SUBST(CONFIG_INITS)
|
AC_SUBST(CONFIG_INITS)
|
||||||
|
AC_SUBST(CONFIG_INSTALL)
|
||||||
|
AC_SUBST(CONFIG_UNINSTALL)
|
||||||
|
|
||||||
# Begin stuff to support --enable-shared
|
# Begin stuff to support --enable-shared
|
||||||
AC_ARG_ENABLE(shared,
|
AC_ARG_ENABLE(shared,
|
||||||
|
Loading…
Reference in New Issue
Block a user