mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
9255ee3150
Non-readline modified files: src/gdb/ChangeLog src/gdb/defs.h src/gdb/cli/cli-cmds.c src/gdb/cli/cli-setshow.c src/gdb/tui/ChangeLog src/gdb/tui/tuiWin.c In readline directory: * compat.c, mbutil.c, misc.c, rlmbutil.h, rltypedefs.h, text.c, doc/history.0, doc/history.3, support/wcwidth.c, examples/readlinebuf.h, examples/rlcat.c: New files. * CHANGELOG, CHANGES, INSTALL, MANIFEST, Makefile.in, README, aclocal.m4, ansi_stdlib.h, bind.c, callback.c, chardefs.h, complete.c, config.h.in, configure, configure.in, display.c, emacs_keymap.c, funmap.c, histexpand.c, histfile.c, histlib.h, history.c, history.h, histsearch.c, input.c, isearch.c, keymaps.c, keymaps.h, kill.c, macro.c, nls.c, parens.c, posixdir.h, readline.c, readline.h, rlconf.h, rldefs.h, rlprivate.h, rlshell.h, rlstdc.h, rltty.c, savestring.c, search.c, shell.c, signals.c, terminal.c, tilde.c, tilde.h, undo.c, util.c, vi_keymap.c, vi_mode.c, xmalloc.c, xmalloc.h, doc/Makefile.in, doc/hist.texinfo, doc/hstech.texinfo, doc/hsuser.texinfo, doc/manvers.texinfo, doc/readline.3, doc/rlman.texinfo, doc/rltech.texinfo, doc/rluser.texinfo doc/rluserman.texinfo, doc/texi2dvi, doc/texi2html, shlib/Makefile.in, support/install.sh, support/mkdirs, support/mkdist, support/shlib-install, support/shobj-conf, examples/Inputrc, examples/Makefile.in, examples/fileman.c, examples/histexamp.c, examples/manexamp.c, examples/rl.c, examples/rlfe.c, examples/rltest.c, examples/rlversion.c: Modified files.
105 lines
2.8 KiB
Makefile
105 lines
2.8 KiB
Makefile
#
|
|
# This is the Makefile for the readline examples subdirectory.
|
|
#
|
|
# Copyright (C) 1994 Free Software Foundation, Inc.
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
RL_LIBRARY_VERSION = @LIBVERSION@
|
|
|
|
SHELL = @MAKE_SHELL@
|
|
RM = rm -f
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = .:@srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
BUILD_DIR = .
|
|
|
|
# Support an alternate destination root directory for package building
|
|
DESTDIR =
|
|
|
|
DEFS = @DEFS@
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
|
|
|
|
CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
|
|
LDFLAGS = -g -L.. @LDFLAGS@
|
|
|
|
READLINE_LIB = ../libreadline.a
|
|
HISTORY_LIB = ../libhistory.a
|
|
|
|
TERMCAP_LIB = @TERMCAP_LIB@
|
|
|
|
.c.o:
|
|
${RM} $@
|
|
$(CC) $(CCFLAGS) -c $<
|
|
|
|
EXECUTABLES = fileman rltest rl rlcat rlversion histexamp
|
|
OBJECTS = fileman.o rltest.o rl.o rlversion.o histexamp.o
|
|
|
|
all: $(EXECUTABLES)
|
|
everything: all rlfe
|
|
|
|
rl: rl.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rl.o -lreadline $(TERMCAP_LIB)
|
|
|
|
rlcat: rlcat.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rlcat.o -lreadline $(TERMCAP_LIB)
|
|
|
|
fileman: fileman.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ fileman.o -lreadline $(TERMCAP_LIB)
|
|
|
|
rltest: rltest.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rltest.o -lreadline $(TERMCAP_LIB)
|
|
|
|
rlversion: rlversion.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rlversion.o -lreadline $(TERMCAP_LIB)
|
|
|
|
histexamp: histexamp.o $(HISTORY_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
|
|
|
|
clean mostlyclean:
|
|
$(RM) $(OBJECTS)
|
|
$(RM) $(EXECUTABLES) *.exe
|
|
$(RM) rlfe.o rlfe
|
|
|
|
distclean maintainer-clean: clean
|
|
$(RM) Makefile
|
|
|
|
fileman.o: fileman.c
|
|
rltest.o: rltest.c
|
|
rl.o: rl.c
|
|
rlversion.o: rlversion.c
|
|
histexamp.o: histexamp.c
|
|
|
|
fileman.o: $(top_srcdir)/readline.h
|
|
rltest.o: $(top_srcdir)/readline.h
|
|
rl.o: $(top_srcdir)/readline.h
|
|
rlversion.o: $(top_srcdir)/readline.h
|
|
histexamp.o: $(top_srcdir)/history.h
|
|
|
|
# Stuff for Per Bothner's `rlfe' program
|
|
|
|
rlfe: rlfe.o $(READLINE_LIB) $(HISTORY_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rlfe.o -lreadline -lhistory ${TERMCAP_LIB}
|
|
|
|
rlfe.o: rlfe.c
|
|
|
|
rlfe.o: $(top_srcdir)/readline.h
|
|
rlfe.o: $(top_srcdir)/history.h
|