From ca71c83e5d68f7995442c5c3a9f0d61fed1d2224 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 9 May 2014 01:05:21 +0200 Subject: Version 0.1.2 --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 209effe..d2dd336 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ TMPDIR ?= /tmp ### The compiler options: export CFLAGS = $(call PKGCFG,cflags) -export CXXFLAGS = $(call PKGCFG,cxxflags) +export CXXFLAGS = $(call PKGCFG,cxxflags) -Wno-unused-result -Wunused-value -Wunused-variable -Wreturn-type -Wuninitialized -Wsign-compare ### The version number of VDR's plugin API: @@ -35,7 +35,7 @@ APIVERSION = $(call PKGCFG,apiversion) -include $(PLGCFG) -LIBS = -lmysqlclient_r -luuid +LIBS = $(shell mysql_config --libs_r) -luuid ### The name of the distribution archive: @@ -48,9 +48,9 @@ SOFILE = libvdr-$(PLUGIN).so ### Includes and Defines (add further entries here): -INCLUDES += +INCLUDES += $(shell mysql_config --include) -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DLOG_PREFIX='"$(PLUGIN): "' DEFINES += -DVDR_PLUGIN -DUSEUUID ifeq ($(IMAGELIB), imagemagick) @@ -129,4 +129,7 @@ dist: $(I18Npo) clean clean: @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot - @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ + @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ lib/*~ + +cppchk: + cppcheck --template="{file}:{line}:{severity}:{message}" --quiet --force *.c *.h lib/*.c lib/*.h -- cgit v1.2.3