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