home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / termcap-1.2-src.lha / src / build / termcap-1.2 / Makefile < prev   
Encoding:
Makefile  |  1994-02-24  |  3.4 KB  |  120 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU termcap library.
  3. # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  4.  
  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 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = /ISO/termcap/termcap-1.2-amiga
  22. VPATH = /ISO/termcap/termcap-1.2-amiga
  23.  
  24. CC = gcc
  25.  
  26. # If you don't have a BSD or GNU install program, use cp.
  27. INSTALL = /bin/install -c
  28. INSTALL_DATA = $(INSTALL) -m 644
  29.  
  30. MAKEINFO = makeinfo
  31.  
  32. # Things you might add to DEFS:
  33. # -DHAVE_STRING_H    If you have memcpy instead of bcopy.
  34. # -DNO_ARG_ARRAY    If you can't take the address of the first of
  35. #            a group of arguments and treat it as an array.
  36. #            We always define this, because it's not a big loss
  37. #            and can't be detected when cross-autoconfiguring.
  38.  
  39. DEFS =  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DNO_ARG_ARRAY
  40.  
  41. CFLAGS = -O2
  42.  
  43. prefix = /gnu
  44. exec_prefix = $(prefix)
  45.  
  46. # Directory in which to install libtermcap.a.
  47. libdir = $(exec_prefix)/lib
  48.  
  49. # Directory in which to install termcap.h.
  50. includedir = $(prefix)/include
  51.  
  52. # Directory in which to optionally also install termcap.h,
  53. # so compilers besides gcc can find it by default.
  54. # If it is empty or not defined, termcap.h will only be installed in
  55. # includedir. 
  56. oldincludedir = /gnu/include
  57.  
  58. # Directory in which to install the documentation info files.
  59. infodir = $(prefix)/info
  60.  
  61. #### End of system configuration section. ####
  62.  
  63. SHELL = /bin/sh
  64.  
  65. SRCS = termcap.c tparam.c version.c
  66. OBJS = termcap.o tparam.o version.o
  67. HDRS = termcap.h
  68. DISTFILES = $(SRCS) $(HDRS) ChangeLog COPYING README INSTALL NEWS \
  69. termcap.texi termcap.info* \
  70. texinfo.tex Makefile.in configure configure.in
  71.  
  72. all:    libtermcap.a termcap.info
  73.  
  74. .c.o:
  75.     $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
  76.  
  77. install: all
  78.     $(INSTALL_DATA) libtermcap.a $(libdir)/libtermcap.a
  79.     -ranlib $(libdir)/libtermcap.a
  80.     test -d $(includedir) || mkdir $(includedir)
  81.     cd $(srcdir); $(INSTALL_DATA) termcap.h $(includedir)/termcap.h
  82.     -cd $(srcdir); test -z "$(oldincludedir)" || \
  83.       $(INSTALL_DATA) termcap.h $(oldincludedir)/termcap.h
  84.     cd $(srcdir); for f in termcap.info*; \
  85.     do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  86.  
  87. uninstall:
  88.     rm -f $(libdir)/libtermcap.a $(includedir)/termcap.h
  89.     test -z "$(oldincludedir)" || rm -f $(oldincludedir)/termcap.h
  90.     rm -f $(infodir)/termcap.info*
  91.  
  92. libtermcap.a: $(OBJS)
  93.     ar rc $@ $(OBJS)
  94.     -ranlib $@
  95.  
  96. termcap.info: termcap.texi
  97.     $(MAKEINFO) $(srcdir)/termcap.texi --output=$(srcdir)/termcap.info
  98.  
  99. TAGS:    $(SRCS)
  100.     etags $(SRCS)
  101.  
  102. clean:
  103.     rm -f *.a *.o core
  104.  
  105. mostlyclean: clean
  106.  
  107. distclean: clean
  108.     rm -f Makefile config.status
  109.  
  110. realclean: distclean
  111.     rm -f TAGS *.info*
  112.  
  113. dist: $(DISTFILES)
  114.     echo termcap-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
  115.     rm -rf `cat .fname`
  116.     mkdir `cat .fname`
  117.     ln $(DISTFILES) `cat .fname`
  118.     tar chzf `cat .fname`.tar.z `cat .fname`
  119.     rm -rf `cat .fname` .fname
  120.