From 1be7c90f6828eb08915ed71ab0e561fbbc7505dd Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 31 Jan 2013 21:11:35 +0100 Subject: Makefile: Allow specifying DEBUG=1 as parameter --- src/Makefile | 3 ++- src/decode_frame.c | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index d2e6a94..2a029c3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,6 @@ +DEBUG=0 CFLAGS=-ggdb -std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes \ - -Wno-unused-parameter -DDEBUG=0 + -Wno-unused-parameter -DDEBUG=$(DEBUG) LIBAV_DECODE_FLAGS=`pkg-config --libs --cflags libavformat libavcodec \ libavutil libswscale` diff --git a/src/decode_frame.c b/src/decode_frame.c index b6c1fc1..de762a8 100644 --- a/src/decode_frame.c +++ b/src/decode_frame.c @@ -1,5 +1,3 @@ -#define DEBUG 0 - #include #include #include -- cgit