Commit 2729ca824d2c277bd1e32cebfe43739996705087

Guillem Jover 2008-07-12T07:53:03

Define default CFLAGS overridable by the environment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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