]> git.saurik.com Git - apt.git/blob - apt-pkg/makefile
string_view: Drop constexpr constructor for standard compatibility
[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 CXXFLAGS+=-DAPT_PKG_EXPOSE_STRING_VIEW
16 LIBRARY=apt-pkg
17 MAJOR=$(LIBAPTPKG_MAJOR)
18 MINOR=$(LIBAPTPKG_RELEASE)
19 SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl -lresolv
20 ifeq ($(HAVE_ZLIB),yes)
21 SLIBS+= -lz
22 endif
23 ifeq ($(HAVE_BZ2),yes)
24 SLIBS+= -lbz2
25 endif
26 ifeq ($(HAVE_LZMA),yes)
27 SLIBS+= -llzma
28 endif
29 ifeq ($(HAVE_LZ4),yes)
30 SLIBS+= -llz4
31 endif
32 APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
33
34 SOURCE = $(sort $(wildcard *.cc */*.cc))
35 HEADERS = $(addprefix apt-pkg/,$(notdir $(sort $(wildcard *.h */*.h))))
36
37 include $(LIBRARY_H)