|
diff --git a/Vars.make b/Vars.make index 788ebf5..cc463d3 100644 --- a/ Vars.make+++ b/ Vars.make |
|
@@ -1,49 +1,65 @@ |
1 | ifndef QTDIR |
1 | ifndef QTDIR |
2 | $(error QTDIR not set) |
2 | $(error QTDIR not set) |
3 | endif |
3 | endif |
4 | |
4 | |
5 | prefix=/opt/QtPalmtop |
5 | prefix=/opt/QtPalmtop |
6 | |
6 | |
7 | ifeq ($(OPIEDIR),) |
7 | ifeq ($(OPIEDIR),) |
8 | export OPIEDIR:=$(TOPDIR) |
8 | export OPIEDIR:=$(TOPDIR) |
9 | endif |
9 | endif |
10 | ifeq ($(IPK_DIR),) |
10 | ifeq ($(IPK_DIR),) |
11 | export IPK_DIR:=$(OPIEDIR) |
11 | export IPK_DIR:=$(OPIEDIR) |
12 | endif |
12 | endif |
13 | |
13 | |
14 | ifneq ($(wildcard $(TOPDIR)/.config),) |
14 | ifneq ($(wildcard $(TOPDIR)/.config),) |
15 | include $(TOPDIR)/.config |
15 | include $(TOPDIR)/.config |
16 | endif |
16 | endif |
17 | |
17 | |
| |
18 | ifdef CONFIG_TARGET_X86 |
| |
19 | PLATFORM=x86-linux |
| |
20 | endif |
| |
21 | ifdef CONFIG_TARGET_SHARP |
| |
22 | PLATFORM=sharp-linux |
| |
23 | endif |
| |
24 | ifdef CONFIG_TARGET_IPAQ |
| |
25 | PLATFORM=ipaq-linux |
| |
26 | endif |
| |
27 | ifdef CONFIG_TARGET_RAMSES |
| |
28 | PLATFORM=ramses-linux |
| |
29 | endif |
| |
30 | ifdef CONFIG_TARGET_SIMPAD |
| |
31 | PLATFORM=simpad-linux |
| |
32 | endif |
| |
33 | |
18 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
34 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
19 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
35 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
20 | |
36 | |
21 | ifeq ($(QPE_VERSION),) |
37 | ifeq ($(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 |
30 | endif |
46 | endif |
31 | export QPE_VERSION |
47 | export QPE_VERSION |
32 | |
48 | |
33 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
49 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
34 | ifeq ($(VERSION_CVS),) |
50 | ifeq ($(VERSION_CVS),) |
35 | VERSION_CVS:=$(shell date +%Y%m%d) |
51 | VERSION_CVS:=$(shell date +%Y%m%d) |
36 | endif |
52 | endif |
37 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
53 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
38 | SUB_VERSION:=$(VERSION_CVS) |
54 | SUB_VERSION:=$(VERSION_CVS) |
39 | endif |
55 | endif |
40 | export SUB_VERSION |
56 | export SUB_VERSION |
41 | |
57 | |
42 | ifeq ($(QTE_REVISION),) |
58 | ifeq ($(QTE_REVISION),) |
43 | QTE_REVISION=5 |
59 | QTE_REVISION=5 |
44 | endif |
60 | endif |
45 | export QTE_REVISION |
61 | export QTE_REVISION |
46 | |
62 | |
47 | export DEB_VERSION=2.0 |
63 | export DEB_VERSION=2.0 |
48 | |
64 | |
49 | ifeq ($(QTE_BASEVERSION),) |
65 | ifeq ($(QTE_BASEVERSION),) |
|