From: Guillem Jover Date: Sat, 12 Jul 2008 04:53:03 +0000 (+0300) Subject: Define default CFLAGS overridable by the environment X-Git-Tag: 0.0~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2729ca824d2c277bd1e32cebfe43739996705087;p=thirdparty%2Flibbsd.git Define default CFLAGS overridable by the environment --- 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