]> git.saurik.com Git - apt.git/blame - apt-pkg/makefile
headers are for declarations only
[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
53c3a8fa 14
094a497d 15LIBRARY=apt-pkg
23d84658
DK
16MAJOR=$(LIBAPTPKG_MAJOR)
17MINOR=$(LIBAPTPKG_RELEASE)
c4997486
DK
18SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl
19ifeq ($(HAVE_ZLIB),yes)
20SLIBS+= -lz
21endif
22ifeq ($(HAVE_BZ2),yes)
23SLIBS+= -lbz2
24endif
7f350a37
DK
25ifeq ($(HAVE_LZMA),yes)
26SLIBS+= -llzma
27endif
23d84658 28APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
094a497d 29
53c3a8fa
DK
30SOURCE = $(wildcard *.cc */*.cc)
31HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h)))
094a497d 32
094a497d 33include $(LIBRARY_H)