First attempt at "make check".
[platform/upstream/rpm.git] / lib / Makefile.in
1 # Makefile.in generated automatically by automake 1.3 from Makefile.am
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # Makefile for rpm library.
14
15
16 SHELL = /bin/sh
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 bindir = @bindir@
25 sbindir = @sbindir@
26 libexecdir = @libexecdir@
27 datadir = @datadir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
31 libdir = @libdir@
32 infodir = @infodir@
33 mandir = @mandir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
36
37 DISTDIR =
38
39 pkgdatadir = $(datadir)/@PACKAGE@
40 pkglibdir = $(libdir)/@PACKAGE@
41 pkgincludedir = $(includedir)/@PACKAGE@
42
43 top_builddir = ..
44
45 ACLOCAL = @ACLOCAL@
46 AUTOCONF = @AUTOCONF@
47 AUTOMAKE = @AUTOMAKE@
48 AUTOHEADER = @AUTOHEADER@
49
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53 INSTALL_SCRIPT = @INSTALL_SCRIPT@
54 transform = @program_transform_name@
55
56 NORMAL_INSTALL = :
57 PRE_INSTALL = :
58 POST_INSTALL = :
59 NORMAL_UNINSTALL = :
60 PRE_UNINSTALL = :
61 POST_UNINSTALL = :
62 host_alias = @host_alias@
63 host_triplet = @host@
64 AR = @AR@
65 AWK = @AWK@
66 BZIP2BIN = @BZIP2BIN@
67 CATALOGS = @CATALOGS@
68 CATOBJEXT = @CATOBJEXT@
69 CC = @CC@
70 CPP = @CPP@
71 DATADIRNAME = @DATADIRNAME@
72 FINDPROVIDES = @FINDPROVIDES@
73 FINDREQUIRES = @FINDREQUIRES@
74 FIXPERMS = @FIXPERMS@
75 GENCAT = @GENCAT@
76 GMOFILES = @GMOFILES@
77 GMSGFMT = @GMSGFMT@
78 GT_NO = @GT_NO@
79 GT_YES = @GT_YES@
80 GZIPBIN = @GZIPBIN@
81 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
82 INCPATH = @INCPATH@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLDEPS = @INTLDEPS@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 LDFLAGS_STATIC = @LDFLAGS_STATIC@
88 LIBDL = @LIBDL@
89 LIBMISC = @LIBMISC@
90 LIBOBJS = @LIBOBJS@
91 LIBRPMALIAS_FILENAME = @LIBRPMALIAS_FILENAME@
92 LIBRPMRC_FILENAME = @LIBRPMRC_FILENAME@
93 LIBS = @LIBS@
94 LN_S = @LN_S@
95 MACROFILES = @MACROFILES@
96 MAKEINFO = @MAKEINFO@
97 MISCDIR = @MISCDIR@
98 MISCPATH = @MISCPATH@
99 MKDIR = @MKDIR@
100 MKDIR_P = @MKDIR_P@
101 MKINSTALLDIRS = @MKINSTALLDIRS@
102 MSGFMT = @MSGFMT@
103 PACKAGE = @PACKAGE@
104 POFILES = @POFILES@
105 POSUB = @POSUB@
106 RANLIB = @RANLIB@
107 ROOT_GROUP = @ROOT_GROUP@
108 RPM = @RPM@
109 RPMCONFIGDIR = @RPMCONFIGDIR@
110 TARGET = @TARGET@
111 U = @U@
112 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
113 USE_NLS = @USE_NLS@
114 VERSION = @VERSION@
115 l = @l@
116 testdir = @testdir@
117 tmpdir = @tmpdir@
118 varprefix = @varprefix@
119
120 AUTOMAKE_OPTIONS = 1.3 foreign
121
122 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/build @INCPATH@
123
124 rpmincdir = $(includedir)/rpm
125 rpminc_HEADERS = dbindex.h header.h misc.h rpmlib.h rpmmacro.h stringbuf.h
126 noinst_HEADERS = \
127         cpio.h depends.h falloc.h install.h \
128         md5.h oldheader.h oldrpmdb.h rpm_malloc.h \
129         rpmdb.h rpmlead.h signature.h tread.h
130
131 lib_LIBRARIES = librpm.a
132 librpm_a_SOURCES = \
133         cpio.c dbindex.c depends.c falloc.c \
134         formats.c fs.c header.c install.c \
135         lookup.c macro.c md5.c md5sum.c \
136         messages.c misc.c oldheader.c package.c \
137         rebuilddb.c rpmdb.c rpmerr.c rpmlead.c \
138         rpmrc.c signature.c stringbuf.c tagtable.c \
139         tread.c uninstall.c verify.c
140
141 BUILT_SOURCES = tagtable.c
142 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
143 CONFIG_HEADER = ../config.h
144 CONFIG_CLEAN_FILES = 
145 LIBRARIES =  $(lib_LIBRARIES)
146
147
148 DEFS = @DEFS@ -I. -I$(srcdir) -I..
149 CPPFLAGS = @CPPFLAGS@
150 LDFLAGS = @LDFLAGS@
151 librpm_a_LIBADD = 
152 librpm_a_OBJECTS =  cpio.o dbindex.o depends.o falloc.o formats.o fs.o \
153 header.o install.o lookup.o macro.o md5.o md5sum.o messages.o misc.o \
154 oldheader.o package.o rebuilddb.o rpmdb.o rpmerr.o rpmlead.o rpmrc.o \
155 signature.o stringbuf.o tagtable.o tread.o uninstall.o verify.o
156 CFLAGS = @CFLAGS@
157 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
158 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
159 HEADERS =  $(noinst_HEADERS) $(rpminc_HEADERS)
160
161 DIST_COMMON =  Makefile.am Makefile.in
162
163
164 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
165
166 TAR = tar
167 GZIP = --best
168 DEP_FILES =  .deps/cpio.P .deps/dbindex.P .deps/depends.P .deps/falloc.P \
169 .deps/formats.P .deps/fs.P .deps/header.P .deps/install.P \
170 .deps/lookup.P .deps/macro.P .deps/md5.P .deps/md5sum.P \
171 .deps/messages.P .deps/misc.P .deps/oldheader.P .deps/package.P \
172 .deps/rebuilddb.P .deps/rpmdb.P .deps/rpmerr.P .deps/rpmlead.P \
173 .deps/rpmrc.P .deps/signature.P .deps/stringbuf.P .deps/tagtable \
174 .deps/tagtable.P .deps/tread.P .deps/uninstall.P .deps/verify.P
175 SOURCES = $(librpm_a_SOURCES)
176 OBJECTS = $(librpm_a_OBJECTS)
177
178 all: Makefile $(LIBRARIES) $(HEADERS)
179
180 .SUFFIXES:
181 .SUFFIXES: .S .c .o .s
182 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
183         cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/Makefile
184
185 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
186         cd $(top_builddir) \
187           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
188
189
190 mostlyclean-libLIBRARIES:
191
192 clean-libLIBRARIES:
193         -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
194
195 distclean-libLIBRARIES:
196
197 maintainer-clean-libLIBRARIES:
198
199 install-libLIBRARIES: $(lib_LIBRARIES)
200         @$(NORMAL_INSTALL)
201         $(mkinstalldirs) $(DESTDIR)$(libdir)
202         list='$(lib_LIBRARIES)'; for p in $$list; do \
203           if test -f $$p; then \
204             echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
205             $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
206           else :; fi; \
207         done
208         @$(POST_INSTALL)
209         @list='$(lib_LIBRARIES)'; for p in $$list; do \
210           if test -f $$p; then \
211             echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
212             $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
213           else :; fi; \
214         done
215
216 uninstall-libLIBRARIES:
217         @$(NORMAL_UNINSTALL)
218         list='$(lib_LIBRARIES)'; for p in $$list; do \
219           rm -f $(DESTDIR)$(libdir)/$$p; \
220         done
221
222 .s.o:
223         $(COMPILE) -c $<
224
225 .S.o:
226         $(COMPILE) -c $<
227
228 mostlyclean-compile:
229         -rm -f *.o core *.core
230
231 clean-compile:
232
233 distclean-compile:
234         -rm -f *.tab.c
235
236 maintainer-clean-compile:
237
238 librpm.a: $(librpm_a_OBJECTS) $(librpm_a_DEPENDENCIES)
239         -rm -f librpm.a
240         $(AR) cru librpm.a $(librpm_a_OBJECTS) $(librpm_a_LIBADD)
241         $(RANLIB) librpm.a
242
243 install-rpmincHEADERS: $(rpminc_HEADERS)
244         @$(NORMAL_INSTALL)
245         $(mkinstalldirs) $(DESTDIR)$(rpmincdir)
246         @list='$(rpminc_HEADERS)'; for p in $$list; do \
247           if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
248           echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(rpmincdir)/$$p"; \
249           $(INSTALL_DATA) $$d$$p $(DESTDIR)$(rpmincdir)/$$p; \
250         done
251
252 uninstall-rpmincHEADERS:
253         @$(NORMAL_UNINSTALL)
254         list='$(rpminc_HEADERS)'; for p in $$list; do \
255           rm -f $(DESTDIR)$(rpmincdir)/$$p; \
256         done
257
258 tags: TAGS
259
260 ID: $(HEADERS) $(SOURCES) $(LISP)
261         here=`pwd` && cd $(srcdir) \
262           && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
263
264 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
265         tags=; \
266         here=`pwd`; \
267         list='$(SOURCES) $(HEADERS)'; \
268         unique=`for i in $$list; do echo $$i; done | \
269           awk '    { files[$$0] = 1; } \
270                END { for (i in files) print i; }'`; \
271         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
272           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
273
274 mostlyclean-tags:
275
276 clean-tags:
277
278 distclean-tags:
279         -rm -f TAGS ID
280
281 maintainer-clean-tags:
282
283 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
284
285 subdir = lib
286
287 distdir: $(DISTFILES)
288         here=`cd $(top_builddir) && pwd`; \
289         top_distdir=`cd $(top_distdir) && pwd`; \
290         distdir=`cd $(distdir) && pwd`; \
291         cd $(top_srcdir) \
292           && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign lib/Makefile
293         @for file in $(DISTFILES); do \
294           d=$(srcdir); \
295           test -f $(distdir)/$$file \
296           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
297           || cp -p $$d/$$file $(distdir)/$$file; \
298         done
299
300 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
301
302 -include $(DEP_FILES)
303
304 mostlyclean-depend:
305
306 clean-depend:
307
308 distclean-depend:
309
310 maintainer-clean-depend:
311         -rm -rf .deps
312
313 %.o: %.c
314         @echo '$(COMPILE) -c $<'; \
315         $(COMPILE) -Wp,-MD,.deps/$(*F).P -c $<
316
317 %.lo: %.c
318         @echo '$(LTCOMPILE) -c $<'; \
319         $(LTCOMPILE) -Wp,-MD,.deps/$(*F).p -c $<
320         @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
321           < .deps/$(*F).p > .deps/$(*F).P
322         @-rm -f .deps/$(*F).p
323 info:
324 dvi:
325 check: all
326         $(MAKE)
327 installcheck:
328 install-exec: install-libLIBRARIES
329         @$(NORMAL_INSTALL)
330
331 install-data: install-rpmincHEADERS
332         @$(NORMAL_INSTALL)
333
334 install: install-exec install-data all
335         @:
336
337 uninstall: uninstall-libLIBRARIES uninstall-rpmincHEADERS
338
339 install-strip:
340         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
341 installdirs:
342         $(mkinstalldirs)  $(DATADIR)$(libdir) $(DATADIR)$(rpmincdir)
343
344
345 mostlyclean-generic:
346         -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
347
348 clean-generic:
349         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
350
351 distclean-generic:
352         -rm -f Makefile $(DISTCLEANFILES)
353         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
354         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
355
356 maintainer-clean-generic:
357         -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
358         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
359 mostlyclean:  mostlyclean-libLIBRARIES mostlyclean-compile \
360                 mostlyclean-tags mostlyclean-depend mostlyclean-generic
361
362 clean:  clean-libLIBRARIES clean-compile clean-tags clean-depend \
363                 clean-generic mostlyclean
364
365 distclean:  distclean-libLIBRARIES distclean-compile distclean-tags \
366                 distclean-depend distclean-generic clean
367         -rm -f config.status
368
369 maintainer-clean:  maintainer-clean-libLIBRARIES \
370                 maintainer-clean-compile maintainer-clean-tags \
371                 maintainer-clean-depend maintainer-clean-generic \
372                 distclean
373         @echo "This command is intended for maintainers to use;"
374         @echo "it deletes files that may require special tools to rebuild."
375
376 .PHONY: mostlyclean-libLIBRARIES distclean-libLIBRARIES \
377 clean-libLIBRARIES maintainer-clean-libLIBRARIES uninstall-libLIBRARIES \
378 install-libLIBRARIES mostlyclean-compile distclean-compile \
379 clean-compile maintainer-clean-compile uninstall-rpmincHEADERS \
380 install-rpmincHEADERS tags mostlyclean-tags distclean-tags clean-tags \
381 maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
382 clean-depend maintainer-clean-depend info dvi installcheck install-exec \
383 install-data install uninstall all installdirs mostlyclean-generic \
384 distclean-generic clean-generic maintainer-clean-generic clean \
385 mostlyclean distclean maintainer-clean
386
387
388 include ../Makefile.inc
389
390 rpmrc.o: rpmrc.c
391         $(COMPILE) -DLIBRPMRC_FILENAME="\"$(LIBRPMRC_FILENAME)"\" -DMACROFILES=\"$(MACROFILES)\" -o $@ -c $<
392
393 tagtable.c: rpmlib.h 
394         echo '#include "rpmlib.h"' > tagtable.c
395         echo '' >> tagtable.c
396         echo 'const struct headerTagTableEntry rpmTagTable[] = {' >> tagtable.c
397         awk '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ { printf("\t{ \"%s\", %s },\n", $$2, $$3); }' < $(srcdir)/rpmlib.h >> tagtable.c
398         echo '  { NULL, 0 }' >> tagtable.c
399         echo '};' >> tagtable.c
400         echo '' >> tagtable.c
401         echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct headerTagTableEntry) - 1;' >> tagtable.c
402
403 # Tell versions [3.59,3.63) of GNU make to not export all variables.
404 # Otherwise a system limit (for SysV at least) may be exceeded.
405 .NOEXPORT: