2008-12-21 22:57:02 +00:00
|
|
|
# Common variables.
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
2008-12-22 01:14:40 +00:00
|
|
|
SBINDIR ?= $(PREFIX)/sbin
|
2008-12-21 22:57:02 +00:00
|
|
|
LIBDIR ?= $(PREFIX)/lib
|
2009-02-05 14:21:33 +00:00
|
|
|
ETCDIR ?= $(PREFIX)/etc
|
2009-02-05 13:46:09 +00:00
|
|
|
TOPDIR ?= ..
|
2009-02-16 17:03:03 +00:00
|
|
|
INSTALL_STRIPPED ?= -s
|
2008-12-21 22:57:02 +00:00
|
|
|
|
2009-02-07 12:30:02 +00:00
|
|
|
LDFLAGS += -L$(TOPDIR)/lib -L$(PREFIX)/lib -lxbps
|
2009-02-05 13:46:09 +00:00
|
|
|
CPPFLAGS += -I$(TOPDIR)/include
|
2008-12-22 04:13:10 +00:00
|
|
|
CFLAGS += -Wstack-protector -fstack-protector-all
|
2009-02-18 00:07:51 +00:00
|
|
|
CFLAGS += -O2 -Wall -Wextra -Werror -fPIC -DPIC
|