1 | # This file is generated automatically. Do not edit!
|
---|
2 | # Makefile for GNU cpio library.
|
---|
3 |
|
---|
4 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
---|
5 |
|
---|
6 | ## This program is free software; you can redistribute it and/or modify
|
---|
7 | ## it under the terms of the GNU General Public License as published by
|
---|
8 | ## the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | ## any later version.
|
---|
10 |
|
---|
11 | ## This program is distributed in the hope that it will be useful,
|
---|
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | ## GNU General Public License for more details.
|
---|
15 |
|
---|
16 | ## You should have received a copy of the GNU General Public License
|
---|
17 | ## along with this program; if not, write to the Free Software
|
---|
18 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
19 | ## 02110-1301, USA.
|
---|
20 |
|
---|
21 | noinst_LIBRARIES = libcpio.a
|
---|
22 | noinst_HEADERS = system.h system-ioctl.h localedir.h rmt.h paxlib.h
|
---|
23 | libcpio_a_SOURCES = fatal.c rtapelib.c paxerror.c paxexit.c paxconvert.c paxnames.c
|
---|
24 |
|
---|
25 | EXTRA_DIST=Makefile.tmpl bcopy.c mkdir.c strdup.c strerror.c
|
---|
26 |
|
---|
27 | localedir = $(datadir)/locale
|
---|
28 |
|
---|
29 | DISTCLEANFILES = localedir.h
|
---|
30 | localedir.h : Makefile
|
---|
31 | echo '#define LOCALEDIR "$(localedir)"' >$@
|
---|
32 | echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
|
---|
33 | echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
|
---|
34 | echo "#endif" >> $@
|
---|
35 |
|
---|
36 | libcpio_a_LIBADD = $(LIBOBJS) $(ALLOCA)
|
---|
37 | libcpio_a_DEPENDENCIES = $(libcpio_a_LIBADD)
|
---|
38 |
|
---|
39 | rtapelib.o: localedir.h
|
---|
40 |
|
---|
41 | AM_CPPFLAGS =
|
---|
42 | BUILT_SOURCES =
|
---|
43 | MAINTAINERCLEANFILES =
|
---|
44 | MOSTLYCLEANFILES =
|
---|
45 | lib_OBJECTS = $(libcpio_a_OBJECTS)
|
---|
46 |
|
---|
47 | # gnulib modules
|
---|
48 |
|
---|
49 | # alloca
|
---|
50 |
|
---|
51 | # alloca-opt
|
---|
52 | BUILT_SOURCES += $(ALLOCA_H)
|
---|
53 | EXTRA_DIST += alloca_.h
|
---|
54 |
|
---|
55 | # We need the following in order to create <alloca.h> when the system
|
---|
56 | # doesn't have one that works with the given compiler.
|
---|
57 | alloca.h: alloca_.h
|
---|
58 | cp -f $(srcdir)/alloca_.h $@-t
|
---|
59 | mv -f $@-t $@
|
---|
60 | MOSTLYCLEANFILES += alloca.h alloca.h-t
|
---|
61 |
|
---|
62 | # allocsa
|
---|
63 | libcpio_a_SOURCES += allocsa.h allocsa.c
|
---|
64 | EXTRA_DIST += allocsa.valgrind
|
---|
65 |
|
---|
66 | # argmatch
|
---|
67 | EXTRA_DIST += argmatch.h
|
---|
68 |
|
---|
69 | # argp
|
---|
70 | libcpio_a_SOURCES += argp.h argp-ba.c argp-eexst.c \
|
---|
71 | argp-fmtstream.c argp-fmtstream.h argp-fs-xinl.c argp-help.c \
|
---|
72 | argp-namefrob.h argp-parse.c argp-pin.c argp-pv.c argp-pvh.c \
|
---|
73 | argp-xinl.c
|
---|
74 |
|
---|
75 | # chdir-long
|
---|
76 | EXTRA_DIST += chdir-long.h
|
---|
77 |
|
---|
78 | # chown
|
---|
79 |
|
---|
80 | # clock-time
|
---|
81 |
|
---|
82 | # close-stream
|
---|
83 | EXTRA_DIST += close-stream.h
|
---|
84 |
|
---|
85 | # closeout
|
---|
86 | EXTRA_DIST += closeout.h
|
---|
87 |
|
---|
88 | # d-ino
|
---|
89 |
|
---|
90 | # dirname
|
---|
91 | EXTRA_DIST += dirname.h
|
---|
92 |
|
---|
93 | # error
|
---|
94 |
|
---|
95 | # exit
|
---|
96 | libcpio_a_SOURCES += exit.h
|
---|
97 |
|
---|
98 | # exitfail
|
---|
99 | EXTRA_DIST += exitfail.h
|
---|
100 |
|
---|
101 | # extensions
|
---|
102 |
|
---|
103 | # fcntl
|
---|
104 | BUILT_SOURCES += $(FCNTL_H)
|
---|
105 | EXTRA_DIST += fcntl_.h
|
---|
106 |
|
---|
107 | # We need the following in order to create <fcntl.h> when the system
|
---|
108 | # doesn't have one that works with the given compiler.
|
---|
109 | fcntl.h: fcntl_.h
|
---|
110 | rm -f $@-t $@
|
---|
111 | sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \
|
---|
112 | < $(srcdir)/fcntl_.h > $@-t
|
---|
113 | mv $@-t $@
|
---|
114 | MOSTLYCLEANFILES += fcntl.h fcntl.h-t
|
---|
115 |
|
---|
116 | # fcntl-safer
|
---|
117 | EXTRA_DIST += fcntl-safer.h fcntl--.h
|
---|
118 |
|
---|
119 | # fileblocks
|
---|
120 |
|
---|
121 | # fnmatch
|
---|
122 | BUILT_SOURCES += $(FNMATCH_H)
|
---|
123 | EXTRA_DIST += fnmatch_.h fnmatch_loop.c
|
---|
124 |
|
---|
125 | # We need the following in order to create <fnmatch.h> when the system
|
---|
126 | # doesn't have one that supports the required API.
|
---|
127 | fnmatch.h: fnmatch_.h
|
---|
128 | cp -f $(srcdir)/fnmatch_.h $@-t
|
---|
129 | mv -f $@-t $@
|
---|
130 | MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
|
---|
131 |
|
---|
132 | # fnmatch-gnu
|
---|
133 |
|
---|
134 | # fpending
|
---|
135 | EXTRA_DIST += __fpending.h
|
---|
136 |
|
---|
137 | # full-write
|
---|
138 | libcpio_a_SOURCES += full-write.h full-write.c
|
---|
139 |
|
---|
140 | # getcwd
|
---|
141 | EXTRA_DIST += getcwd.h
|
---|
142 |
|
---|
143 | # getdate
|
---|
144 | libcpio_a_SOURCES += getdate.y
|
---|
145 | BUILT_SOURCES += getdate.c
|
---|
146 | MAINTAINERCLEANFILES += getdate.c
|
---|
147 | EXTRA_DIST += getdate.c getdate.h
|
---|
148 |
|
---|
149 | # getopt
|
---|
150 | BUILT_SOURCES += $(GETOPT_H)
|
---|
151 | EXTRA_DIST += getopt_.h getopt_int.h
|
---|
152 |
|
---|
153 | # We need the following in order to create <getopt.h> when the system
|
---|
154 | # doesn't have one that works with the given compiler.
|
---|
155 | getopt.h: getopt_.h
|
---|
156 | cp -f $(srcdir)/getopt_.h $@-t
|
---|
157 | mv -f $@-t $@
|
---|
158 | MOSTLYCLEANFILES += getopt.h getopt.h-t
|
---|
159 |
|
---|
160 | # gettext
|
---|
161 | # This is for those projects which use "gettextize --intl" to put a source-code
|
---|
162 | # copy of libintl into their package. In such projects, every Makefile.am needs
|
---|
163 | # -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
|
---|
164 | # For the Makefile.ams in other directories it is the maintainer's
|
---|
165 | # responsibility; for the one from gnulib we do it here.
|
---|
166 | # This option has no effect when the user disables NLS (because then the intl
|
---|
167 | # directory contains no libintl.h file) or when the project does not use
|
---|
168 | # "gettextize --intl".
|
---|
169 | AM_CPPFLAGS += -I$(top_builddir)/intl
|
---|
170 |
|
---|
171 | # gettext-h
|
---|
172 | libcpio_a_SOURCES += gettext.h
|
---|
173 |
|
---|
174 | # gettime
|
---|
175 |
|
---|
176 | # gettimeofday
|
---|
177 |
|
---|
178 | # hash
|
---|
179 | EXTRA_DIST += hash.h
|
---|
180 |
|
---|
181 | # havelib
|
---|
182 |
|
---|
183 | # intprops
|
---|
184 | EXTRA_DIST += intprops.h
|
---|
185 |
|
---|
186 | # inttostr
|
---|
187 | EXTRA_DIST += inttostr.c inttostr.h
|
---|
188 |
|
---|
189 | # inttypes
|
---|
190 | BUILT_SOURCES += $(INTTYPES_H)
|
---|
191 | EXTRA_DIST += inttypes_.h
|
---|
192 |
|
---|
193 | # We need the following in order to create <inttypes.h> when the system
|
---|
194 | # doesn't have one that works with the given compiler.
|
---|
195 | inttypes.h: inttypes_.h
|
---|
196 | rm -f $@-t $@
|
---|
197 | sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
|
---|
198 | -e 's|@''ABSOLUTE_INTTYPES_H''@|$(ABSOLUTE_INTTYPES_H)|g' \
|
---|
199 | -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
|
---|
200 | -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
|
---|
201 | -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
|
---|
202 | -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
|
---|
203 | -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
|
---|
204 | -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
|
---|
205 | -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
|
---|
206 | < $(srcdir)/inttypes_.h > $@-t
|
---|
207 | mv $@-t $@
|
---|
208 | MOSTLYCLEANFILES += inttypes.h inttypes.h-t
|
---|
209 |
|
---|
210 | # lchown
|
---|
211 | EXTRA_DIST += lchown.h
|
---|
212 |
|
---|
213 | # lstat
|
---|
214 | EXTRA_DIST += lstat.h
|
---|
215 |
|
---|
216 | # malloc
|
---|
217 |
|
---|
218 | # mbchar
|
---|
219 | libcpio_a_SOURCES += mbchar.h
|
---|
220 |
|
---|
221 | # mbuiter
|
---|
222 | libcpio_a_SOURCES += mbuiter.h
|
---|
223 |
|
---|
224 | # memchr
|
---|
225 |
|
---|
226 | # mempcpy
|
---|
227 | EXTRA_DIST += mempcpy.h
|
---|
228 |
|
---|
229 | # memrchr
|
---|
230 | EXTRA_DIST += memrchr.h
|
---|
231 |
|
---|
232 | # minmax
|
---|
233 | libcpio_a_SOURCES += minmax.h
|
---|
234 |
|
---|
235 | # mktime
|
---|
236 |
|
---|
237 | # obstack
|
---|
238 |
|
---|
239 | # openat
|
---|
240 | EXTRA_DIST += at-func.c openat.h openat-priv.h
|
---|
241 |
|
---|
242 | # quote
|
---|
243 | EXTRA_DIST += quote.h
|
---|
244 |
|
---|
245 | # quotearg
|
---|
246 | EXTRA_DIST += quotearg.h
|
---|
247 |
|
---|
248 | # safe-read
|
---|
249 | EXTRA_DIST += safe-read.h
|
---|
250 |
|
---|
251 | # safe-write
|
---|
252 | EXTRA_DIST += safe-write.h
|
---|
253 |
|
---|
254 | # save-cwd
|
---|
255 | EXTRA_DIST += save-cwd.h
|
---|
256 |
|
---|
257 | # savedir
|
---|
258 | EXTRA_DIST += savedir.h
|
---|
259 |
|
---|
260 | # setenv
|
---|
261 | libcpio_a_SOURCES += setenv.h
|
---|
262 |
|
---|
263 | # size_max
|
---|
264 | libcpio_a_SOURCES += size_max.h
|
---|
265 |
|
---|
266 | # ssize_t
|
---|
267 |
|
---|
268 | # stat-macros
|
---|
269 | EXTRA_DIST += stat-macros.h
|
---|
270 |
|
---|
271 | # stdarg
|
---|
272 |
|
---|
273 | # stdbool
|
---|
274 | BUILT_SOURCES += $(STDBOOL_H)
|
---|
275 | EXTRA_DIST += stdbool_.h
|
---|
276 |
|
---|
277 | # We need the following in order to create <stdbool.h> when the system
|
---|
278 | # doesn't have one that works.
|
---|
279 | stdbool.h: stdbool_.h
|
---|
280 | rm -f $@-t $@
|
---|
281 | sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
|
---|
282 | mv $@-t $@
|
---|
283 | MOSTLYCLEANFILES += stdbool.h stdbool.h-t
|
---|
284 |
|
---|
285 | # stdint
|
---|
286 | BUILT_SOURCES += $(STDINT_H)
|
---|
287 | EXTRA_DIST += stdint_.h
|
---|
288 |
|
---|
289 | # We need the following in order to create <stdint.h> when the system
|
---|
290 | # doesn't have one that works with the given compiler.
|
---|
291 | stdint.h: stdint_.h
|
---|
292 | rm -f $@-t $@
|
---|
293 | sed -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
|
---|
294 | -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
|
---|
295 | -e 's|@''ABSOLUTE_STDINT_H''@|$(ABSOLUTE_STDINT_H)|g' \
|
---|
296 | -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
|
---|
297 | -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
|
---|
298 | -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
|
---|
299 | -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
|
---|
300 | -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
|
---|
301 | -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
|
---|
302 | -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
|
---|
303 | -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
|
---|
304 | -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
|
---|
305 | -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
|
---|
306 | -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
|
---|
307 | -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
|
---|
308 | -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
|
---|
309 | -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
|
---|
310 | -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
|
---|
311 | -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
|
---|
312 | -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
|
---|
313 | -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
|
---|
314 | < $(srcdir)/stdint_.h > $@-t
|
---|
315 | mv $@-t $@
|
---|
316 | MOSTLYCLEANFILES += stdint.h stdint.h-t
|
---|
317 |
|
---|
318 | # stpcpy
|
---|
319 | libcpio_a_SOURCES += stpcpy.h
|
---|
320 |
|
---|
321 | # strcase
|
---|
322 | libcpio_a_SOURCES += strcase.h
|
---|
323 |
|
---|
324 | # strchrnul
|
---|
325 | libcpio_a_SOURCES += strchrnul.h
|
---|
326 |
|
---|
327 | # strndup
|
---|
328 | EXTRA_DIST += strndup.h
|
---|
329 |
|
---|
330 | # strnlen
|
---|
331 | EXTRA_DIST += strnlen.h
|
---|
332 |
|
---|
333 | # strnlen1
|
---|
334 | libcpio_a_SOURCES += strnlen1.h strnlen1.c
|
---|
335 |
|
---|
336 | # strtol
|
---|
337 |
|
---|
338 | # sysexits
|
---|
339 | BUILT_SOURCES += $(SYSEXITS_H)
|
---|
340 | EXTRA_DIST += sysexit_.h
|
---|
341 |
|
---|
342 | # We need the following in order to create <sysexits.h> when the system
|
---|
343 | # doesn't have one that works with the given compiler.
|
---|
344 | sysexits.h: sysexit_.h
|
---|
345 | cp -f $(srcdir)/sysexit_.h $@-t
|
---|
346 | mv -f $@-t $@
|
---|
347 | MOSTLYCLEANFILES += sysexits.h sysexits.h-t
|
---|
348 |
|
---|
349 | # time_r
|
---|
350 | EXTRA_DIST += time_r.h
|
---|
351 |
|
---|
352 | # timespec
|
---|
353 | EXTRA_DIST += timespec.h
|
---|
354 |
|
---|
355 | # unistd
|
---|
356 | BUILT_SOURCES += $(UNISTD_H)
|
---|
357 |
|
---|
358 | # We need the following in order to create an empty placeholder for
|
---|
359 | # <unistd.h> when the system doesn't have one.
|
---|
360 | unistd.h:
|
---|
361 | echo '/* Empty placeholder for $@. */' >$@
|
---|
362 | MOSTLYCLEANFILES += unistd.h
|
---|
363 |
|
---|
364 | # unistd-safer
|
---|
365 | EXTRA_DIST += unistd-safer.h unistd--.h
|
---|
366 |
|
---|
367 | # unlocked-io
|
---|
368 | EXTRA_DIST += unlocked-io.h
|
---|
369 |
|
---|
370 | # utimens
|
---|
371 | EXTRA_DIST += utimens.h
|
---|
372 |
|
---|
373 | # vasnprintf
|
---|
374 | libcpio_a_SOURCES += printf-args.h printf-parse.h vasnprintf.h
|
---|
375 |
|
---|
376 | # verify
|
---|
377 | libcpio_a_SOURCES += verify.h
|
---|
378 |
|
---|
379 | # version-etc
|
---|
380 | libcpio_a_SOURCES += version-etc.h version-etc.c
|
---|
381 |
|
---|
382 | # version-etc-fsf
|
---|
383 | libcpio_a_SOURCES += version-etc-fsf.c
|
---|
384 |
|
---|
385 | # vsnprintf
|
---|
386 | libcpio_a_SOURCES += vsnprintf.h
|
---|
387 |
|
---|
388 | # wcwidth
|
---|
389 | libcpio_a_SOURCES += wcwidth.h
|
---|
390 |
|
---|
391 | # xalloc
|
---|
392 | EXTRA_DIST += xalloc.h
|
---|
393 |
|
---|
394 | # xalloc-die
|
---|
395 | libcpio_a_SOURCES += xalloc-die.c
|
---|
396 |
|
---|
397 | # xgetcwd
|
---|
398 | EXTRA_DIST += xgetcwd.h
|
---|
399 |
|
---|
400 | # xsize
|
---|
401 | libcpio_a_SOURCES += xsize.h
|
---|
402 |
|
---|
403 | # xstrndup
|
---|
404 | libcpio_a_SOURCES += xstrndup.h xstrndup.c
|
---|
405 |
|
---|