makefile 676 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=apt-pkg
  4. # Header location
  5. SUBDIRS = deb edsp contrib
  6. HEADER_TARGETDIRS = apt-pkg
  7. # Bring in the default rules
  8. include ../buildlib/defaults.mak
  9. # The library name and version (indirectly used from init.h)
  10. include ../buildlib/libversion.mak
  11. LIBRARY=apt-pkg
  12. MAJOR=$(LIBAPTPKG_MAJOR)
  13. MINOR=$(LIBAPTPKG_RELEASE)
  14. SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl
  15. ifeq ($(HAVE_ZLIB),yes)
  16. SLIBS+= -lz
  17. endif
  18. ifeq ($(HAVE_BZ2),yes)
  19. SLIBS+= -lbz2
  20. endif
  21. ifeq ($(HAVE_LZMA),yes)
  22. SLIBS+= -llzma
  23. endif
  24. APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
  25. SOURCE = $(wildcard *.cc */*.cc)
  26. HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h)))
  27. include $(LIBRARY_H)