|
diff --git a/Vars.make b/Vars.make index 5e2cd7b..238918f 100644 --- a/ Vars.make+++ b/ Vars.make |
|
@@ -1,113 +1,121 @@ |
1 | ifndef QTDIR |
| |
2 | $(error QTDIR not set) |
| |
3 | endif |
| |
4 | |
| |
5 | prefix=/opt/QtPalmtop |
1 | prefix=/opt/QtPalmtop |
6 | |
2 | |
7 | ifeq ($(OPIEDIR),) |
3 | ifeq ($(OPIEDIR),) |
8 | export OPIEDIR:=$(TOPDIR) |
4 | export OPIEDIR:=$(TOPDIR) |
9 | endif |
5 | endif |
10 | ifeq ($(IPK_DIR),) |
6 | ifeq ($(IPK_DIR),) |
11 | export IPK_DIR:=$(OPIEDIR) |
7 | export IPK_DIR:=$(OPIEDIR) |
12 | endif |
8 | endif |
13 | |
9 | |
14 | ifneq ($(wildcard $(TOPDIR)/.config),) |
10 | ifneq ($(wildcard $(TOPDIR)/.config),) |
15 | include $(TOPDIR)/.config |
11 | include $(TOPDIR)/.config |
16 | endif |
12 | endif |
17 | |
13 | |
| |
14 | ifndef CONFIG_TARGET_OE |
| |
15 | ifndef QTDIR |
| |
16 | $(error QTDIR not set) |
| |
17 | endif |
| |
18 | else |
| |
19 | OEDIR:=$(CONFIG_OE_BUILD_DIR) |
| |
20 | QTDIR:=$(OEDIR)/tmp/staging/arm-linux/qt2 |
| |
21 | $(shell mkdir -p $(QTDIR)/src/moc) |
| |
22 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) |
| |
23 | PLATFORM=sharp-linux |
| |
24 | endif |
| |
25 | |
18 | ifdef CONFIG_TARGET_X86 |
26 | ifdef CONFIG_TARGET_X86 |
19 | PLATFORM=x86-linux |
27 | PLATFORM=x86-linux |
20 | endif |
28 | endif |
21 | ifdef CONFIG_TARGET_SHARP |
29 | ifdef CONFIG_TARGET_SHARP |
22 | PLATFORM=sharp-linux |
30 | PLATFORM=sharp-linux |
23 | endif |
31 | endif |
24 | ifdef CONFIG_TARGET_IPAQ |
32 | ifdef CONFIG_TARGET_IPAQ |
25 | PLATFORM=ipaq-linux |
33 | PLATFORM=ipaq-linux |
26 | endif |
34 | endif |
27 | ifdef CONFIG_TARGET_RAMSES |
35 | ifdef CONFIG_TARGET_RAMSES |
28 | PLATFORM=ramses-linux |
36 | PLATFORM=ramses-linux |
29 | endif |
37 | endif |
30 | ifdef CONFIG_TARGET_SIMPAD |
38 | ifdef CONFIG_TARGET_SIMPAD |
31 | PLATFORM=simpad-linux |
39 | PLATFORM=simpad-linux |
32 | endif |
40 | endif |
33 | |
41 | |
34 | ifdef CONFIG_TARGET_YOPY |
42 | ifdef CONFIG_TARGET_YOPY |
35 | PLATFORM=yopy-linux |
43 | PLATFORM=yopy-linux |
36 | endif |
44 | endif |
37 | ifdef CONFIG_TARGET_MACOSX |
45 | ifdef CONFIG_TARGET_MACOSX |
38 | PLATFORM=macx-darwin |
46 | PLATFORM=macx-darwin |
39 | endif |
47 | endif |
40 | |
48 | |
41 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
49 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
42 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
50 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
43 | |
51 | |
44 | ifeq ($(QPE_VERSION),) |
52 | ifeq ($(QPE_VERSION),) |
45 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
53 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
46 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
54 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
47 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) |
55 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) |
48 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) |
56 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) |
49 | |
57 | |
50 | ifeq ($(QPE_VERSION),..) |
58 | ifeq ($(QPE_VERSION),..) |
51 | QPE_VERSION=1.1.2 |
59 | QPE_VERSION=1.1.2 |
52 | endif |
60 | endif |
53 | endif |
61 | endif |
54 | export QPE_VERSION |
62 | export QPE_VERSION |
55 | |
63 | |
56 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
64 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
57 | ifeq ($(VERSION_CVS),) |
65 | ifeq ($(VERSION_CVS),) |
58 | VERSION_CVS:=$(shell date +%s) |
66 | VERSION_CVS:=$(shell date +%s) |
59 | endif |
67 | endif |
60 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
68 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
61 | SUB_VERSION:=$(VERSION_CVS) |
69 | SUB_VERSION:=$(VERSION_CVS) |
62 | endif |
70 | endif |
63 | export SUB_VERSION |
71 | export SUB_VERSION |
64 | |
72 | |
65 | ifneq ($(strip $(SUB_VERSION)),) |
73 | ifneq ($(strip $(SUB_VERSION)),) |
66 | EXTRAVERSION=-$(SUB_VERSION) |
74 | EXTRAVERSION=-$(SUB_VERSION) |
67 | endif |
75 | endif |
68 | |
76 | |
69 | ifeq ($(QTE_REVISION),) |
77 | ifeq ($(QTE_REVISION),) |
70 | QTE_REVISION=6 |
78 | QTE_REVISION=6 |
71 | endif |
79 | endif |
72 | export QTE_REVISION |
80 | export QTE_REVISION |
73 | |
81 | |
74 | export DEB_VERSION=2.0 |
82 | export DEB_VERSION=2.0 |
75 | |
83 | |
76 | ifeq ($(QTE_BASEVERSION),) |
84 | ifeq ($(QTE_BASEVERSION),) |
77 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
85 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
78 | 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/;') |
86 | 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/;') |
79 | else |
87 | else |
80 | QTE_BASEVERSION=2.3.7 |
88 | QTE_BASEVERSION=2.3.7 |
81 | endif |
89 | endif |
82 | endif |
90 | endif |
83 | export QTE_BASEVERSION |
91 | export QTE_BASEVERSION |
84 | |
92 | |
85 | ifeq ($(QTE_VERSION),) |
93 | ifeq ($(QTE_VERSION),) |
86 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
94 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
87 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') |
95 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') |
88 | else |
96 | else |
89 | QTE_VERSION=2.3.7 |
97 | QTE_VERSION=2.3.7 |
90 | endif |
98 | endif |
91 | endif |
99 | endif |
92 | export QTE_VERSION |
100 | export QTE_VERSION |
93 | |
101 | |
94 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
102 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
95 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
103 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
96 | |
104 | |
97 | ifdef CONFIG_OPTIMIZATIONS |
105 | ifdef CONFIG_OPTIMIZATIONS |
98 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
106 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
99 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
107 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
100 | endif |
108 | endif |
101 | |
109 | |
102 | ifeq ($(STRIP),) |
110 | ifeq ($(STRIP),) |
103 | ifneq ($(CONFIG_TARGET_X86),) |
111 | ifneq ($(CONFIG_TARGET_X86),) |
104 | STRIP=strip |
112 | STRIP=strip |
105 | endif |
113 | endif |
106 | ifneq ($(CONFIG_TARGET_IPAQ),) |
114 | ifneq ($(CONFIG_TARGET_IPAQ),) |
107 | STRIP=arm-linux-strip |
115 | STRIP=arm-linux-strip |
108 | endif |
116 | endif |
109 | ifneq ($(CONFIG_TARGET_SHARP),) |
117 | ifneq ($(CONFIG_TARGET_SHARP),) |
110 | STRIP=arm-linux-strip |
118 | STRIP=arm-linux-strip |
111 | endif |
119 | endif |
112 | ifneq ($(CONFIG_TARGET_RAMSES),) |
120 | ifneq ($(CONFIG_TARGET_RAMSES),) |
113 | STRIP=arm-linux-strip |
121 | STRIP=arm-linux-strip |
|