summaryrefslogtreecommitdiff
path: root/Vars.make
Unidiff
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/Vars.make b/Vars.make
index cc463d3..59766d1 100644
--- a/Vars.make
+++ b/Vars.make
@@ -1,107 +1,111 @@
1ifndef QTDIR 1ifndef QTDIR
2$(error QTDIR not set) 2$(error QTDIR not set)
3endif 3endif
4 4
5prefix=/opt/QtPalmtop 5prefix=/opt/QtPalmtop
6 6
7ifeq ($(OPIEDIR),) 7ifeq ($(OPIEDIR),)
8 export OPIEDIR:=$(TOPDIR) 8 export OPIEDIR:=$(TOPDIR)
9endif 9endif
10ifeq ($(IPK_DIR),) 10ifeq ($(IPK_DIR),)
11 export IPK_DIR:=$(OPIEDIR) 11 export IPK_DIR:=$(OPIEDIR)
12endif 12endif
13 13
14ifneq ($(wildcard $(TOPDIR)/.config),) 14ifneq ($(wildcard $(TOPDIR)/.config),)
15 include $(TOPDIR)/.config 15 include $(TOPDIR)/.config
16endif 16endif
17 17
18ifdef CONFIG_TARGET_X86 18ifdef CONFIG_TARGET_X86
19 PLATFORM=x86-linux 19 PLATFORM=x86-linux
20endif 20endif
21ifdef CONFIG_TARGET_SHARP 21ifdef CONFIG_TARGET_SHARP
22 PLATFORM=sharp-linux 22 PLATFORM=sharp-linux
23endif 23endif
24ifdef CONFIG_TARGET_IPAQ 24ifdef CONFIG_TARGET_IPAQ
25 PLATFORM=ipaq-linux 25 PLATFORM=ipaq-linux
26endif 26endif
27ifdef CONFIG_TARGET_RAMSES 27ifdef CONFIG_TARGET_RAMSES
28 PLATFORM=ramses-linux 28 PLATFORM=ramses-linux
29endif 29endif
30ifdef CONFIG_TARGET_SIMPAD 30ifdef CONFIG_TARGET_SIMPAD
31 PLATFORM=simpad-linux 31 PLATFORM=simpad-linux
32endif 32endif
33 33
34export QMAKE:=$(OPIEDIR)/qmake/qmake 34export QMAKE:=$(OPIEDIR)/qmake/qmake
35export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 35export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
36 36
37ifeq ($(QPE_VERSION),) 37ifeq ($(QPE_VERSION),)
38 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 38 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
39 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 39 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
40 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) 40 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h))
41 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) 41 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT)
42 42
43 ifeq ($(QPE_VERSION),..) 43 ifeq ($(QPE_VERSION),..)
44 QPE_VERSION=0.9.3 44 QPE_VERSION=0.9.3
45 endif 45 endif
46endif 46endif
47export QPE_VERSION 47export QPE_VERSION
48 48
49SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) 49SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
50ifeq ($(VERSION_CVS),) 50ifeq ($(VERSION_CVS),)
51 VERSION_CVS:=$(shell date +%Y%m%d) 51 VERSION_CVS:=$(shell date +%Y%m%d)
52endif 52endif
53ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) 53ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
54 SUB_VERSION:=$(VERSION_CVS) 54 SUB_VERSION:=$(VERSION_CVS)
55endif 55endif
56export SUB_VERSION 56export SUB_VERSION
57 57
58ifneq ($(strip $(SUB_VERSION)),)
59EXTRAVERSION=-$(SUB_VERSION)
60endif
61
58ifeq ($(QTE_REVISION),) 62ifeq ($(QTE_REVISION),)
59 QTE_REVISION=5 63 QTE_REVISION=5
60endif 64endif
61export QTE_REVISION 65export QTE_REVISION
62 66
63export DEB_VERSION=2.0 67export DEB_VERSION=2.0
64 68
65ifeq ($(QTE_BASEVERSION),) 69ifeq ($(QTE_BASEVERSION),)
66 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 70 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
67 QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') 71 QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;')
68 else 72 else
69 QTE_BASEVERSION=2.3.5 73 QTE_BASEVERSION=2.3.5
70 endif 74 endif
71endif 75endif
72export QTE_BASEVERSION 76export QTE_BASEVERSION
73 77
74ifeq ($(QTE_VERSION),) 78ifeq ($(QTE_VERSION),)
75 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 79 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
76 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') 80 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;')
77 else 81 else
78 QTE_VERSION=2.3.5 82 QTE_VERSION=2.3.5
79 endif 83 endif
80endif 84endif
81export QTE_VERSION 85export QTE_VERSION
82 86
83export PATH:=$(OPIEDIR)/scripts:$(PATH) 87export PATH:=$(OPIEDIR)/scripts:$(PATH)
84export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) 88export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
85 89
86ifdef CONFIG_OPTIMIZATIONS 90ifdef CONFIG_OPTIMIZATIONS
87export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) 91export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS))
88export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) 92export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE))
89endif 93endif
90 94
91ifeq ($(STRIP),) 95ifeq ($(STRIP),)
92 ifneq ($(CONFIG_TARGET_X86),) 96 ifneq ($(CONFIG_TARGET_X86),)
93 STRIP=strip 97 STRIP=strip
94 endif 98 endif
95 ifneq ($(CONFIG_TARGET_IPAQ),) 99 ifneq ($(CONFIG_TARGET_IPAQ),)
96 STRIP=arm-linux-strip 100 STRIP=arm-linux-strip
97 endif 101 endif
98 ifneq ($(CONFIG_TARGET_SHARP),) 102 ifneq ($(CONFIG_TARGET_SHARP),)
99 STRIP=arm-linux-strip 103 STRIP=arm-linux-strip
100 endif 104 endif
101 ifneq ($(CONFIG_TARGET_RAMSES),) 105 ifneq ($(CONFIG_TARGET_RAMSES),)
102 STRIP=arm-linux-strip 106 STRIP=arm-linux-strip
103 endif 107 endif
104 ifneq ($(CONFIG_TARGET_SIMPAD),) 108 ifneq ($(CONFIG_TARGET_SIMPAD),)
105 STRIP=arm-linux-strip 109 STRIP=arm-linux-strip
106 endif 110 endif
107endif 111endif