SUBDIRS = lib . doc po methodsdir = $(libexecdir)/methods solversdir = $(libexecdir)/solvers AM_CPPFLAGS = \ -I$(top_builddir)/lib -I$(top_srcdir) \ -I$(top_builddir)/_include \ -DAPT_METHOD_DIR="\"$(methodsdir)\"" \ -DAPT_SOLVERS_DIR="\"$(solversdir)\"" \ $(INCICONV) # We need these headers under apt-pkg/ BUILT_SOURCES = _include/apt-pkg clean-local: -rm -rf _include _include/apt-pkg: $(MKDIR_P) $@ cp $(top_srcdir)/apt-pkg/*/*.h $@ cp $(top_srcdir)/apt-inst/*.h $@ cp $(top_srcdir)/apt-inst/*/*.h $@ lib_LTLIBRARIES = libapt-pkg.la libapt-inst.la libapt-private.la # A workaround for `object ‘foo.$(OBJEXT)’ created both with libtool and without' #libapt_pkg_la_CPPFLAGS = $(AM_CPPFLAGS) #libapt_inst_la_CPPFLAGS = $(AM_CPPFLAGS) # === libapt-pkg === libapt_pkg_la_LIBADD = $(LTLIBICONV) $(LIBZ) $(LIBBZ2) $(LIBLZMA) -lgnu libapt_pkg_la_LDFLAGS = -L$(top_builddir)/lib libapt_pkg_la_LDFLAGS += -release $(LIBAPT_PKG_RELEASE) libapt_pkg_la_SOURCES = \ apt-pkg/acquire.cc \ apt-pkg/acquire.h \ apt-pkg/acquire-item.cc \ apt-pkg/acquire-item.h \ apt-pkg/acquire-method.cc \ apt-pkg/acquire-method.h \ apt-pkg/acquire-worker.cc \ apt-pkg/acquire-worker.h \ apt-pkg/algorithms.cc \ apt-pkg/algorithms.h \ apt-pkg/aptconfiguration.cc \ apt-pkg/aptconfiguration.h \ apt-pkg/cachefile.cc \ apt-pkg/cachefile.h \ apt-pkg/cachefilter.cc \ apt-pkg/cachefilter.h \ apt-pkg/cacheiterators.h \ apt-pkg/cacheset.cc \ apt-pkg/cacheset.h \ apt-pkg/cdrom.cc \ apt-pkg/cdrom.h \ apt-pkg/clean.cc \ apt-pkg/clean.h \ apt-pkg/contrib/cdromutl.cc \ apt-pkg/contrib/cdromutl.h \ apt-pkg/contrib/cmndline.cc \ apt-pkg/contrib/cmndline.h \ apt-pkg/contrib/configuration.cc \ apt-pkg/contrib/configuration.h \ apt-pkg/contrib/crc-16.cc \ apt-pkg/contrib/crc-16.h \ apt-pkg/contrib/error.cc \ apt-pkg/contrib/error.h \ apt-pkg/contrib/fileutl.cc \ apt-pkg/contrib/fileutl.h \ apt-pkg/contrib/gpgv.cc \ apt-pkg/contrib/gpgv.h \ apt-pkg/contrib/hashes.cc \ apt-pkg/contrib/hashes.h \ apt-pkg/contrib/hashsum.cc \ apt-pkg/contrib/hashsum_template.h \ apt-pkg/contrib/macros.h \ apt-pkg/contrib/md5.cc \ apt-pkg/contrib/md5.h \ apt-pkg/contrib/mmap.cc \ apt-pkg/contrib/mmap.h \ apt-pkg/contrib/netrc.cc \ apt-pkg/contrib/netrc.h \ apt-pkg/contrib/progress.cc \ apt-pkg/contrib/progress.h \ apt-pkg/contrib/sha1.cc \ apt-pkg/contrib/sha1.h \ apt-pkg/contrib/sha256.h \ apt-pkg/contrib/sha2.h \ apt-pkg/contrib/sha2_internal.cc \ apt-pkg/contrib/sha2_internal.h \ apt-pkg/contrib/sptr.h \ apt-pkg/contrib/strutl.cc \ apt-pkg/contrib/strutl.h \ apt-pkg/contrib/weakptr.h \ apt-pkg/deb/debindexfile.cc \ apt-pkg/deb/debindexfile.h \ apt-pkg/deb/deblistparser.cc \ apt-pkg/deb/deblistparser.h \ apt-pkg/deb/debmetaindex.cc \ apt-pkg/deb/debmetaindex.h \ apt-pkg/deb/debrecords.cc \ apt-pkg/deb/debrecords.h \ apt-pkg/deb/debsrcrecords.cc \ apt-pkg/deb/debsrcrecords.h \ apt-pkg/deb/debsystem.cc \ apt-pkg/deb/debsystem.h \ apt-pkg/deb/debversion.cc \ apt-pkg/deb/debversion.h \ apt-pkg/deb/dpkgpm.cc \ apt-pkg/deb/dpkgpm.h \ apt-pkg/depcache.cc \ apt-pkg/depcache.h \ apt-pkg/edsp.cc \ apt-pkg/edsp/edspindexfile.cc \ apt-pkg/edsp/edspindexfile.h \ apt-pkg/edsp/edsplistparser.cc \ apt-pkg/edsp/edsplistparser.h \ apt-pkg/edsp/edspsystem.cc \ apt-pkg/edsp/edspsystem.h \ apt-pkg/edsp.h \ apt-pkg/indexcopy.cc \ apt-pkg/indexcopy.h \ apt-pkg/indexfile.cc \ apt-pkg/indexfile.h \ apt-pkg/indexrecords.cc \ apt-pkg/indexrecords.h \ apt-pkg/init.cc \ apt-pkg/init.h \ apt-pkg/install-progress.cc \ apt-pkg/install-progress.h \ apt-pkg/metaindex.h \ apt-pkg/orderlist.cc \ apt-pkg/orderlist.h \ apt-pkg/packagemanager.cc \ apt-pkg/packagemanager.h \ apt-pkg/pkgcache.cc \ apt-pkg/pkgcachegen.cc \ apt-pkg/pkgcachegen.h \ apt-pkg/pkgcache.h \ apt-pkg/pkgrecords.cc \ apt-pkg/pkgrecords.h \ apt-pkg/pkgsystem.cc \ apt-pkg/pkgsystem.h \ apt-pkg/policy.cc \ apt-pkg/policy.h \ apt-pkg/sourcelist.cc \ apt-pkg/sourcelist.h \ apt-pkg/srcrecords.cc \ apt-pkg/srcrecords.h \ apt-pkg/tagfile.cc \ apt-pkg/tagfile.h \ apt-pkg/update.cc \ apt-pkg/update.h \ apt-pkg/upgrade.cc \ apt-pkg/upgrade.h \ apt-pkg/vendor.cc \ apt-pkg/vendor.h \ apt-pkg/vendorlist.cc \ apt-pkg/vendorlist.h \ apt-pkg/version.cc \ apt-pkg/version.h \ apt-pkg/versionmatch.cc \ apt-pkg/versionmatch.h # === libapt-inst === libapt_inst_la_LDFLAGS = -release $(LIBAPT_INST_RELEASE) libapt_inst_la_LIBADD = libapt-pkg.la libapt_inst_la_SOURCES = \ apt-inst/contrib/arfile.cc \ apt-inst/contrib/arfile.h \ apt-inst/contrib/extracttar.cc \ apt-inst/contrib/extracttar.h \ apt-inst/deb/debfile.cc \ apt-inst/deb/debfile.h \ apt-inst/dirstream.cc \ apt-inst/dirstream.h \ apt-inst/extract.cc \ apt-inst/extract.h \ apt-inst/filelist.cc \ apt-inst/filelist.h # === libapt-private === libapt_private_la_LDFLAGS = -release 0 libapt_private_la_LIBADD = libapt-pkg.la libapt_private_la_SOURCES = \ apt-private/acqprogress.cc \ apt-private/acqprogress.h \ apt-private/private-cachefile.cc \ apt-private/private-cachefile.h \ apt-private/private-cacheset.cc \ apt-private/private-cacheset.h \ apt-private/private-cmndline.cc \ apt-private/private-cmndline.h \ apt-private/private-download.cc \ apt-private/private-download.h \ apt-private/private-install.cc \ apt-private/private-install.h \ apt-private/private-list.cc \ apt-private/private-list.h \ apt-private/private-main.cc \ apt-private/private-main.h \ apt-private/private-moo.cc \ apt-private/private-moo.h \ apt-private/private-output.cc \ apt-private/private-output.h \ apt-private/private-search.cc \ apt-private/private-search.h \ apt-private/private-show.cc \ apt-private/private-show.h \ apt-private/private-sources.cc \ apt-private/private-sources.h \ apt-private/private-update.cc \ apt-private/private-update.h \ apt-private/private-upgrade.cc \ apt-private/private-upgrade.h \ apt-private/private-utils.cc \ apt-private/private-utils.h # === methods === methods_PROGRAMS = \ methods/cdrom \ methods/copy \ methods/file \ methods/ftp \ methods/gpgv \ methods/gzip \ methods/http \ methods/https \ methods/mirror \ methods/rred \ methods/rsh methods_cdrom_SOURCES = methods/cdrom.cc methods_copy_SOURCES = methods/copy.cc methods_file_SOURCES = methods/file.cc methods_ftp_SOURCES = methods/ftp.cc methods/rfc2553emu.cc methods/connect.cc methods/rfc2553emu.h methods/ftp.h methods/connect.h methods_gpgv_SOURCES = methods/gpgv.cc methods_gzip_SOURCES = methods/gzip.cc methods_http_SOURCES = methods/http.cc methods/http_main.cc \ methods/rfc2553emu.cc methods/connect.cc \ methods/rfc2553emu.h methods/http.h methods/connect.h \ methods/server.cc methods/server.h methods_mirror_SOURCES = methods/mirror.cc methods/http.cc methods/rfc2553emu.cc \ methods/connect.cc methods/mirror.h \ methods/server.cc methods/server.h methods_rred_SOURCES = methods/rred.cc methods_rsh_SOURCES = methods/rsh.cc methods/rsh.h methods_cdrom_LDADD = libapt-pkg.la methods_copy_LDADD = libapt-pkg.la methods_file_LDADD = libapt-pkg.la methods_ftp_LDADD = libapt-pkg.la methods_gpgv_LDADD = libapt-pkg.la methods_gzip_LDADD = libapt-pkg.la methods_http_LDADD = libapt-pkg.la methods_mirror_LDADD = libapt-pkg.la methods_rred_LDADD = libapt-pkg.la methods_rsh_LDADD = libapt-pkg.la if ENABLE_HTTPS methods_PROGRAMS += methods/https methods_https_LDADD = libapt-pkg.la -lcurl methods_https_SOURCES = methods/https.cc methods/https.h methods/server.cc methods/server.h endif # === Command line tools === bin_PROGRAMS = \ cmdline/apt \ cmdline/apt-cache \ cmdline/apt-cdrom \ cmdline/apt-config \ cmdline/apt-extracttemplates \ cmdline/apt-get \ cmdline/apt-mark \ cmdline/apt-sortpkgs bin_SCRIPTS = cmdline/apt-key CLEANFILES = $(bin_SCRIPTS) cmdline_apt_SOURCES = cmdline/apt.cc cmdline_apt_cache_SOURCES = cmdline/apt-cache.cc cmdline_apt_cdrom_SOURCES = cmdline/apt-cdrom.cc cmdline_apt_config_SOURCES = cmdline/apt-config.cc cmdline_apt_extracttemplates_SOURCES = cmdline/apt-extracttemplates.cc cmdline/apt-extracttemplates.h cmdline_apt_get_SOURCES = cmdline/apt-get.cc cmdline_apt_mark_SOURCES = cmdline/apt-mark.cc cmdline_apt_sortpkgs_SOURCES = cmdline/apt-sortpkgs.cc cmdline_apt_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_cache_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_cdrom_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_config_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_get_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_mark_LDADD = libapt-pkg.la libapt-private.la cmdline_apt_extracttemplates_LDADD = libapt-pkg.la libapt-inst.la cmdline_apt_sortpkgs_LDADD = libapt-pkg.la libapt-inst.la if ENABLE_FTPARCHIVE bin_PROGRAMS += ftparchive/apt-ftparchive ftparchive_apt_ftparchive_LDADD = libapt-pkg.la libapt-inst.la -ldb ftparchive_apt_ftparchive_SOURCES = \ ftparchive/apt-ftparchive.cc \ ftparchive/apt-ftparchive.h \ ftparchive/cachedb.cc \ ftparchive/cachedb.h \ ftparchive/contents.cc \ ftparchive/contents.h \ ftparchive/multicompress.cc \ ftparchive/multicompress.h \ ftparchive/override.cc \ ftparchive/override.h \ ftparchive/sources.cc \ ftparchive/sources.h \ ftparchive/writer.cc \ ftparchive/writer.h endif solvers_PROGRAMS = \ solvers/apt \ solvers/dump solvers_apt_SOURCES = cmdline/apt-internal-solver.cc solvers_apt_LDADD = libapt-pkg.la libapt-private.la solvers_dump_SOURCES = cmdline/apt-dump-solver.cc solvers_dump_LDADD = libapt-pkg.la ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ m4/gnulib-cache.m4 \ apt-inst/dpkg-diffs.txt noinst_HEADERS = apti18n.h apt_pkgdir = $(includedir)/apt-pkg apt_pkg_HEADERS = \ apt-inst/contrib/arfile.h \ apt-inst/contrib/extracttar.h \ apt-inst/deb/debfile.h \ apt-inst/dirstream.h \ apt-inst/extract.h \ apt-inst/filelist.h \ apt-pkg/acquire.h \ apt-pkg/acquire-item.h \ apt-pkg/acquire-method.h \ apt-pkg/acquire-worker.h \ apt-pkg/algorithms.h \ apt-pkg/aptconfiguration.h \ apt-pkg/cachefile.h \ apt-pkg/cachefilter.h \ apt-pkg/cacheiterators.h \ apt-pkg/cacheset.h \ apt-pkg/cdrom.h \ apt-pkg/clean.h \ apt-pkg/contrib/cdromutl.h \ apt-pkg/contrib/cmndline.h \ apt-pkg/contrib/configuration.h \ apt-pkg/contrib/crc-16.h \ apt-pkg/contrib/error.h \ apt-pkg/contrib/fileutl.h \ apt-pkg/contrib/gpgv.h \ apt-pkg/contrib/hashes.h \ apt-pkg/contrib/hashsum_template.h \ apt-pkg/contrib/macros.h \ apt-pkg/contrib/md5.h \ apt-pkg/contrib/mmap.h \ apt-pkg/contrib/netrc.h \ apt-pkg/contrib/progress.h \ apt-pkg/contrib/sha1.h \ apt-pkg/contrib/sha256.h \ apt-pkg/contrib/sha2.h \ apt-pkg/contrib/sha2_internal.h \ apt-pkg/contrib/sptr.h \ apt-pkg/contrib/strutl.h \ apt-pkg/contrib/weakptr.h \ apt-pkg/deb/debindexfile.h \ apt-pkg/deb/deblistparser.h \ apt-pkg/deb/debmetaindex.h \ apt-pkg/deb/debrecords.h \ apt-pkg/deb/debsrcrecords.h \ apt-pkg/deb/debsystem.h \ apt-pkg/deb/debversion.h \ apt-pkg/deb/dpkgpm.h \ apt-pkg/depcache.h \ apt-pkg/edsp/edspindexfile.h \ apt-pkg/edsp/edsplistparser.h \ apt-pkg/edsp/edspsystem.h \ apt-pkg/edsp.h \ apt-pkg/indexcopy.h \ apt-pkg/indexfile.h \ apt-pkg/indexrecords.h \ apt-pkg/init.h \ apt-pkg/install-progress.h \ apt-pkg/metaindex.h \ apt-pkg/orderlist.h \ apt-pkg/packagemanager.h \ apt-pkg/pkgcachegen.h \ apt-pkg/pkgcache.h \ apt-pkg/pkgrecords.h \ apt-pkg/pkgsystem.h \ apt-pkg/policy.h \ apt-pkg/sourcelist.h \ apt-pkg/srcrecords.h \ apt-pkg/tagfile.h \ apt-pkg/update.h \ apt-pkg/upgrade.h \ apt-pkg/vendor.h \ apt-pkg/vendorlist.h \ apt-pkg/version.h \ apt-pkg/versionmatch.h install-exec-hook: $(MKDIR_P) $(DESTDIR)/$(methodsdir) $(LN_S) gzip $(DESTDIR)/$(methodsdir)/bzip2 $(LN_S) gzip $(DESTDIR)/$(methodsdir)/xz $(LN_S) gzip $(DESTDIR)/$(methodsdir)/lzma $(LN_S) rsh $(DESTDIR)/$(methodsdir)/ssh