2008-12-21 23:57:02 +01:00
|
|
|
# Common variables.
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
2008-12-22 02:14:40 +01:00
|
|
|
SBINDIR ?= $(PREFIX)/sbin
|
2008-12-21 23:57:02 +01:00
|
|
|
LIBDIR ?= $(PREFIX)/lib
|
2009-02-05 15:21:33 +01:00
|
|
|
ETCDIR ?= $(PREFIX)/etc
|
2009-02-05 14:46:09 +01:00
|
|
|
TOPDIR ?= ..
|
2009-02-16 18:03:03 +01:00
|
|
|
INSTALL_STRIPPED ?= -s
|
2008-12-21 23:57:02 +01:00
|
|
|
|
2009-02-07 13:30:02 +01:00
|
|
|
LDFLAGS += -L$(TOPDIR)/lib -L$(PREFIX)/lib -lxbps
|
2009-03-17 16:30:44 +01:00
|
|
|
CPPFLAGS += -I$(TOPDIR)/include -D_BSD_SOURCE -D_XOPEN_SOURCE=600
|
2009-03-13 00:21:55 +01:00
|
|
|
WARNFLAGS ?= -pedantic -std=c99 -Wall -Wextra -Werror -Wshadow -Wformat=2
|
|
|
|
WARNFLAGS += -Wmissing-declarations -Wcomment -Wunused-macros -Wendif-labels
|
|
|
|
CFLAGS += $(WARNFLAGS) -O2 -fPIC -DPIC
|