Makefile.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #
  2. # This is the Makefile for the readline examples subdirectory.
  3. #
  4. # Copyright (C) 1994,2008,2009 Free Software Foundation, Inc.
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. RL_LIBRARY_VERSION = @LIBVERSION@
  16. SHELL = @MAKE_SHELL@
  17. RM = rm -f
  18. prefix = @prefix@
  19. exec_prefix = @exec_prefix@
  20. datarootdir = @datarootdir@
  21. bindir = @bindir@
  22. srcdir = @srcdir@
  23. datadir = @datadir@
  24. VPATH = @srcdir@
  25. top_srcdir = @top_srcdir@
  26. #BUILD_DIR = .
  27. BUILD_DIR = @BUILD_DIR@
  28. installdir = $(datadir)/readline
  29. INSTALL = @INSTALL@
  30. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  31. INSTALL_DATA = @INSTALL_DATA@
  32. EXEEXT = @EXEEXT@
  33. OBJEXT = @OBJEXT@
  34. # Support an alternate destination root directory for package building
  35. DESTDIR =
  36. DEFS = @DEFS@
  37. CC = @CC@
  38. CFLAGS = @CFLAGS@
  39. LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
  40. CPPFLAGS = @CPPFLAGS@
  41. INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
  42. CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
  43. LDFLAGS = -g -L.. @LDFLAGS@
  44. PURIFY = @PURIFY@
  45. READLINE_LIB = ../libreadline.a
  46. HISTORY_LIB = ../libhistory.a
  47. TERMCAP_LIB = @TERMCAP_LIB@
  48. .c.o:
  49. ${RM} $@
  50. $(CC) $(CCFLAGS) -c $<
  51. SOURCES = excallback.c fileman.c histexamp.c manexamp.c rl-fgets.c rl.c \
  52. rlcat.c rlevent.c rlptytest.c rltest.c rlversion.c
  53. EXECUTABLES = fileman$(EXEEXT) rltest$(EXEEXT) rl$(EXEEXT) rlcat$(EXEEXT) \
  54. rlevent$(EXEEXT) rlversion$(EXEEXT) histexamp$(EXEEXT)
  55. OBJECTS = fileman.o rltest.o rl.o rlevent.o rlcat.o rlversion.o histexamp.o
  56. all: $(EXECUTABLES)
  57. everything: all
  58. check: rlversion$(EXEEXT)
  59. @echo Readline version: `rlversion$(EXEEXT)`
  60. installdirs:
  61. -$(SHELL) $(top_srcdir)/support/mkdirs $(DESTDIR)$(installdir)
  62. install: installdirs
  63. @for f in $(SOURCES); do \
  64. $(RM) $(DESTDIR)$(installdir)/$$f ; \
  65. $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(installdir) ; \
  66. done
  67. uninstall:
  68. @for f in $(SOURCES); do \
  69. $(RM) $(DESTDIR)$(installdir)/$$f ; \
  70. done
  71. -rmdir $(DESTDIR)$(installdir)
  72. rl$(EXEEXT): rl.o $(READLINE_LIB)
  73. $(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
  74. rlcat$(EXEEXT): rlcat.o $(READLINE_LIB)
  75. $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
  76. rlevent$(EXEEXT): rlevent.o $(READLINE_LIB)
  77. $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlevent.o $(READLINE_LIB) $(TERMCAP_LIB)
  78. fileman$(EXEEXT): fileman.o $(READLINE_LIB)
  79. $(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
  80. rltest$(EXEEXT): rltest.o $(READLINE_LIB)
  81. $(PURIFY) $(CC) $(LDFLAGS) -o $@ rltest.o $(READLINE_LIB) $(TERMCAP_LIB)
  82. rlptytest$(EXEEXT): rlptytest.o $(READLINE_LIB)
  83. $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlptytest.o $(READLINE_LIB) $(TERMCAP_LIB)
  84. rlversion$(EXEEXT): rlversion.o $(READLINE_LIB)
  85. $(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
  86. histexamp$(EXEEXT): histexamp.o $(HISTORY_LIB)
  87. $(PURIFY) $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
  88. clean mostlyclean:
  89. $(RM) $(OBJECTS)
  90. $(RM) $(EXECUTABLES) *.exe
  91. distclean maintainer-clean: clean
  92. $(RM) Makefile
  93. fileman.o: fileman.c
  94. rltest.o: rltest.c
  95. rl.o: rl.c
  96. rlversion.o: rlversion.c
  97. histexamp.o: histexamp.c
  98. rlcat.o: rlcat.c
  99. rlptytest.o: rlptytest.c
  100. fileman.o: $(top_srcdir)/readline.h
  101. rltest.o: $(top_srcdir)/readline.h
  102. rl.o: $(top_srcdir)/readline.h
  103. rlversion.o: $(top_srcdir)/readline.h
  104. histexamp.o: $(top_srcdir)/history.h
  105. rlcat.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
  106. rlptytest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h