summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2006-04-25 02:09:14 +0200
committerThomas Günther <tom@toms-cafe.de>2006-04-25 02:09:14 +0200
commit613de17b03f8653219716f6d25745df7e02ac44d (patch)
treea6b51c104b3efe79ad4b13c581e34e130f7677fd /tools
parente9bf999004a4698c75d8aefa9033af87fc086e64 (diff)
downloadvdr-plugin-sudoku-613de17b03f8653219716f6d25745df7e02ac44d.tar.gz
vdr-plugin-sudoku-613de17b03f8653219716f6d25745df7e02ac44d.tar.bz2
Added support for APIVERSION define in Makefile
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/Makefile b/tools/Makefile
index cd02cfb..3dbc685 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -3,7 +3,7 @@
#
# See the README file for copyright information and how to reach the author.
#
-# $Id: Makefile 11 2005-10-28 01:00:01Z tom $
+# $Id: Makefile 28 2006-04-25 00:09:14Z tom $
# Define STATIC_LINK=1 to force static linking
#STATIC_LINK = 1
@@ -15,11 +15,11 @@ PROGRAM = sudoku_generator
SRCS = ../puzzle.cpp ../generator.cpp ../solver.cpp ../backtrack.cpp
-VERSION = $(shell grep 'static const char\* VERSION *=' ../sudoku.cpp | \
- awk '{ print $$6 }' | sed -e 's/[";]//g')
+VERSION = $(shell sed -ne '/static .* VERSION *=/s/^.*"\(.*\)".*$$/\1/p' \
+ ../sudoku.cpp)
CXX ?= g++
-CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual
+CXXFLAGS ?= -g -O2 -Wall -Woverloaded-virtual
DEFINES += -D_GNU_SOURCE -DVERSION=\"$(VERSION)\"
ifdef STATIC_LINK