6256b34ccc
* Add proplib-0.4.1 source and use it in XBPS. This is to avoid an external dependency, so that we depend on the features of the internal library. This also means that proplib is not required anymore. * Added support to read/write gzip compressed plists by default, thanks to proplib-0.4 that gained new functionality. That means that from now, XBPS will be able to write compressed gzip plist files for all metadata related work. This will vastly reduce bandwidth required for fetching remote repo's pkg index file and binary packages. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100420122238-zcb85rudt9p34e10
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# Common variables.
|
|
|
|
PREFIX ?= /usr/local
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
TOPDIR ?= ..
|
|
INSTALL_STRIPPED ?= -s
|
|
|
|
# To build the libxbps API documentation, requires graphviz and doxygen.
|
|
# Uncomment this to enable.
|
|
#BUILD_API_DOCS = 1
|
|
|
|
# Uncomment this to build and link from an external proplib.
|
|
#USE_EXTERNAL_PROPLIB = 1
|
|
|
|
LDFLAGS = -L$(TOPDIR)/lib
|
|
CPPFLAGS = -I$(TOPDIR)/include -D_XOPEN_SOURCE=600 -D_GNU_SOURCE
|
|
CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES
|
|
|
|
ifndef USE_EXTERNAL_PROPLIB
|
|
CPPFLAGS += -I$(TOPDIR)/lib/portableproplib
|
|
else
|
|
STATIC_PROPLIB = -lprop
|
|
endif
|
|
|
|
ifdef DEBUG
|
|
INSTALL_STRIPPED =
|
|
DEBUG_FLAGS = -g
|
|
CPPFLAGS += -DDEBUG
|
|
endif
|
|
|
|
WARNFLAGS = -std=c99 -Wall -Wextra -Werror -Wshadow -Wformat=2
|
|
WARNFLAGS += -Wmissing-declarations -Wcomment -Wunused-macros -Wendif-labels
|
|
WARNFLAGS += -Wcast-qual -Wcast-align -Wstack-protector
|
|
CFLAGS = $(DEBUG_FLAGS) $(WARNFLAGS) -fPIC -DPIC -fstack-protector-all
|
|
SHAREDLIB_CFLAGS = -fvisibility=default
|
|
|
|
# Grr, hate the static libs!
|
|
STATIC_LIBS = -lz $(STATIC_PROPLIB) -lpthread
|
|
STATIC_LIBS += `pkg-config openssl --libs --static`
|
|
STATIC_LIBS += `pkg-config libarchive --libs --static`
|