#
|
#
|
# This is the Makefile for the readline examples subdirectory.
|
# This is the Makefile for the readline examples subdirectory.
|
#
|
#
|
# Copyright (C) 1994 Free Software Foundation, Inc.
|
# Copyright (C) 1994 Free Software Foundation, Inc.
|
|
|
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 2, or (at your option)
|
# the Free Software Foundation; either version 2, or (at your option)
|
# any later version.
|
# any later version.
|
|
|
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
|
|
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
RL_LIBRARY_VERSION = @LIBVERSION@
|
RL_LIBRARY_VERSION = @LIBVERSION@
|
|
|
SHELL = @MAKE_SHELL@
|
SHELL = @MAKE_SHELL@
|
RM = rm -f
|
RM = rm -f
|
|
|
srcdir = @srcdir@
|
srcdir = @srcdir@
|
VPATH = .:@srcdir@
|
VPATH = .:@srcdir@
|
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
BUILD_DIR = .
|
BUILD_DIR = .
|
|
|
# Support an alternate destination root directory for package building
|
# Support an alternate destination root directory for package building
|
DESTDIR =
|
DESTDIR =
|
|
|
DEFS = @DEFS@
|
DEFS = @DEFS@
|
CC = @CC@
|
CC = @CC@
|
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
|
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
|
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
|
|
INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
|
INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
|
|
|
CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
|
CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
|
LDFLAGS = -g -L.. @LDFLAGS@
|
LDFLAGS = -g -L.. @LDFLAGS@
|
|
|
PURIFY = @PURIFY@
|
PURIFY = @PURIFY@
|
|
|
READLINE_LIB = ../libreadline.a
|
READLINE_LIB = ../libreadline.a
|
HISTORY_LIB = ../libhistory.a
|
HISTORY_LIB = ../libhistory.a
|
|
|
TERMCAP_LIB = @TERMCAP_LIB@
|
TERMCAP_LIB = @TERMCAP_LIB@
|
|
|
.c.o:
|
.c.o:
|
${RM} $@
|
${RM} $@
|
$(CC) $(CCFLAGS) -c $<
|
$(CC) $(CCFLAGS) -c $<
|
|
|
EXECUTABLES = fileman rltest rl rlcat rlversion histexamp
|
EXECUTABLES = fileman rltest rl rlcat rlversion histexamp
|
OBJECTS = fileman.o rltest.o rl.o rlcat.o rlversion.o histexamp.o
|
OBJECTS = fileman.o rltest.o rl.o rlcat.o rlversion.o histexamp.o
|
|
|
all: $(EXECUTABLES)
|
all: $(EXECUTABLES)
|
everything: all
|
everything: all
|
|
|
rl: rl.o $(READLINE_LIB)
|
rl: rl.o $(READLINE_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
rlcat: rlcat.o $(READLINE_LIB)
|
rlcat: rlcat.o $(READLINE_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
fileman: fileman.o $(READLINE_LIB)
|
fileman: fileman.o $(READLINE_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
rltest: rltest.o $(READLINE_LIB)
|
rltest: rltest.o $(READLINE_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rltest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rltest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
rlptytest: rlptytest.o $(READLINE_LIB)
|
rlptytest: rlptytest.o $(READLINE_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlptytest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlptytest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
rlversion: rlversion.o $(READLINE_LIB)
|
rlversion: rlversion.o $(READLINE_LIB)
|
$(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
|
$(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
histexamp: histexamp.o $(HISTORY_LIB)
|
histexamp: histexamp.o $(HISTORY_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
|
|
|
clean mostlyclean:
|
clean mostlyclean:
|
$(RM) $(OBJECTS)
|
$(RM) $(OBJECTS)
|
$(RM) $(EXECUTABLES) *.exe
|
$(RM) $(EXECUTABLES) *.exe
|
|
|
distclean maintainer-clean: clean
|
distclean maintainer-clean: clean
|
$(RM) Makefile
|
$(RM) Makefile
|
|
|
fileman.o: fileman.c
|
fileman.o: fileman.c
|
rltest.o: rltest.c
|
rltest.o: rltest.c
|
rl.o: rl.c
|
rl.o: rl.c
|
rlversion.o: rlversion.c
|
rlversion.o: rlversion.c
|
histexamp.o: histexamp.c
|
histexamp.o: histexamp.c
|
rlcat.o: rlcat.c
|
rlcat.o: rlcat.c
|
rlptytest.o: rlptytest.c
|
rlptytest.o: rlptytest.c
|
|
|
fileman.o: $(top_srcdir)/readline.h
|
fileman.o: $(top_srcdir)/readline.h
|
rltest.o: $(top_srcdir)/readline.h
|
rltest.o: $(top_srcdir)/readline.h
|
rl.o: $(top_srcdir)/readline.h
|
rl.o: $(top_srcdir)/readline.h
|
rlversion.o: $(top_srcdir)/readline.h
|
rlversion.o: $(top_srcdir)/readline.h
|
histexamp.o: $(top_srcdir)/history.h
|
histexamp.o: $(top_srcdir)/history.h
|
rlcat.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
rlcat.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
rlptytest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
rlptytest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
|
|