]> Dogcows Code - chaz/tar/blob - lib/Makefile.am
Merge recent gnulib changes, and remove some lint.
[chaz/tar] / lib / Makefile.am
1 # Makefile for GNU tar library.
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004
4 # 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., 59 Temple Place - Suite 330, Boston, MA
19 ## 02111-1307, USA.
20
21 noinst_LIBRARIES = libtar.a
22
23 libtar_a_SOURCES = prepargs.c prepargs.h
24
25 libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA)
26 libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
27
28 BUILT_SOURCES =
29 EXTRA_DIST =
30 MAINTAINERCLEANFILES =
31 MOSTLYCLEANFILES =
32 lib_OBJECTS = $(libtar_a_OBJECTS)
33
34
35 # gnulib modules
36
37 # alloca
38 BUILT_SOURCES += $(ALLOCA_H)
39 EXTRA_DIST += alloca_.h
40
41 # We need the following in order to create an <alloca.h> when the system
42 # doesn't have one that works with the given compiler.
43 all-local $(lib_OBJECTS): $(ALLOCA_H)
44 alloca.h: alloca_.h
45 cp $(srcdir)/alloca_.h $@-t
46 mv $@-t $@
47 MOSTLYCLEANFILES += alloca.h alloca.h-t
48
49 # argmatch
50 libtar_a_SOURCES += argmatch.h argmatch.c
51
52 # backupfile
53 libtar_a_SOURCES += backupfile.h backupfile.c addext.c
54
55 # dirname
56 libtar_a_SOURCES += dirname.h dirname.c basename.c stripslash.c
57
58 # exclude
59 libtar_a_SOURCES += exclude.h exclude.c
60
61 # exitfail
62 libtar_a_SOURCES += exitfail.h exitfail.c
63
64 # exit
65 libtar_a_SOURCES += exit.h
66
67 # fnmatch
68 BUILT_SOURCES += $(FNMATCH_H)
69 EXTRA_DIST += fnmatch_.h fnmatch_loop.c
70
71 # stpcpy
72 EXTRA_DIST += stpcpy.c stpcpy.h
73
74 # We need the following in order to create an <fnmatch.h> when the system
75 # doesn't have one that supports the required API.
76 all-local $(lib_OBJECTS): $(FNMATCH_H)
77 fnmatch.h: fnmatch_.h
78 cp $(srcdir)/fnmatch_.h $@-t
79 mv $@-t $@
80 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
81
82 # full-write
83 libtar_a_SOURCES += full-write.h full-write.c
84
85 # getdate
86 libtar_a_SOURCES += getdate.h getdate.y
87 BUILT_SOURCES += getdate.c
88 MAINTAINERCLEANFILES += getdate.c
89 #
90 # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
91 $(srcdir)/getdate.c: getdate.y
92 cd $(srcdir) && \
93 $(YACC) $(YFLAGS) getdate.y && \
94 mv -f y.tab.c getdate.c
95
96 # getline
97 libtar_a_SOURCES += getline.h
98 EXTRA_DIST += getndelim2.h getndelim2.c
99
100 # getopt
101 libtar_a_SOURCES += getopt.h getopt.c getopt1.c
102
103 # gettext
104 libtar_a_SOURCES += gettext.h
105
106 # gettime
107 libtar_a_SOURCES += gettime.c
108
109 # hash
110 libtar_a_SOURCES += hash.h hash.c
111
112 # human
113 libtar_a_SOURCES += human.h human.c
114
115 # lchown
116 libtar_a_SOURCES += lchown.h
117
118 # modechange
119 libtar_a_SOURCES += modechange.h modechange.c
120
121 # pathmax
122 libtar_a_SOURCES += pathmax.h
123
124 # time_r
125 EXTRA_DIST += time_r.h
126
127 # timespec
128 libtar_a_SOURCES += timespec.h
129
130 # quote
131 libtar_a_SOURCES += quote.h quote.c
132
133 # quotearg
134 libtar_a_SOURCES += quotearg.h quotearg.c
135
136 # safe-read
137 libtar_a_SOURCES += safe-read.h safe-read.c
138
139 # safe-write
140 libtar_a_SOURCES += safe-write.h safe-write.c
141
142 # save-cwd
143 libtar_a_SOURCES += save-cwd.h save-cwd.c
144
145 # savedir
146 libtar_a_SOURCES += savedir.h savedir.c
147
148 # stdbool
149 BUILT_SOURCES += $(STDBOOL_H)
150 EXTRA_DIST += stdbool_.h
151
152 # strcase
153 EXTRA_DIST += strcase.h
154
155 # We need the following in order to create an <stdbool.h> when the system
156 # doesn't have one that works.
157 all-local $(lib_OBJECTS): $(STDBOOL_H)
158 stdbool.h: stdbool_.h
159 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
160 mv $@-t $@
161 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
162
163 # unlocked-io
164 libtar_a_SOURCES += unlocked-io.h
165
166 # xalloc
167 libtar_a_SOURCES += xalloc.h xmalloc.c xstrdup.c
168
169 # xgetcwd
170 libtar_a_SOURCES += xgetcwd.h xgetcwd.c
171
172 # xstrtol
173 libtar_a_SOURCES += xstrtol.h xstrtol.c xstrtoul.c
174
175 # xstrtoumax
176 libtar_a_SOURCES += xstrtoumax.c
This page took 0.041834 seconds and 5 git commands to generate.