xbps/vars.mk
Juan RP 534f7f0306 vars.mk: _BSD_SOURCE does not need to be defined.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022124833-g1z0iznkjw4nayjs
2009-10-22 14:48:33 +02:00

21 lines
657 B
Makefile

# Common variables.
PREFIX ?= /usr/local
SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin
LIBDIR ?= $(DESTDIR)$(PREFIX)/lib
TOPDIR ?= ..
INSTALL_STRIPPED ?= -s
ifdef DEBUG
INSTALL_STRIPPED=
DEBUG_FLAGS = -g
endif
STATIC_LIBS ?= -lprop -lpthread -larchive
LDFLAGS += -L$(TOPDIR)/lib -L$(PREFIX)/lib -lxbps
CPPFLAGS += -I$(TOPDIR)/include -D_XOPEN_SOURCE=600 -D_GNU_SOURCE
WARNFLAGS ?= -pedantic -std=c99 -Wall -Wextra -Werror -Wshadow -Wformat=2
WARNFLAGS += -Wmissing-declarations -Wcomment -Wunused-macros -Wendif-labels
WARNFLAGS += -Wcast-qual -Wcast-align -Wconversion -Wstack-protector
CFLAGS = $(DEBUG_FLAGS) $(WARNFLAGS) -fstack-protector-all -O2 -fPIC -DPIC