source: trunk/third/readline/examples/Makefile.in @ 17010

Revision 17010, 2.6 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17009, which included commits to RCS files with non-trunk default branches.
Line 
1#
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.
19RL_LIBRARY_VERSION = @LIBVERSION@
20
21SHELL = @MAKE_SHELL@
22RM = rm -f
23
24srcdir = @srcdir@
25VPATH = .:@srcdir@
26top_srcdir = @top_srcdir@
27BUILD_DIR = .
28
29# Support an alternate destination root directory for package building
30DESTDIR =
31
32DEFS = @DEFS@
33CC = @CC@
34CFLAGS = @CFLAGS@
35LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
36CPPFLAGS = @CPPFLAGS@
37
38INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
39
40CCFLAGS  = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
41LDFLAGS = -g -L..
42
43READLINE_LIB = ../libreadline.a
44HISTORY_LIB = ../libhistory.a
45
46TERMCAP_LIB = @TERMCAP_LIB@
47
48.c.o:
49        ${RM} $@
50        $(CC) $(CCFLAGS) -c $<
51
52EXECUTABLES = fileman rltest rl rlversion histexamp
53OBJECTS = fileman.o rltest.o rl.o rlversion.o histexamp.o
54
55all: $(EXECUTABLES)
56everything: all rlfe
57
58rl: rl.o
59        $(CC) $(LDFLAGS) -o $@ rl.o -lreadline $(TERMCAP_LIB)
60
61fileman: fileman.o
62        $(CC) $(LDFLAGS) -o $@ fileman.o -lreadline $(TERMCAP_LIB)
63
64rltest: rltest.o
65        $(CC) $(LDFLAGS) -o $@ rltest.o -lreadline $(TERMCAP_LIB)
66
67rlversion: rlversion.o $(READLINE_LIB)
68        $(CC) $(LDFLAGS) -o $@ rlversion.o -lreadline $(TERMCAP_LIB)
69
70histexamp: histexamp.o $(HISTORY_LIB)
71        $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
72
73clean mostlyclean:
74        $(RM) $(OBJECTS)
75        $(RM) $(EXECUTABLES) *.exe
76        $(RM) rlfe.o rlfe
77
78distclean maintainer-clean: clean
79        $(RM) Makefile
80
81fileman.o: fileman.c
82rltest.o: rltest.c
83rl.o: rl.c
84rlversion.o: rlversion.c
85histexamp.o: histexamp.c
86
87fileman.o: $(top_srcdir)/readline.h
88rltest.o: $(top_srcdir)/readline.h
89rl.o: $(top_srcdir)/readline.h
90rlversion.o: $(top_srcdir)/readline.h
91histexamp.o: $(top_srcdir)/history.h
92
93# Stuff for Per Bothner's `rlfe' program
94 
95rlfe: rlfe.o $(READLINE_LIB) $(HISTORY_LIB)
96        $(CC) $(LDFLAGS) -o $@ rlfe.o -lreadline -lhistory ${TERMCAP_LIB}
97
98rlfe.o: rlfe.c
99
100rlfe.o: $(top_srcdir)/readline.h
101rlfe.o: $(top_srcdir)/history.h
Note: See TracBrowser for help on using the repository browser.