freebsd-dev/contrib/libreadline/examples/Makefile.in

103 lines
2.9 KiB
Makefile
Raw Normal View History

#
2000-03-19 21:18:09 +00:00
# This is the Makefile for the readline examples subdirectory.
#
# Copyright (C) 1994 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
2001-04-11 02:33:07 +00:00
RL_LIBRARY_VERSION = @LIBVERSION@
2000-03-19 21:18:09 +00:00
1999-05-28 01:59:23 +00:00
SHELL = @MAKE_SHELL@
1998-04-28 06:22:20 +00:00
RM = rm -f
srcdir = @srcdir@
VPATH = .:@srcdir@
top_srcdir = @top_srcdir@
BUILD_DIR = .
2003-08-31 17:55:46 +00:00
# Support an alternate destination root directory for package building
DESTDIR =
DEFS = @DEFS@
CC = @CC@
CFLAGS = @CFLAGS@
2001-04-11 02:33:07 +00:00
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
CPPFLAGS = @CPPFLAGS@
1999-05-28 01:59:23 +00:00
INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
2003-08-31 17:55:46 +00:00
LDFLAGS = -g -L.. @LDFLAGS@
2006-03-27 22:47:12 +00:00
PURIFY = @PURIFY@
2000-03-19 21:18:09 +00:00
READLINE_LIB = ../libreadline.a
HISTORY_LIB = ../libhistory.a
1998-04-28 06:22:20 +00:00
TERMCAP_LIB = @TERMCAP_LIB@
.c.o:
1999-05-28 01:59:23 +00:00
${RM} $@
$(CC) $(CCFLAGS) -c $<
2003-08-31 17:55:46 +00:00
EXECUTABLES = fileman rltest rl rlcat rlversion histexamp
2004-10-18 07:02:42 +00:00
OBJECTS = fileman.o rltest.o rl.o rlcat.o rlversion.o histexamp.o
all: $(EXECUTABLES)
2006-03-27 22:47:12 +00:00
everything: all
2003-08-31 17:55:46 +00:00
rl: rl.o $(READLINE_LIB)
2006-03-27 22:47:12 +00:00
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
2003-08-31 17:55:46 +00:00
rlcat: rlcat.o $(READLINE_LIB)
2006-03-27 22:47:12 +00:00
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
2003-08-31 17:55:46 +00:00
fileman: fileman.o $(READLINE_LIB)
2006-03-27 22:47:12 +00:00
$(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
2003-08-31 17:55:46 +00:00
rltest: rltest.o $(READLINE_LIB)
2006-03-27 22:47:12 +00:00
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rltest.o $(READLINE_LIB) $(TERMCAP_LIB)
rlptytest: rlptytest.o $(READLINE_LIB)
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlptytest.o $(READLINE_LIB) $(TERMCAP_LIB)
1998-04-28 06:22:20 +00:00
2000-03-19 21:18:09 +00:00
rlversion: rlversion.o $(READLINE_LIB)
2006-03-27 22:47:12 +00:00
$(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
1999-05-28 01:59:23 +00:00
2001-04-11 02:33:07 +00:00
histexamp: histexamp.o $(HISTORY_LIB)
2006-03-27 22:47:12 +00:00
$(PURIFY) $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
2001-04-11 02:33:07 +00:00
1998-04-28 06:22:20 +00:00
clean mostlyclean:
$(RM) $(OBJECTS)
2000-03-19 21:18:09 +00:00
$(RM) $(EXECUTABLES) *.exe
1998-04-28 06:22:20 +00:00
distclean maintainer-clean: clean
$(RM) Makefile
1998-04-28 06:22:20 +00:00
fileman.o: fileman.c
rltest.o: rltest.c
rl.o: rl.c
1999-05-28 01:59:23 +00:00
rlversion.o: rlversion.c
2001-04-11 02:33:07 +00:00
histexamp.o: histexamp.c
2006-03-27 22:47:12 +00:00
rlcat.o: rlcat.c
rlptytest.o: rlptytest.c
2001-04-11 02:33:07 +00:00
fileman.o: $(top_srcdir)/readline.h
rltest.o: $(top_srcdir)/readline.h
rl.o: $(top_srcdir)/readline.h
rlversion.o: $(top_srcdir)/readline.h
histexamp.o: $(top_srcdir)/history.h
2006-03-27 22:47:12 +00:00
rlcat.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
rlptytest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h