1 # Makefile.in generated automatically by automake 1.3 from Makefile.am
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.
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
13 # Makefile for rpm library.
19 top_srcdir = @top_srcdir@
22 exec_prefix = @exec_prefix@
26 libexecdir = @libexecdir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
39 pkgdatadir = $(datadir)/@PACKAGE@
40 pkglibdir = $(libdir)/@PACKAGE@
41 pkgincludedir = $(includedir)/@PACKAGE@
48 AUTOHEADER = @AUTOHEADER@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53 INSTALL_SCRIPT = @INSTALL_SCRIPT@
54 transform = @program_transform_name@
62 host_alias = @host_alias@
68 CATOBJEXT = @CATOBJEXT@
71 DATADIRNAME = @DATADIRNAME@
72 FINDPROVIDES = @FINDPROVIDES@
73 FINDREQUIRES = @FINDREQUIRES@
81 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
83 INSTOBJEXT = @INSTOBJEXT@
87 LDFLAGS_STATIC = @LDFLAGS_STATIC@
91 LIBRPMALIAS_FILENAME = @LIBRPMALIAS_FILENAME@
92 LIBRPMRC_FILENAME = @LIBRPMRC_FILENAME@
95 MACROFILES = @MACROFILES@
101 MKINSTALLDIRS = @MKINSTALLDIRS@
107 ROOT_GROUP = @ROOT_GROUP@
109 RPMCONFIGDIR = @RPMCONFIGDIR@
112 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
118 varprefix = @varprefix@
120 AUTOMAKE_OPTIONS = 1.3 foreign
122 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/build @INCPATH@
124 rpmincdir = $(includedir)/rpm
125 rpminc_HEADERS = dbindex.h header.h misc.h rpmlib.h rpmmacro.h stringbuf.h
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
131 lib_LIBRARIES = librpm.a
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
141 BUILT_SOURCES = tagtable.c
142 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
143 CONFIG_HEADER = ../config.h
145 LIBRARIES = $(lib_LIBRARIES)
148 DEFS = @DEFS@ -I. -I$(srcdir) -I..
149 CPPFLAGS = @CPPFLAGS@
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
157 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
158 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
159 HEADERS = $(noinst_HEADERS) $(rpminc_HEADERS)
161 DIST_COMMON = Makefile.am Makefile.in
164 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
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)
178 all: Makefile $(LIBRARIES) $(HEADERS)
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
185 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
187 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
190 mostlyclean-libLIBRARIES:
193 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
195 distclean-libLIBRARIES:
197 maintainer-clean-libLIBRARIES:
199 install-libLIBRARIES: $(lib_LIBRARIES)
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; \
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; \
216 uninstall-libLIBRARIES:
218 list='$(lib_LIBRARIES)'; for p in $$list; do \
219 rm -f $(DESTDIR)$(libdir)/$$p; \
229 -rm -f *.o core *.core
236 maintainer-clean-compile:
238 librpm.a: $(librpm_a_OBJECTS) $(librpm_a_DEPENDENCIES)
240 $(AR) cru librpm.a $(librpm_a_OBJECTS) $(librpm_a_LIBADD)
243 install-rpmincHEADERS: $(rpminc_HEADERS)
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; \
252 uninstall-rpmincHEADERS:
254 list='$(rpminc_HEADERS)'; for p in $$list; do \
255 rm -f $(DESTDIR)$(rpmincdir)/$$p; \
260 ID: $(HEADERS) $(SOURCES) $(LISP)
261 here=`pwd` && cd $(srcdir) \
262 && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
264 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
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)
281 maintainer-clean-tags:
283 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
287 distdir: $(DISTFILES)
288 here=`cd $(top_builddir) && pwd`; \
289 top_distdir=`cd $(top_distdir) && pwd`; \
290 distdir=`cd $(distdir) && pwd`; \
292 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign lib/Makefile
293 @for file in $(DISTFILES); do \
295 test -f $(distdir)/$$file \
296 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
297 || cp -p $$d/$$file $(distdir)/$$file; \
300 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
302 -include $(DEP_FILES)
310 maintainer-clean-depend:
314 @echo '$(COMPILE) -c $<'; \
315 $(COMPILE) -Wp,-MD,.deps/$(*F).P -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
328 install-exec: install-libLIBRARIES
331 install-data: install-rpmincHEADERS
334 install: install-exec install-data all
337 uninstall: uninstall-libLIBRARIES uninstall-rpmincHEADERS
340 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
342 $(mkinstalldirs) $(DATADIR)$(libdir) $(DATADIR)$(rpmincdir)
346 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
349 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
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)
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
362 clean: clean-libLIBRARIES clean-compile clean-tags clean-depend \
363 clean-generic mostlyclean
365 distclean: distclean-libLIBRARIES distclean-compile distclean-tags \
366 distclean-depend distclean-generic clean
369 maintainer-clean: maintainer-clean-libLIBRARIES \
370 maintainer-clean-compile maintainer-clean-tags \
371 maintainer-clean-depend maintainer-clean-generic \
373 @echo "This command is intended for maintainers to use;"
374 @echo "it deletes files that may require special tools to rebuild."
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
388 include ../Makefile.inc
391 $(COMPILE) -DLIBRPMRC_FILENAME="\"$(LIBRPMRC_FILENAME)"\" -DMACROFILES=\"$(MACROFILES)\" -o $@ -c $<
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
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.