summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 939c15a..ff871d0 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,10 @@
# By default the main source file also carries this name.
#
PLUGIN = ffnetdev
-DEBUG = 1
+
+# Debugging on/off
+FFNETDEV_DEBUG = 1
+
### The version number of this plugin (taken from the main source file):
@@ -44,20 +47,25 @@ INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I.
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+
### The object files (add further files here):
COMMONOBJS = i18n.o \
\
tools/source.o tools/select.o tools/socket.o tools/tools.o
-
+
SERVEROBJS = $(PLUGIN).o \
\
ffnetdev.o ffnetdevsetup.o osdworker.o tsworker.o clientcontrol.o netosd.o streamdevice.o \
pes2ts.o remote.o vncEncodeRRE.o vncEncodeCoRRE.o vncEncodeHexT.o \
vncEncoder.o translate.o \
-
+
ifdef DEBUG
+ FFNETDEV_DEBUG = 1
+endif
+
+ifdef FFNETDEV_DEBUG
DEFINES += -DDEBUG
CXXFLAGS += -g
else