1 # $MirOS: src/gnu/usr.bin/cvs/lib/Makefile.am,v 1.7 2011/06/11 03:58:06 tg Exp $
2 ## Process this file with automake to produce Makefile.in
3 # Makefile for library files used by GNU CVS.
5 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
7 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2, or (at your option)
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 noinst_LIBRARIES = libcvs.a
22 # Should look into unifying regular expression matching in CVS
23 # with the diff library (perhaps to have the caller, CVS, do the
32 ## Because @LIBOBJS@ is included below and AC_LIBOBJ is sometimes called on
33 ## these files from configure.in, automake automatically knows about many of
34 ## the *.c files in this directory.
40 ## Zero some variables so Automake will allow us to use += on them.
44 MAINTAINERCLEANFILES =
58 ## begin gnulib module alloca
61 libcvs_a_LIBADD += @ALLOCA@
62 ## end gnulib module alloca
64 ## begin gnulib module alloca-opt
66 BUILT_SOURCES += $(ALLOCA_H)
67 EXTRA_DIST += alloca_.h
69 # We need the following in order to create <alloca.h> when the system
70 # doesn't have one that works with the given compiler.
72 cp $(srcdir)/alloca_.h $@-t
74 MOSTLYCLEANFILES += alloca.h alloca.h-t
76 ## end gnulib module alloca-opt
78 ## begin gnulib module allocsa
80 libcvs_a_SOURCES += allocsa.h allocsa.c
81 EXTRA_DIST += allocsa.valgrind
83 ## end gnulib module allocsa
85 ## begin gnulib module cycle-check
87 libcvs_a_SOURCES += cycle-check.c cycle-check.h dev-ino.h
89 ## end gnulib module cycle-check
91 ## begin gnulib module dirname
93 libcvs_a_SOURCES += basename.c stripslash.c
95 ## end gnulib module dirname
97 ## For GNULIB's error module.
99 ## This module isn't fully imported since GNULIB's error.c would conflict with
100 ## src/error.c (which knows how to send error messages over the network). We
101 ## don't compile error.c into libcvs on purpose. It can get compiled later as
102 ## part of the getdate test program,
103 libcvs_a_SOURCES += error.h
105 ## begin gnulib module exit
107 libcvs_a_SOURCES += exit.h
109 ## end gnulib module exit
111 ## begin gnulib module fnmatch
113 BUILT_SOURCES += $(FNMATCH_H)
114 EXTRA_DIST += fnmatch_.h fnmatch_loop.c
116 # We need the following in order to create <fnmatch.h> when the system
117 # doesn't have one that supports the required API.
118 fnmatch.h: fnmatch_.h
119 cp $(srcdir)/fnmatch_.h $@-t
121 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
123 ## end gnulib module fnmatch
125 ## begin gnulib module getaddrinfo
127 libcvs_a_SOURCES += getaddrinfo.h
129 ## end gnulib module getaddrinfo
131 ## begin gnulib module getdate
133 ## CVS test scripts for getdate.
134 TESTS += test-getdate.sh
135 MOSTLYCLEANFILES += getdate-expected getdate-got getdate.diff
136 DISTCLEANFILES += getdate.log
137 # Program required by test-getdate.sh for testing getdate.y.
138 check_PROGRAMS += getdate
142 ## This source file was added only for the getdate test program when compiled
143 ## with GNULIB's error.c.
146 getdate_CPPFLAGS = -DTEST
148 $(noinst_LIBRARIES) \
149 $(LIB_CLOCK_GETTIME) \
152 BUILT_SOURCES += getdate.c
153 MAINTAINERCLEANFILES += getdate.c
154 EXTRA_DIST += getdate.c
156 ## end gnulib module getdate
158 ## begin gnulib module getndelim2
160 EXTRA_DIST += getndelim2.h getndelim2.c
162 ## end gnulib module getndelim2
164 ## begin gnulib module getnline
166 libcvs_a_SOURCES += getnline.h getnline.c
168 ## end gnulib module getnline
170 ## begin gnulib module gettext-h
172 libcvs_a_SOURCES += gettext.h
174 ## end gnulib module gettext-h
176 ## begin gnulib module mbuiter
178 libcvs_a_SOURCES += mbuiter.h
180 ## end gnulib module mbuiter
182 libcvs_a_SOURCES += minmax.h
184 ## end gnulib module minmax
186 ## begin gnulib module setenv
188 libcvs_a_SOURCES += setenv.h
190 ## end gnulib module setenv
192 ## begin gnulib module size_max
194 libcvs_a_SOURCES += size_max.h
196 ## end gnulib module size_max
198 ## begin gnulib module stdbool
200 BUILT_SOURCES += $(STDBOOL_H)
201 EXTRA_DIST += stdbool_.h
203 # We need the following in order to create <stdbool.h> when the system
204 # doesn't have one that works.
205 stdbool.h: stdbool_.h
206 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
207 < $(srcdir)/stdbool_.h > $@-t
209 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
211 ## end gnulib module stdbool
213 ## begin gnulib module stdint
215 BUILT_SOURCES += $(STDINT_H)
216 EXTRA_DIST += stdint_.h
218 # We need the following in order to create <stdint.h> when the system
219 # doesn't have one that works with the given compiler.
221 sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t
223 MOSTLYCLEANFILES += stdint.h stdint.h-t
225 ## end gnulib module stdint
227 ## begin gnulib module strcase
229 libcvs_a_SOURCES += strcase.h
231 ## end gnulib module strcase
233 ## begin gnulib module strnlen1
235 libcvs_a_SOURCES += strnlen1.h strnlen1.c
237 ## end gnulib module strnlen1
239 ## begin gnulib module strstr
241 libcvs_a_SOURCES += strstr.h
243 ## end gnulib module strstr
245 ## begin gnulib module time_r
247 libcvs_a_SOURCES += time_r.h
249 ## end gnulib module time_r
251 ## begin gnulib module vasnprintf
253 libcvs_a_SOURCES += printf-args.h printf-parse.h vasnprintf.h
255 ## end gnulib module vasnprintf
257 ## begin gnulib module vasprintf
259 libcvs_a_SOURCES += vasprintf.h
261 ## end gnulib module vasprintf
263 ## begin gnulib module xalloc-die
265 libcvs_a_SOURCES += xalloc-die.c
267 ## end gnulib module xalloc-die
269 ## begin gnulib module xgethostname
271 libcvs_a_SOURCES += xgethostname.h xgethostname.c
273 ## end gnulib module xgethostname
275 ## begin gnulib module xreadlink
277 libcvs_a_SOURCES += xreadlink.h xreadlink.c
279 ## end gnulib module xreadlink
281 ## begin gnulib module xsize
283 libcvs_a_SOURCES += xsize.h
285 ## end gnulib module xsize
287 # for backwards compatibility with the old makefiles
288 realclean: maintainer-clean