From: dv1tas Date: Sat, 12 Nov 2011 19:22:50 +0000 (+0000) Subject: Add devel/release mode switch to the Makefile X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7701a6b84bfb47c89a9c7578653b6cee3ac0c7;p=people%2Fms%2Fmstpd.git Add devel/release mode switch to the Makefile git-svn-id: svn://svn.code.sf.net/p/mstpd/code/trunk@16 fbe50366-0c72-4402-a84b-5d246361dba7 --- diff --git a/Makefile b/Makefile index 4d46789..8e8a824 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +MODE = devel version := 0.01 DSOURCES = main.c epoll_loop.c brmon.c bridge_track.c libnetlink.c mstp.c \ @@ -9,9 +10,13 @@ CTLSOURCES = ctl_main.c ctl_socket_client.c CTLOBJECTS = $(CTLSOURCES:.c=.o) -CFLAGS += -Werror -O2 -D_REENTRANT -D__LINUX__ -DVERSION=$(version) -I. \ +CFLAGS += -O2 -D_REENTRANT -D__LINUX__ -DVERSION=$(version) -I. \ -D_GNU_SOURCE -D__LIBC_HAS_VERSIONSORT__ +ifeq ($(MODE),devel) +CFLAGS += -Werror +endif + all: mstpd mstpctl mstpd: $(DOBJECTS)