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