]> git.saurik.com Git - apt.git/blame - apt-pkg/makefile
Use some semantically more correct buffer operations
[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
401d8893 15CPPFLAGS+=-DAPT_PKG_EXPOSE_STRING_VIEW
094a497d 16LIBRARY=apt-pkg
23d84658
DK
17MAJOR=$(LIBAPTPKG_MAJOR)
18MINOR=$(LIBAPTPKG_RELEASE)
cc480014 19SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl -lresolv
c4997486
DK
20ifeq ($(HAVE_ZLIB),yes)
21SLIBS+= -lz
22endif
23ifeq ($(HAVE_BZ2),yes)
24SLIBS+= -lbz2
25endif
7f350a37
DK
26ifeq ($(HAVE_LZMA),yes)
27SLIBS+= -llzma
28endif
e3fbd54c
JAK
29ifeq ($(HAVE_LZ4),yes)
30SLIBS+= -llz4
31endif
23d84658 32APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
094a497d 33
831ea74c
MR
34SOURCE = $(sort $(wildcard *.cc */*.cc))
35HEADERS = $(addprefix apt-pkg/,$(notdir $(sort $(wildcard *.h */*.h))))
094a497d 36
094a497d 37include $(LIBRARY_H)