summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:11:35 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:16:06 +0100
commit1be7c90f6828eb08915ed71ab0e561fbbc7505dd (patch)
treed8a99c48a4c840ac12cf80e9642c3625958e6f36 /src
parent25803d8daa30bc8c113b72c7f11b831ca1bf249d (diff)
downloadadvtime-1be7c90f6828eb08915ed71ab0e561fbbc7505dd.tar.gz
advtime-1be7c90f6828eb08915ed71ab0e561fbbc7505dd.tar.bz2
advtime-1be7c90f6828eb08915ed71ab0e561fbbc7505dd.zip
Makefile: Allow specifying DEBUG=1 as parameter
Diffstat (limited to 'src')
-rw-r--r--src/Makefile3
-rw-r--r--src/decode_frame.c2
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 <stdio.h>
#include <stdlib.h>
#include <stdint.h>