X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/21248c0f00ee71412dbadc6ebf84011cf974346d..8d0d92558c00d1825e413ce67be51a46a5c18aea:/apt-pkg/makefile?ds=sidebyside diff --git a/apt-pkg/makefile b/apt-pkg/makefile index 45dcddfe3..789d3f2fd 100644 --- a/apt-pkg/makefile +++ b/apt-pkg/makefile @@ -12,6 +12,7 @@ include ../buildlib/defaults.mak # The library name and version (indirectly used from init.h) include ../buildlib/libversion.mak +CPPFLAGS+=-DAPT_PKG_EXPOSE_STRING_VIEW LIBRARY=apt-pkg MAJOR=$(LIBAPTPKG_MAJOR) MINOR=$(LIBAPTPKG_RELEASE) @@ -25,9 +26,12 @@ endif ifeq ($(HAVE_LZMA),yes) SLIBS+= -llzma endif +ifeq ($(HAVE_LZ4),yes) +SLIBS+= -llz4 +endif APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR) -SOURCE = $(wildcard *.cc */*.cc) -HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h))) +SOURCE = $(sort $(wildcard *.cc */*.cc)) +HEADERS = $(addprefix apt-pkg/,$(notdir $(sort $(wildcard *.h */*.h)))) include $(LIBRARY_H)