1 ## Process this file with automake to produce Makefile.in
2 # Makefile for library files used by GNU CVS.
4 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
6 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
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)
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.
19 noinst_LIBRARIES = libcvs.a
21 # Should look into unifying regular expression matching in CVS
22 # with the diff library (perhaps to have the caller, CVS, do the
30 ## Because @LIBOBJS@ is included below and AC_LIBOBJ is sometimes called on
31 ## these files from configure.in, automake automatically knows about many of
32 ## the *.c files in this directory.
38 ## Zero some variables so Automake will allow us to use += on them.
42 MAINTAINERCLEANFILES =
56 ## begin gnulib module alloca
59 libcvs_a_LIBADD += @ALLOCA@
60 ## end gnulib module alloca
62 ## begin gnulib module alloca-opt
64 BUILT_SOURCES += $(ALLOCA_H)
65 EXTRA_DIST += alloca_.h
67 # We need the following in order to create <alloca.h> when the system
68 # doesn't have one that works with the given compiler.
70 cp $(srcdir)/alloca_.h $@-t
72 MOSTLYCLEANFILES += alloca.h alloca.h-t
74 ## end gnulib module alloca-opt
76 ## begin gnulib module allocsa
78 libcvs_a_SOURCES += allocsa.h allocsa.c
79 EXTRA_DIST += allocsa.valgrind
81 ## end gnulib module allocsa
83 ## begin gnulib module cycle-check
85 libcvs_a_SOURCES += cycle-check.c cycle-check.h dev-ino.h
87 ## end gnulib module cycle-check
89 ## begin gnulib module dirname
91 libcvs_a_SOURCES += basename.c stripslash.c
93 ## end gnulib module dirname
95 ## For GNULIB's error module.
97 ## This module isn't fully imported since GNULIB's error.c would conflict with
98 ## src/error.c (which knows how to send error messages over the network). We
99 ## don't compile error.c into libcvs on purpose. It can get compiled later as
100 ## part of the getdate test program,
101 libcvs_a_SOURCES += error.h
103 ## begin gnulib module exit
105 libcvs_a_SOURCES += exit.h
107 ## end gnulib module exit
109 ## begin gnulib module fnmatch
111 BUILT_SOURCES += $(FNMATCH_H)
112 EXTRA_DIST += fnmatch_.h fnmatch_loop.c
114 # We need the following in order to create <fnmatch.h> when the system
115 # doesn't have one that supports the required API.
116 fnmatch.h: fnmatch_.h
117 cp $(srcdir)/fnmatch_.h $@-t
119 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
121 ## end gnulib module fnmatch
123 ## begin gnulib module getaddrinfo
125 libcvs_a_SOURCES += getaddrinfo.h
127 ## end gnulib module getaddrinfo
129 ## begin gnulib module getdate
131 ## CVS test scripts for getdate.
132 TESTS += test-getdate.sh
133 MOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff
134 DISTCLEANFILES += getdate.log getdate.log~
135 # Program required by test-getdate.sh for testing getdate.y.
136 check_PROGRAMS += getdate
139 getdate_CPPFLAGS = -DTEST
141 $(noinst_LIBRARIES) \
142 $(LIB_CLOCK_GETTIME) \
145 BUILT_SOURCES += getdate.c
146 MAINTAINERCLEANFILES += getdate.c
147 EXTRA_DIST += getdate.c
149 ## end gnulib module getdate
151 ## begin gnulib module getndelim2
153 EXTRA_DIST += getndelim2.h getndelim2.c
155 ## end gnulib module getndelim2
157 ## begin gnulib module getnline
159 libcvs_a_SOURCES += getnline.h getnline.c
161 ## end gnulib module getnline
163 ## begin gnulib module getopt
165 BUILT_SOURCES += $(GETOPT_H)
166 EXTRA_DIST += getopt_.h getopt_int.h
168 # We need the following in order to create <getopt.h> when the system
169 # doesn't have one that works with the given compiler.
171 cp $(srcdir)/getopt_.h $@-t
173 MOSTLYCLEANFILES += getopt.h getopt.h-t
175 ## end gnulib module getopt
177 ## begin gnulib module gettext-h
179 libcvs_a_SOURCES += gettext.h
181 ## end gnulib module gettext-h
183 ## begin gnulib module glob
185 BUILT_SOURCES += $(GLOB_H)
187 # We need the following in order to create an <getopt.h> when the system
188 # doesn't have one that works with the given compiler.
189 all-local $(libcvs_a_OBJECTS): $(GLOB_H)
191 cp $(srcdir)/glob_.h $@-t
193 MOSTLYCLEANFILES += glob.h glob.h-t
195 ## end gnulib module glob.c
197 ## begin gnulib module mbuiter
199 libcvs_a_SOURCES += mbuiter.h
201 ## end gnulib module mbuiter
203 ## begin gnulib module minmax
205 libcvs_a_SOURCES += minmax.h
207 ## end gnulib module minmax
209 ## begin gnulib module setenv
211 libcvs_a_SOURCES += setenv.h
213 ## end gnulib module setenv
215 ## begin gnulib module size_max
217 libcvs_a_SOURCES += size_max.h
219 ## end gnulib module size_max
221 ## begin gnulib module stdbool
223 BUILT_SOURCES += $(STDBOOL_H)
224 EXTRA_DIST += stdbool_.h
226 # We need the following in order to create <stdbool.h> when the system
227 # doesn't have one that works.
228 stdbool.h: stdbool_.h
229 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
230 < $(srcdir)/stdbool_.h > $@-t
232 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
234 ## end gnulib module stdbool
236 ## begin gnulib module stdint
238 BUILT_SOURCES += $(STDINT_H)
239 EXTRA_DIST += stdint_.h
241 # We need the following in order to create <stdint.h> when the system
242 # doesn't have one that works with the given compiler.
244 sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t
246 MOSTLYCLEANFILES += stdint.h stdint.h-t
248 ## end gnulib module stdint
250 ## begin gnulib module strcase
252 libcvs_a_SOURCES += strcase.h
254 ## end gnulib module strcase
256 ## begin gnulib module strnlen1
258 libcvs_a_SOURCES += strnlen1.h strnlen1.c
260 ## end gnulib module strnlen1
262 ## begin gnulib module strstr
264 libcvs_a_SOURCES += strstr.h
266 ## end gnulib module strstr
268 ## begin gnulib module time_r
270 libcvs_a_SOURCES += time_r.h
272 ## end gnulib module time_r
274 ## begin gnulib module vasnprintf
276 libcvs_a_SOURCES += printf-args.h printf-parse.h vasnprintf.h
278 ## end gnulib module vasnprintf
280 ## begin gnulib module vasprintf
282 libcvs_a_SOURCES += vasprintf.h
284 ## end gnulib module vasprintf
286 ## begin gnulib module xalloc-die
288 libcvs_a_SOURCES += xalloc-die.c
290 ## end gnulib module xalloc-die
292 ## begin gnulib module xgethostname
294 libcvs_a_SOURCES += xgethostname.h xgethostname.c
296 ## end gnulib module xgethostname
298 ## begin gnulib module xreadlink
300 libcvs_a_SOURCES += xreadlink.h xreadlink.c
302 ## end gnulib module xreadlink
304 ## begin gnulib module xsize
306 libcvs_a_SOURCES += xsize.h
308 ## end gnulib module xsize
310 # Until Automake gets its act together
314 # for backwards compatibility with the old makefiles
315 realclean: maintainer-clean