]>
Commit | Line | Data |
---|---|---|
094a497d AL |
1 | # -*- make -*- |
2 | BASE=.. | |
3164dff9 | 3 | SUBDIR=apt-pkg |
094a497d AL |
4 | |
5 | # Header location | |
6d38011b | 6 | SUBDIRS = deb edsp contrib |
094a497d AL |
7 | HEADER_TARGETDIRS = apt-pkg |
8 | ||
9 | # Bring in the default rules | |
10 | include ../buildlib/defaults.mak | |
11 | ||
23d84658 DK |
12 | # The library name and version (indirectly used from init.h) |
13 | include ../buildlib/libversion.mak | |
53c3a8fa | 14 | |
eff0c22e | 15 | CXXFLAGS+=-DAPT_PKG_EXPOSE_STRING_VIEW |
094a497d | 16 | LIBRARY=apt-pkg |
23d84658 DK |
17 | MAJOR=$(LIBAPTPKG_MAJOR) |
18 | MINOR=$(LIBAPTPKG_RELEASE) | |
cc480014 | 19 | SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl -lresolv |
c4997486 DK |
20 | ifeq ($(HAVE_ZLIB),yes) |
21 | SLIBS+= -lz | |
22 | endif | |
23 | ifeq ($(HAVE_BZ2),yes) | |
24 | SLIBS+= -lbz2 | |
25 | endif | |
7f350a37 DK |
26 | ifeq ($(HAVE_LZMA),yes) |
27 | SLIBS+= -llzma | |
28 | endif | |
e3fbd54c JAK |
29 | ifeq ($(HAVE_LZ4),yes) |
30 | SLIBS+= -llz4 | |
31 | endif | |
23d84658 | 32 | APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR) |
094a497d | 33 | |
53c3a8fa DK |
34 | SOURCE = $(wildcard *.cc */*.cc) |
35 | HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h))) | |
094a497d | 36 | |
094a497d | 37 | include $(LIBRARY_H) |