2 # This is the Makefile for the readline examples subdirectory.
4 # Copyright (C) 1994 Free Software Foundation, Inc.
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)
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.
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.
25 top_srcdir
= @top_srcdir@
31 LOCAL_CFLAGS
= @LOCAL_CFLAGS@
-DREADLINE_LIBRARY
34 INCLUDES
= -I
$(srcdir) -I
$(top_srcdir
) -I..
36 CCFLAGS
= $(DEFS
) $(LOCAL_CFLAGS
) $(CPPFLAGS
) $(INCLUDES
) $(CFLAGS
)
39 READLINE_LIB
= ..
/libreadline.a
40 HISTORY_LIB
= ..
/libhistory.a
42 TERMCAP_LIB
= @TERMCAP_LIB@
46 $(CC
) $(CCFLAGS
) -c
$<
48 EXECUTABLES
= fileman rltest rl rlversion
49 OBJECTS
= fileman.o rltest.o rl.o rlversion.o
54 $(CC
) $(LDFLAGS
) -o
$@ rl.o
-lreadline
$(TERMCAP_LIB
)
57 $(CC
) $(LDFLAGS
) -o
$@ fileman.o
-lreadline
$(TERMCAP_LIB
)
60 $(CC
) $(LDFLAGS
) -o
$@ rltest.o
-lreadline
$(TERMCAP_LIB
)
62 rlversion
: rlversion.o
$(READLINE_LIB
)
63 $(CC
) $(LDFLAGS
) -o
$@ rlversion.o
-lreadline
$(TERMCAP_LIB
)
67 $(RM
) $(EXECUTABLES
) *.exe
69 distclean maintainer-clean
: clean
75 rlversion.o
: rlversion.c
77 # Stuff for Per Bothner's `rlfe' program
79 rlfe
: rlfe.o
$(READLINE_LIB
) $(HISTORY_LIB
)
80 $(CC
) $(LDFLAGS
) -o
$@ rlfe.o
-lreadline
-lhistory
${TERMCAP_LIB}
84 rlfe.o
: $(top_srcdir
)/readline.h
85 rlfe.o
: $(top_srcdir
)/history.h