makefile 767 B

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