]> git.ipfire.org Git - thirdparty/bash.git/blob - lib/tilde/Makefile.in
Imported from ../bash-2.04.tar.gz.
[thirdparty/bash.git] / lib / tilde / Makefile.in
1 ## -*- text -*- ####################################################
2 # #
3 # Makefile for the GNU Tilde Library. #
4 # #
5 ####################################################################
6
7 # Copyright (C) 1996 Free Software Foundation, Inc.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
22
23 srcdir = @srcdir@
24 VPATH = .:@srcdir@
25 topdir = @top_srcdir@
26 BUILD_DIR = @BUILD_DIR@
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31
32 CC = @CC@
33 RANLIB = @RANLIB@
34 AR = @AR@
35 ARFLAGS = @ARFLAGS@
36 RM = rm
37 CP = cp
38 MV = mv
39
40 SHELL = @MAKE_SHELL@
41
42 CFLAGS = @CFLAGS@
43 LOCAL_CFLAGS = @LOCAL_CFLAGS@
44 CPPFLAGS = @CPPFLAGS@
45 LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
46
47 DEFS = @DEFS@
48 LOCAL_DEFS = @LOCAL_DEFS@
49
50 BASHINCDIR = ${topdir}/include
51
52 INCLUDES = -I. -I../.. -I$(topdir) -I${BASHINCDIR} -I$(topdir)/lib
53
54 CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
55
56 .c.o:
57 $(CC) -c $(CCFLAGS) $<
58
59 # The name of the library target.
60 LIBRARY_NAME = libtilde.a
61
62 # The C code source files for this library.
63 CSOURCES = $(srcdir)/tilde.c
64
65 # The header files for this library.
66 HSOURCES = $(srcdir)/tilde.h
67
68 OBJECTS = tilde.o
69
70 # The texinfo files which document this library.
71 DOCSOURCE = doc/tilde.texi
72 DOCOBJECT = doc/tilde.dvi
73 DOCSUPPORT = doc/Makefile
74 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
75
76 SUPPORT = Makefile ChangeLog $(DOCSUPPORT)
77
78 SOURCES = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
79
80 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
81
82 ######################################################################
83
84 all: $(LIBRARY_NAME)
85
86 $(LIBRARY_NAME): $(OBJECTS)
87 $(RM) -f $@
88 $(AR) $(ARFLAGS) $@ $(OBJECTS)
89 -test -n "$(RANLIB)" && $(RANLIB) $@
90
91 documentation: force
92 -(cd doc; $(MAKE) $(MFLAGS))
93
94 force:
95
96 # The rule for 'includes' is written funny so that the if statement
97 # always returns TRUE unless there really was an error installing the
98 # include files.
99 install:
100 $(INSTALL_DATA) -c -m 644 $(LIBRARY_NAME) $(bindir)/$(LIBRARY_NAME)
101 -test -n "$(RANLIB)" && $(RANLIB) -t $(bindir)/$(LIBRARY_NAME)
102
103 clean:
104 $(RM) -f $(OBJECTS) $(LIBRARY_NAME)
105 -( cd doc && $(MAKE) $(MFLAGS) $@ )
106
107 realclean distclean maintainer-clean: clean
108 -( cd doc && $(MAKE) $(MFLAGS) $@ )
109 $(RM) -f Makefile
110
111 mostlyclean: clean
112 -( cd doc && $(MAKE) $(MFLAGS) $@ )
113
114 ######################################################################
115 # #
116 # Dependencies for the object files which make up this library. #
117 # #
118 ######################################################################
119
120 tilde.o: tilde.h $(BASHINCDIR)/ansi_stdlib.h
121 tilde.o: $(BUILD_DIR)/config.h
122
123 # Rules for deficient makes, like SunOS and Solaris
124 tilde.o: tilde.c