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