]> git.saurik.com Git - apt.git/blob - apt-pkg/makefile
f4e750d34ad72db3bb21af9cc113cf7838f5a8a2
[apt.git] / apt-pkg / makefile
1 # -*- make -*-
2 BASE=..
3 SUBDIR=apt-pkg
4
5 # Header location
6 SUBDIRS = deb edsp contrib
7 HEADER_TARGETDIRS = apt-pkg
8
9 # Bring in the default rules
10 include ../buildlib/defaults.mak
11
12 # The library name and version (indirectly used from init.h)
13 include ../buildlib/libversion.mak
14
15 LIBRARY=apt-pkg
16 MAJOR=$(LIBAPTPKG_MAJOR)
17 MINOR=$(LIBAPTPKG_RELEASE)
18 SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl -lresolv
19 ifeq ($(HAVE_ZLIB),yes)
20 SLIBS+= -lz
21 endif
22 ifeq ($(HAVE_BZ2),yes)
23 SLIBS+= -lbz2
24 endif
25 ifeq ($(HAVE_LZMA),yes)
26 SLIBS+= -llzma
27 endif
28 ifeq ($(HAVE_LZ4),yes)
29 SLIBS+= -llz4
30 endif
31 APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
32
33 SOURCE = $(wildcard *.cc */*.cc)
34 HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h)))
35
36 include $(LIBRARY_H)