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