From 7205f4b14f1b472625aeede98505e063c793e633 Mon Sep 17 00:00:00 2001 From: zwer Date: Fri, 28 Sep 2007 14:20:03 +0000 Subject: - added compiling switch 'FFNETDEV_DEBUG' git-svn-id: svn://svn.berlios.de/ffnetdev/trunk@33 1f4bef6d-8e0a-0410-8695-e467da8aaccf --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3