import of readline-4.3
[deliverable/binutils-gdb.git] / readline / examples / Makefile.in
CommitLineData
d60d9f65 1#
f9267e15
EZ
2# This is the Makefile for the readline examples subdirectory.
3#
4# Copyright (C) 1994 Free Software Foundation, Inc.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
84041b4c 19RL_LIBRARY_VERSION = @LIBVERSION@
f9267e15 20
c862e87b 21SHELL = @MAKE_SHELL@
d60d9f65
SS
22RM = rm -f
23
24srcdir = @srcdir@
25VPATH = .:@srcdir@
26top_srcdir = @top_srcdir@
27BUILD_DIR = .
28
84041b4c
EZ
29# Support an alternate destination root directory for package building
30DESTDIR =
31
d60d9f65
SS
32DEFS = @DEFS@
33CC = @CC@
34CFLAGS = @CFLAGS@
84041b4c 35LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
d60d9f65
SS
36CPPFLAGS = @CPPFLAGS@
37
c862e87b 38INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
d60d9f65
SS
39
40CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
84041b4c 41LDFLAGS = -g -L.. @LDFLAGS@
d60d9f65 42
f9267e15
EZ
43READLINE_LIB = ../libreadline.a
44HISTORY_LIB = ../libhistory.a
45
d60d9f65
SS
46TERMCAP_LIB = @TERMCAP_LIB@
47
48.c.o:
c862e87b 49 ${RM} $@
d60d9f65
SS
50 $(CC) $(CCFLAGS) -c $<
51
84041b4c
EZ
52EXECUTABLES = fileman rltest rl rlcat rlversion histexamp
53OBJECTS = fileman.o rltest.o rl.o rlversion.o histexamp.o
d60d9f65
SS
54
55all: $(EXECUTABLES)
84041b4c 56everything: all rlfe
d60d9f65 57
84041b4c 58rl: rl.o $(READLINE_LIB)
d60d9f65
SS
59 $(CC) $(LDFLAGS) -o $@ rl.o -lreadline $(TERMCAP_LIB)
60
84041b4c
EZ
61rlcat: rlcat.o $(READLINE_LIB)
62 $(CC) $(LDFLAGS) -o $@ rlcat.o -lreadline $(TERMCAP_LIB)
63
64fileman: fileman.o $(READLINE_LIB)
d60d9f65
SS
65 $(CC) $(LDFLAGS) -o $@ fileman.o -lreadline $(TERMCAP_LIB)
66
84041b4c 67rltest: rltest.o $(READLINE_LIB)
d60d9f65
SS
68 $(CC) $(LDFLAGS) -o $@ rltest.o -lreadline $(TERMCAP_LIB)
69
f9267e15 70rlversion: rlversion.o $(READLINE_LIB)
c862e87b
JM
71 $(CC) $(LDFLAGS) -o $@ rlversion.o -lreadline $(TERMCAP_LIB)
72
84041b4c
EZ
73histexamp: histexamp.o $(HISTORY_LIB)
74 $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
75
d60d9f65
SS
76clean mostlyclean:
77 $(RM) $(OBJECTS)
f9267e15 78 $(RM) $(EXECUTABLES) *.exe
84041b4c 79 $(RM) rlfe.o rlfe
d60d9f65
SS
80
81distclean maintainer-clean: clean
82 $(RM) Makefile
83
84fileman.o: fileman.c
85rltest.o: rltest.c
86rl.o: rl.c
c862e87b 87rlversion.o: rlversion.c
84041b4c
EZ
88histexamp.o: histexamp.c
89
90fileman.o: $(top_srcdir)/readline.h
91rltest.o: $(top_srcdir)/readline.h
92rl.o: $(top_srcdir)/readline.h
93rlversion.o: $(top_srcdir)/readline.h
94histexamp.o: $(top_srcdir)/history.h
f9267e15
EZ
95
96# Stuff for Per Bothner's `rlfe' program
97
98rlfe: rlfe.o $(READLINE_LIB) $(HISTORY_LIB)
99 $(CC) $(LDFLAGS) -o $@ rlfe.o -lreadline -lhistory ${TERMCAP_LIB}
100
101rlfe.o: rlfe.c
102
103rlfe.o: $(top_srcdir)/readline.h
104rlfe.o: $(top_srcdir)/history.h
This page took 0.040761 seconds and 4 git commands to generate.