summaryrefslogtreecommitdiff
path: root/newplugin
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-01 14:05:36 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-01 14:05:36 +0100
commit5dd0c65e3519c21f79b0e8f69df01c28223e6283 (patch)
tree4c2eb9ab0ddac19762b831c45081681a32c5515a /newplugin
parent5a418a9efe541cb4902475bda0ebe79da32915aa (diff)
downloadvdr-5dd0c65e3519c21f79b0e8f69df01c28223e6283.tar.gz
vdr-5dd0c65e3519c21f79b0e8f69df01c28223e6283.tar.bz2
The Makefile now includes the file Make.config
Diffstat (limited to 'newplugin')
-rwxr-xr-xnewplugin21
1 files changed, 12 insertions, 9 deletions
diff --git a/newplugin b/newplugin
index 4032b4f0..c5a06af3 100755
--- a/newplugin
+++ b/newplugin
@@ -12,7 +12,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: newplugin 1.10 2002/11/01 10:06:32 kls Exp $
+# $Id: newplugin 1.11 2002/11/01 13:43:50 kls Exp $
$PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n";
@@ -68,14 +68,22 @@ PLUGIN = $PLUGIN_NAME
VERSION = \$(shell grep 'static const char \\*VERSION *=' \$(PLUGIN).c | awk '{ print \$\$6 }' | sed -e 's/[";]//g')
+### The C++ compiler and options:
+
+CXX = g++
+CXXFLAGS = -O2 -Wall -Woverloaded-virtual
+
### The directory environment:
-DVBDIR = ../../../../DVB/include
+DVBDIR = ../../../../DVB
VDRDIR = ../../..
-VDRINC = \$(VDRDIR)/include
LIBDIR = ../../lib
TMPDIR = /tmp
+### Allow user defined options to overwrite defaults:
+
+-include \$(VDRDIR)/Make.config
+
### The version number of VDR (taken from VDR's "config.h"):
VDRVERSION = \$(shell grep 'define VDRVERSION ' \$(VDRDIR)/config.h | awk '{ print \$\$3 }' | sed -e 's/"//g')
@@ -87,7 +95,7 @@ PACKAGE = vdr-\$(ARCHIVE)
### Includes and Defines (add further entries here):
-INCLUDES = -I\$(VDRINC) -I\$(DVBDIR)
+INCLUDES += -I\$(VDRDIR)/include -I\$(DVBDIR)/include
DEFINES += -DPLUGIN_NAME_I18N='"\$(PLUGIN)"'
@@ -95,11 +103,6 @@ DEFINES += -DPLUGIN_NAME_I18N='"\$(PLUGIN)"'
OBJS = \$(PLUGIN).o
-### The C++ compiler and options:
-
-CXX = g++
-CXXFLAGS = -O2 -Wall -Woverloaded-virtual
-
### Implicit rules:
%.o: %.c