readline:
[deliverable/binutils-gdb.git] / readline / examples / Makefile.in
CommitLineData
d60d9f65 1#
1b17e766
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.
19
c862e87b 20SHELL = @MAKE_SHELL@
d60d9f65
SS
21RM = rm -f
22
23srcdir = @srcdir@
24VPATH = .:@srcdir@
25top_srcdir = @top_srcdir@
26BUILD_DIR = .
27
28DEFS = @DEFS@
29CC = @CC@
30CFLAGS = @CFLAGS@
1b17e766 31LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY
d60d9f65
SS
32CPPFLAGS = @CPPFLAGS@
33
c862e87b 34INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
d60d9f65
SS
35
36CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
37LDFLAGS = -g -L..
38
1b17e766
EZ
39READLINE_LIB = ../libreadline.a
40HISTORY_LIB = ../libhistory.a
41
d60d9f65
SS
42TERMCAP_LIB = @TERMCAP_LIB@
43
44.c.o:
c862e87b 45 ${RM} $@
d60d9f65
SS
46 $(CC) $(CCFLAGS) -c $<
47
c862e87b
JM
48EXECUTABLES = fileman rltest rl rlversion
49OBJECTS = fileman.o rltest.o rl.o rlversion.o
d60d9f65
SS
50
51all: $(EXECUTABLES)
52
53rl: rl.o
54 $(CC) $(LDFLAGS) -o $@ rl.o -lreadline $(TERMCAP_LIB)
55
56fileman: fileman.o
57 $(CC) $(LDFLAGS) -o $@ fileman.o -lreadline $(TERMCAP_LIB)
58
59rltest: rltest.o
60 $(CC) $(LDFLAGS) -o $@ rltest.o -lreadline $(TERMCAP_LIB)
61
1b17e766 62rlversion: rlversion.o $(READLINE_LIB)
c862e87b
JM
63 $(CC) $(LDFLAGS) -o $@ rlversion.o -lreadline $(TERMCAP_LIB)
64
d60d9f65
SS
65clean mostlyclean:
66 $(RM) $(OBJECTS)
1b17e766 67 $(RM) $(EXECUTABLES) *.exe
d60d9f65
SS
68
69distclean maintainer-clean: clean
70 $(RM) Makefile
71
72fileman.o: fileman.c
73rltest.o: rltest.c
74rl.o: rl.c
c862e87b 75rlversion.o: rlversion.c
1b17e766
EZ
76
77# Stuff for Per Bothner's `rlfe' program
78
79rlfe: rlfe.o $(READLINE_LIB) $(HISTORY_LIB)
80 $(CC) $(LDFLAGS) -o $@ rlfe.o -lreadline -lhistory ${TERMCAP_LIB}
81
82rlfe.o: rlfe.c
83
84rlfe.o: $(top_srcdir)/readline.h
85rlfe.o: $(top_srcdir)/history.h
This page took 0.049205 seconds and 4 git commands to generate.