vp-build/vars.mk
Juan RP e59520869b Use a common mk file for all bins, install bins stripped.
--HG--
extra : convert_revision : dd739bbc9c67b099ef690533e02bb3f40aa2dc8a
2009-02-16 18:03:03 +01:00

14 lines
325 B
Makefile

# Common variables.
PREFIX ?= /usr/local
SBINDIR ?= $(PREFIX)/sbin
LIBDIR ?= $(PREFIX)/lib
ETCDIR ?= $(PREFIX)/etc
TOPDIR ?= ..
INSTALL_STRIPPED ?= -s
LDFLAGS += -L$(TOPDIR)/lib -L$(PREFIX)/lib -lxbps
CPPFLAGS += -I$(TOPDIR)/include
CFLAGS += -Wstack-protector -fstack-protector-all
CFLAGS += -O2 -Wall -Werror -fPIC -DPIC