summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2008-07-12 07:53:03 +0300
committerGuillem Jover <guillem@hadrons.org>2008-07-12 08:09:09 +0300
commit2729ca824d2c277bd1e32cebfe43739996705087 (patch)
treea427f86f5bd199e5527dcd5322cdfcfe70af0d94
parent83210a83a4a13115ce653ec5f1419279a63191f7 (diff)
downloadlibbsd-2729ca824d2c277bd1e32cebfe43739996705087.tar.gz
Define default CFLAGS overridable by the environment
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ac177dc..f2f079f 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,9 @@ LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))
LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o)
LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
+# Set default value for compilation
+CFLAGS ?= -g -Wall -Wextra -Wno-unused-variable
+
MK_CFLAGS := -Iinclude/ -include bsd/bsd.h -D_GNU_SOURCE -D__REENTRANT
prefix := /usr