]> git.ipfire.org Git - thirdparty/bash.git/blob - lib/tilde/Makefile.in
commit bash-20080814 snapshot
[thirdparty/bash.git] / lib / tilde / Makefile.in
1 ## -*- text -*- ####################################################
2 # #
3 # Makefile for the GNU Tilde Library. #
4 # #
5 ####################################################################
6
7 # Copyright (C) 1996-2008 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 3 of the License, or
12 # (at your option) 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, see <http://www.gnu.org/licenses/>.
21
22 srcdir = @srcdir@
23 VPATH = .:@srcdir@
24 topdir = @top_srcdir@
25 BUILD_DIR = @BUILD_DIR@
26
27 INSTALL = @INSTALL@
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@
29 INSTALL_DATA = @INSTALL_DATA@
30
31 CC = @CC@
32 RANLIB = @RANLIB@
33 AR = @AR@
34 ARFLAGS = @ARFLAGS@
35 RM = rm
36 CP = cp
37 MV = mv
38
39 SHELL = @MAKE_SHELL@
40
41 PROFILE_FLAGS = @PROFILE_FLAGS@
42
43 CFLAGS = @CFLAGS@
44 LOCAL_CFLAGS = @LOCAL_CFLAGS@
45 CPPFLAGS = @CPPFLAGS@
46 LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
47
48 DEFS = @DEFS@
49 LOCAL_DEFS = @LOCAL_DEFS@
50
51 BASHINCDIR = ${topdir}/include
52
53 INCLUDES = -I. -I../.. -I$(topdir) -I${BASHINCDIR} -I$(topdir)/lib
54
55 CCFLAGS = $(PROFILE_FLAGS) $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) \
56 ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
57
58 .c.o:
59 $(CC) -c $(CCFLAGS) $<
60
61 # The name of the library target.
62 LIBRARY_NAME = libtilde.a
63
64 # The C code source files for this library.
65 CSOURCES = $(srcdir)/tilde.c
66
67 # The header files for this library.
68 HSOURCES = $(srcdir)/tilde.h
69
70 OBJECTS = tilde.o
71
72 # The texinfo files which document this library.
73 DOCSOURCE = doc/tilde.texi
74 DOCOBJECT = doc/tilde.dvi
75 DOCSUPPORT = doc/Makefile
76 DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
77
78 SUPPORT = Makefile ChangeLog $(DOCSUPPORT)
79
80 SOURCES = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
81
82 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
83
84 ######################################################################
85
86 all: $(LIBRARY_NAME)
87
88 $(LIBRARY_NAME): $(OBJECTS)
89 $(RM) -f $@
90 $(AR) $(ARFLAGS) $@ $(OBJECTS)
91 -test -n "$(RANLIB)" && $(RANLIB) $@
92
93 documentation: force
94 -(cd doc; $(MAKE) $(MFLAGS))
95
96 force:
97
98 # The rule for 'includes' is written funny so that the if statement
99 # always returns TRUE unless there really was an error installing the
100 # include files.
101 install:
102 $(INSTALL_DATA) -c -m 644 $(LIBRARY_NAME) $(libdir)/$(LIBRARY_NAME)
103 -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/$(LIBRARY_NAME)
104
105 clean:
106 $(RM) -f $(OBJECTS) $(LIBRARY_NAME)
107 -( cd doc && $(MAKE) $(MFLAGS) $@ )
108
109 realclean distclean maintainer-clean: clean
110 -( cd doc && $(MAKE) $(MFLAGS) $@ )
111 $(RM) -f Makefile
112
113 mostlyclean: clean
114 -( cd doc && $(MAKE) $(MFLAGS) $@ )
115
116 ######################################################################
117 # #
118 # Dependencies for the object files which make up this library. #
119 # #
120 ######################################################################
121
122 tilde.o: tilde.h $(BASHINCDIR)/ansi_stdlib.h
123 tilde.o: $(BUILD_DIR)/config.h
124
125 # Rules for deficient makes, like SunOS and Solaris
126 tilde.o: tilde.c