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