author | kergoth <kergoth> | 2003-08-09 19:43:03 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 19:43:03 (UTC) |
commit | 102a00422a155cef204977f6bb7b3f530b7b8c19 (patch) (unidiff) | |
tree | c4add67d773b27cad52c719cc032431cb687c3f9 /Vars.make | |
parent | 3a53173f75c21417bf7601b60a791f72fbb4631d (diff) | |
download | opie-102a00422a155cef204977f6bb7b3f530b7b8c19.zip opie-102a00422a155cef204977f6bb7b3f530b7b8c19.tar.gz opie-102a00422a155cef204977f6bb7b3f530b7b8c19.tar.bz2 |
Merges.
-rw-r--r-- | Vars.make | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,107 +1,111 @@ | |||
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 | 18 | ifdef CONFIG_TARGET_X86 |
19 | PLATFORM=x86-linux | 19 | PLATFORM=x86-linux |
20 | endif | 20 | endif |
21 | ifdef CONFIG_TARGET_SHARP | 21 | ifdef CONFIG_TARGET_SHARP |
22 | PLATFORM=sharp-linux | 22 | PLATFORM=sharp-linux |
23 | endif | 23 | endif |
24 | ifdef CONFIG_TARGET_IPAQ | 24 | ifdef CONFIG_TARGET_IPAQ |
25 | PLATFORM=ipaq-linux | 25 | PLATFORM=ipaq-linux |
26 | endif | 26 | endif |
27 | ifdef CONFIG_TARGET_RAMSES | 27 | ifdef CONFIG_TARGET_RAMSES |
28 | PLATFORM=ramses-linux | 28 | PLATFORM=ramses-linux |
29 | endif | 29 | endif |
30 | ifdef CONFIG_TARGET_SIMPAD | 30 | ifdef CONFIG_TARGET_SIMPAD |
31 | PLATFORM=simpad-linux | 31 | PLATFORM=simpad-linux |
32 | endif | 32 | endif |
33 | 33 | ||
34 | export QMAKE:=$(OPIEDIR)/qmake/qmake | 34 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
35 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 35 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
36 | 36 | ||
37 | ifeq ($(QPE_VERSION),) | 37 | ifeq ($(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 |
46 | endif | 46 | endif |
47 | export QPE_VERSION | 47 | export QPE_VERSION |
48 | 48 | ||
49 | 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)) |
50 | ifeq ($(VERSION_CVS),) | 50 | ifeq ($(VERSION_CVS),) |
51 | VERSION_CVS:=$(shell date +%Y%m%d) | 51 | VERSION_CVS:=$(shell date +%Y%m%d) |
52 | endif | 52 | endif |
53 | 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)),) |
54 | SUB_VERSION:=$(VERSION_CVS) | 54 | SUB_VERSION:=$(VERSION_CVS) |
55 | endif | 55 | endif |
56 | export SUB_VERSION | 56 | export SUB_VERSION |
57 | 57 | ||
58 | ifneq ($(strip $(SUB_VERSION)),) | ||
59 | EXTRAVERSION=-$(SUB_VERSION) | ||
60 | endif | ||
61 | |||
58 | ifeq ($(QTE_REVISION),) | 62 | ifeq ($(QTE_REVISION),) |
59 | QTE_REVISION=5 | 63 | QTE_REVISION=5 |
60 | endif | 64 | endif |
61 | export QTE_REVISION | 65 | export QTE_REVISION |
62 | 66 | ||
63 | export DEB_VERSION=2.0 | 67 | export DEB_VERSION=2.0 |
64 | 68 | ||
65 | ifeq ($(QTE_BASEVERSION),) | 69 | ifeq ($(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 |
71 | endif | 75 | endif |
72 | export QTE_BASEVERSION | 76 | export QTE_BASEVERSION |
73 | 77 | ||
74 | ifeq ($(QTE_VERSION),) | 78 | ifeq ($(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 |
80 | endif | 84 | endif |
81 | export QTE_VERSION | 85 | export QTE_VERSION |
82 | 86 | ||
83 | export PATH:=$(OPIEDIR)/scripts:$(PATH) | 87 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
84 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 88 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
85 | 89 | ||
86 | ifdef CONFIG_OPTIMIZATIONS | 90 | ifdef CONFIG_OPTIMIZATIONS |
87 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 91 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
88 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 92 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
89 | endif | 93 | endif |
90 | 94 | ||
91 | ifeq ($(STRIP),) | 95 | ifeq ($(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 |
107 | endif | 111 | endif |