~vcs-imports-ii/ddd/trunk

« back to all changes in this revision

Viewing changes to termcap/Makefile.in

  • Committer: zeller
  • Date: 1995-05-01 15:48:33 UTC
  • Revision ID: svn-v4:1d73a310-8f1f-0410-b01a-dab0232e19a9:trunk:50
Initial revision

Show diffs side-by-side

added added

removed removed

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