]>
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 | |
094a497d | 15 | LIBRARY=apt-pkg |
23d84658 DK |
16 | MAJOR=$(LIBAPTPKG_MAJOR) |
17 | MINOR=$(LIBAPTPKG_RELEASE) | |
cc480014 | 18 | SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl -lresolv |
c4997486 DK |
19 | ifeq ($(HAVE_ZLIB),yes) |
20 | SLIBS+= -lz | |
21 | endif | |
22 | ifeq ($(HAVE_BZ2),yes) | |
23 | SLIBS+= -lbz2 | |
24 | endif | |
7f350a37 DK |
25 | ifeq ($(HAVE_LZMA),yes) |
26 | SLIBS+= -llzma | |
27 | endif | |
23d84658 | 28 | APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR) |
094a497d | 29 | |
53c3a8fa DK |
30 | SOURCE = $(wildcard *.cc */*.cc) |
31 | HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h))) | |
094a497d | 32 | |
094a497d | 33 | include $(LIBRARY_H) |