]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libreadline/examples/Makefile.in
This commit was generated by cvs2svn to compensate for changes in r102729,
[FreeBSD/FreeBSD.git] / contrib / libreadline / examples / Makefile.in
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.
19 RL_LIBRARY_VERSION = @LIBVERSION@
20
21 SHELL = @MAKE_SHELL@
22 RM = rm -f
23
24 srcdir = @srcdir@
25 VPATH = .:@srcdir@
26 top_srcdir = @top_srcdir@
27 BUILD_DIR = .
28
29 DEFS = @DEFS@
30 CC = @CC@
31 CFLAGS = @CFLAGS@
32 LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
33 CPPFLAGS = @CPPFLAGS@
34
35 INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
36
37 CCFLAGS  = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
38 LDFLAGS = -g -L..
39
40 READLINE_LIB = ../libreadline.a
41 HISTORY_LIB = ../libhistory.a
42
43 TERMCAP_LIB = @TERMCAP_LIB@
44
45 .c.o:
46         ${RM} $@
47         $(CC) $(CCFLAGS) -c $<
48
49 EXECUTABLES = fileman rltest rl rlversion histexamp
50 OBJECTS = fileman.o rltest.o rl.o rlversion.o histexamp.o
51
52 all: $(EXECUTABLES)
53 everything: all rlfe
54
55 rl: rl.o
56         $(CC) $(LDFLAGS) -o $@ rl.o -lreadline $(TERMCAP_LIB)
57
58 fileman: fileman.o
59         $(CC) $(LDFLAGS) -o $@ fileman.o -lreadline $(TERMCAP_LIB)
60
61 rltest: rltest.o
62         $(CC) $(LDFLAGS) -o $@ rltest.o -lreadline $(TERMCAP_LIB)
63
64 rlversion: rlversion.o $(READLINE_LIB)
65         $(CC) $(LDFLAGS) -o $@ rlversion.o -lreadline $(TERMCAP_LIB)
66
67 histexamp: histexamp.o $(HISTORY_LIB)
68         $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
69
70 clean mostlyclean:
71         $(RM) $(OBJECTS)
72         $(RM) $(EXECUTABLES) *.exe
73         $(RM) rlfe.o rlfe
74
75 distclean maintainer-clean: clean
76         $(RM) Makefile
77
78 fileman.o: fileman.c
79 rltest.o: rltest.c
80 rl.o: rl.c
81 rlversion.o: rlversion.c
82 histexamp.o: histexamp.c
83
84 fileman.o: $(top_srcdir)/readline.h
85 rltest.o: $(top_srcdir)/readline.h
86 rl.o: $(top_srcdir)/readline.h
87 rlversion.o: $(top_srcdir)/readline.h
88 histexamp.o: $(top_srcdir)/history.h
89
90 # Stuff for Per Bothner's `rlfe' program
91  
92 rlfe: rlfe.o $(READLINE_LIB) $(HISTORY_LIB)
93         $(CC) $(LDFLAGS) -o $@ rlfe.o -lreadline -lhistory ${TERMCAP_LIB}
94
95 rlfe.o: rlfe.c
96
97 rlfe.o: $(top_srcdir)/readline.h
98 rlfe.o: $(top_srcdir)/history.h