]> Dogcows Code - chaz/tar/blob - lib/Makefile.am
Added obstack.
[chaz/tar] / lib / Makefile.am
1 # Makefile for GNU tar library.
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
4 # 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
33
34 # gnulib modules
35
36 # alloca
37 EXTRA_DIST += alloca_.h
38 all-local $(lib_OBJECTS): @ALLOCA_H@
39 alloca.h: alloca_.h
40 cp $(srcdir)/alloca_.h alloca.h-t
41 mv alloca.h-t alloca.h
42 MOSTLYCLEANFILES += alloca.h alloca.h-t
43
44 # argmatch
45 libtar_a_SOURCES += argmatch.h argmatch.c
46
47 # backupfile
48 libtar_a_SOURCES += backupfile.h backupfile.c addext.c
49
50 # dirname
51 libtar_a_SOURCES += dirname.h dirname.c basename.c stripslash.c
52
53 # exclude
54 libtar_a_SOURCES += exclude.h exclude.c
55
56 # fnmatch
57 EXTRA_DIST += fnmatch_.h fnmatch_loop.c
58 all-local $(lib_OBJECTS): @FNMATCH_H@
59 fnmatch.h: fnmatch_.h
60 cp $(srcdir)/fnmatch_.h fnmatch.h-t
61 mv fnmatch.h-t fnmatch.h
62 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
63
64 # full-write
65 libtar_a_SOURCES += full-write.h full-write.c
66
67 # getdate
68 libtar_a_SOURCES += getdate.h getdate.y
69 BUILT_SOURCES += getdate.c
70 MAINTAINERCLEANFILES += getdate.c
71 #
72 # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
73 $(srcdir)/getdate.c: getdate.y
74 cd $(srcdir) && \
75 $(YACC) $(YFLAGS) getdate.y && \
76 mv -f y.tab.c getdate.c
77
78 # getline
79 libtar_a_SOURCES += getline.h
80
81 # getopt
82 libtar_a_SOURCES += getopt.h getopt.c getopt1.c
83
84 # gettext
85 libtar_a_SOURCES += gettext.h
86
87 # hash
88 libtar_a_SOURCES += hash.h hash.c
89
90 # human
91 libtar_a_SOURCES += human.h human.c
92
93 # exitfail
94 libtar_a_SOURCES += exitfail.h exitfail.c
95
96 # lchown
97 libtar_a_SOURCES += lchown.h
98
99 # modechange
100 libtar_a_SOURCES += modechange.h modechange.c
101
102 # obstack
103 libtar_a_SOURCES += obstack.h obstack.c
104
105 # pathmax
106 libtar_a_SOURCES += pathmax.h
107
108 # quote
109 libtar_a_SOURCES += quote.h quote.c
110
111 # quotearg
112 libtar_a_SOURCES += quotearg.h quotearg.c
113
114 # safe-read
115 libtar_a_SOURCES += safe-read.h safe-read.c
116
117 # safe-write
118 libtar_a_SOURCES += safe-write.h safe-write.c
119
120 # save-cwd
121 libtar_a_SOURCES += save-cwd.h save-cwd.c
122
123 # savedir
124 libtar_a_SOURCES += savedir.h savedir.c
125
126 # stdbool
127 EXTRA_DIST += stdbool_.h
128 all-local $(lib_OBJECTS): $(STDBOOL_H)
129 stdbool.h: stdbool_.h
130 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > stdbool.h-t
131 mv stdbool.h-t stdbool.h
132 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
133
134 # unlocked-io
135 libtar_a_SOURCES += unlocked-io.h
136
137 # xalloc
138 libtar_a_SOURCES += xalloc.h xmalloc.c xstrdup.c
139
140 # xgetcwd
141 libtar_a_SOURCES += xgetcwd.h xgetcwd.c
142
143 # xstrtol
144 libtar_a_SOURCES += xstrtol.h xstrtol.c xstrtoul.c
145
146 # xstrtoumax
147 libtar_a_SOURCES += xstrtoumax.c
This page took 0.044412 seconds and 5 git commands to generate.