Implement CacheDB for source packages in apt-ftparchive
[ntk/apt.git] / apt-pkg / makefile
CommitLineData
094a497d
AL
1# -*- make -*-
2BASE=..
3164dff9 3SUBDIR=apt-pkg
094a497d
AL
4
5# Header location
6d38011b 6SUBDIRS = deb edsp contrib
094a497d
AL
7HEADER_TARGETDIRS = apt-pkg
8
9# Bring in the default rules
10include ../buildlib/defaults.mak
11
23d84658
DK
12# The library name and version (indirectly used from init.h)
13include ../buildlib/libversion.mak
094a497d 14LIBRARY=apt-pkg
23d84658
DK
15MAJOR=$(LIBAPTPKG_MAJOR)
16MINOR=$(LIBAPTPKG_RELEASE)
c4997486
DK
17SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl
18ifeq ($(HAVE_ZLIB),yes)
19SLIBS+= -lz
20endif
21ifeq ($(HAVE_BZ2),yes)
22SLIBS+= -lbz2
23endif
7f350a37
DK
24ifeq ($(HAVE_LZMA),yes)
25SLIBS+= -llzma
26endif
23d84658 27APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
094a497d
AL
28
29# Source code for the contributed non-core things
30SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
17a10bf5 31 contrib/configuration.cc contrib/progress.cc contrib/cmndline.cc \
c31c1dde 32 contrib/hashsum.cc contrib/md5.cc contrib/sha1.cc \
2f5b6151 33 contrib/sha2_internal.cc contrib/hashes.cc \
592b7800 34 contrib/cdromutl.cc contrib/crc-16.cc contrib/netrc.cc \
2f5b6151
DK
35 contrib/fileutl.cc contrib/gpgv.cc
36HEADERS = mmap.h error.h configuration.h fileutl.h cmndline.h netrc.h \
37 md5.h crc-16.h cdromutl.h strutl.h sptr.h sha1.h sha2.h sha256.h \
38 sha2_internal.h hashes.h hashsum_template.h \
39 macros.h weakptr.h gpgv.h
404ec98e 40
b2e465d6
AL
41# Source code for the core main library
42SOURCE+= pkgcache.cc version.cc depcache.cc \
094a497d 43 orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
b2e465d6 44 pkgrecords.cc algorithms.cc acquire.cc\
c9a64a4d 45 acquire-worker.cc acquire-method.cc init.cc clean.cc \
b2e465d6 46 srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
7db98ffc 47 pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc \
e878aedb 48 indexrecords.cc vendor.cc vendorlist.cc cdrom.cc indexcopy.cc \
8336ae35 49 aptconfiguration.cc cachefilter.cc cacheset.cc edsp.cc \
51355387 50 install-progress.cc upgrade.cc update.cc
b2e465d6
AL
51HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
52 orderlist.h sourcelist.h packagemanager.h tagfile.h \
53 init.h pkgcache.h version.h progress.h pkgrecords.h \
54 acquire.h acquire-worker.h acquire-item.h acquire-method.h \
55 clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
7db98ffc 56 pkgsystem.h indexfile.h metaindex.h indexrecords.h vendor.h \
9ba5aa3b 57 vendorlist.h cdrom.h indexcopy.h aptconfiguration.h \
51355387
MV
58 cachefilter.h cacheset.h edsp.h install-progress.h \
59 upgrade.h update.h
0118833a 60
1bc849af 61# Source code for the debian specific components
b2e465d6
AL
62# In theory the deb headers do not need to be exported..
63SOURCE+= deb/deblistparser.cc deb/debrecords.cc deb/dpkgpm.cc \
64 deb/debsrcrecords.cc deb/debversion.cc deb/debsystem.cc \
7db98ffc 65 deb/debindexfile.cc deb/debindexfile.cc deb/debmetaindex.cc
b2e465d6 66HEADERS+= debversion.h debsrcrecords.h dpkgpm.h debrecords.h \
7db98ffc 67 deblistparser.h debsystem.h debindexfile.h debmetaindex.h
0118833a 68
6d38011b 69# Source code for the APT resolver interface specific components
c3b85126
DK
70SOURCE+= edsp/edsplistparser.cc edsp/edspindexfile.cc edsp/edspsystem.cc
71HEADERS+= edsplistparser.h edspindexfile.h edspsystem.h
6d38011b 72
094a497d
AL
73HEADERS := $(addprefix apt-pkg/,$(HEADERS))
74
094a497d 75include $(LIBRARY_H)