[dvblast-devel] Make CFLAGS more user-friendly

Dmitry Marakasov git at videolan.org
Sat Oct 15 18:59:18 CEST 2016


dvblast | branch: master | Dmitry Marakasov <amdmi3 at amdmi3.ru> | Tue Oct 11 18:42:48 2016 +0300| [12a1eb975f2f781ac666e8ba06566c93f369bfba] | committer: Dmitry Marakasov

Make CFLAGS more user-friendly

Set bits which may be overridden by the user (debug, optimization)
as default value, and append mandatory stuff (warnings, defines)
later

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=12a1eb975f2f781ac666e8ba06566c93f369bfba
---

 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 8400e30..f34c037 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
 deltacast_inc := $(shell sh -c 'test -f /usr/include/StreamMaster.h && echo -n Y')
 
-CFLAGS += -Wall -Wformat-security -Wno-strict-aliasing -O3 -fomit-frame-pointer
-CFLAGS += -g
+CFLAGS ?= -O3 -fomit-frame-pointer -g
+CFLAGS += -Wall -Wformat-security -Wno-strict-aliasing
 CFLAGS += -DVERSION=\"$(VERSION_MAJOR).$(VERSION_MINOR)\"
 CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR)
 CFLAGS += -DVERSION_MINOR=$(VERSION_MINOR)



More information about the dvblast-devel mailing list