|
diff --git a/Vars.make b/Vars.make index 788ebf5..cc463d3 100644 --- a/ Vars.make+++ b/ Vars.make |
|
@@ -1,91 +1,107 @@ |
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),) |
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 |
55 | endif |
71 | endif |
56 | export QTE_BASEVERSION |
72 | export QTE_BASEVERSION |
57 | |
73 | |
58 | ifeq ($(QTE_VERSION),) |
74 | ifeq ($(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 |
64 | endif |
80 | endif |
65 | export QTE_VERSION |
81 | export QTE_VERSION |
66 | |
82 | |
67 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
83 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
68 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
84 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
69 | |
85 | |
70 | ifdef CONFIG_OPTIMIZATIONS |
86 | ifdef CONFIG_OPTIMIZATIONS |
71 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
87 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
72 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
88 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
73 | endif |
89 | endif |
74 | |
90 | |
75 | ifeq ($(STRIP),) |
91 | ifeq ($(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 |
91 | endif |
107 | endif |
|