summaryrefslogtreecommitdiff
path: root/Vars.make
authorllornkcor <llornkcor>2006-04-23 20:19:27 (UTC)
committer llornkcor <llornkcor>2006-04-23 20:19:27 (UTC)
commit226ccbb7d87a54411d640432f0ac19cbd942aa01 (patch) (unidiff)
tree6d343d37cc3e9c2c4b9a8148a8f7cb32d110c322 /Vars.make
parentfce7a143353e2bdd41d878c6f0a1224e0f2a158e (diff)
downloadopie-226ccbb7d87a54411d640432f0ac19cbd942aa01.zip
opie-226ccbb7d87a54411d640432f0ac19cbd942aa01.tar.gz
opie-226ccbb7d87a54411d640432f0ac19cbd942aa01.tar.bz2
add support for HTC Universal device
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make3
1 files changed, 3 insertions, 0 deletions
diff --git a/Vars.make b/Vars.make
index b99da70..457f867 100644
--- a/Vars.make
+++ b/Vars.make
@@ -1,138 +1,141 @@
1prefix=/opt/QtPalmtop 1prefix=/opt/QtPalmtop
2 2
3ifeq ($(OPIEDIR),) 3ifeq ($(OPIEDIR),)
4 export OPIEDIR:=$(TOPDIR) 4 export OPIEDIR:=$(TOPDIR)
5endif 5endif
6ifeq ($(IPK_DIR),) 6ifeq ($(IPK_DIR),)
7 export IPK_DIR:=$(OPIEDIR) 7 export IPK_DIR:=$(OPIEDIR)
8endif 8endif
9 9
10ifneq ($(wildcard $(TOPDIR)/.config),) 10ifneq ($(wildcard $(TOPDIR)/.config),)
11 include $(TOPDIR)/.config 11 include $(TOPDIR)/.config
12endif 12endif
13 13
14ifndef CONFIG_TARGET_OE 14ifndef CONFIG_TARGET_OE
15 ifndef QTDIR 15 ifndef QTDIR
16 $(error QTDIR not set) 16 $(error QTDIR not set)
17 endif 17 endif
18else 18else
19 OEDIR:=$(shell echo $(CONFIG_OE_BUILD_DIR) | sed -e's/"//g') 19 OEDIR:=$(shell echo $(CONFIG_OE_BUILD_DIR) | sed -e's/"//g')
20 OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_SYS) | sed -e's/"//g') 20 OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_SYS) | sed -e's/"//g')
21 OETARGETSYS:=$(shell echo $(CONFIG_OE_TARGET_SYS) | sed -e's/"//g') 21 OETARGETSYS:=$(shell echo $(CONFIG_OE_TARGET_SYS) | sed -e's/"//g')
22 QTDIR:=$(shell echo $(OEDIR) | sed -e's/"//g')/tmp/staging/$(OETARGETSYS)/qt2 22 QTDIR:=$(shell echo $(OEDIR) | sed -e's/"//g')/tmp/staging/$(OETARGETSYS)/qt2
23 $(shell mkdir -p $(QTDIR)/src/moc) 23 $(shell mkdir -p $(QTDIR)/src/moc)
24 $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) 24 $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile)
25 PLATFORM=sharp-linux 25 PLATFORM=sharp-linux
26endif 26endif
27 27
28ifdef CONFIG_TARGET_X86 28ifdef CONFIG_TARGET_X86
29 PLATFORM=x86-linux 29 PLATFORM=x86-linux
30endif 30endif
31ifdef CONFIG_TARGET_64BIT 31ifdef CONFIG_TARGET_64BIT
32 PLATFORM=64bit-linux 32 PLATFORM=64bit-linux
33endif 33endif
34ifdef CONFIG_TARGET_SHARP 34ifdef CONFIG_TARGET_SHARP
35 PLATFORM=sharp-linux 35 PLATFORM=sharp-linux
36endif 36endif
37ifdef CONFIG_TARGET_IPAQ 37ifdef CONFIG_TARGET_IPAQ
38 PLATFORM=ipaq-linux 38 PLATFORM=ipaq-linux
39endif 39endif
40ifdef CONFIG_TARGET_RAMSES 40ifdef CONFIG_TARGET_RAMSES
41 PLATFORM=ramses-linux 41 PLATFORM=ramses-linux
42endif 42endif
43ifdef CONFIG_TARGET_SIMPAD 43ifdef CONFIG_TARGET_SIMPAD
44 PLATFORM=simpad-linux 44 PLATFORM=simpad-linux
45endif 45endif
46 46
47ifdef CONFIG_TARGET_YOPY 47ifdef CONFIG_TARGET_YOPY
48 PLATFORM=yopy-linux 48 PLATFORM=yopy-linux
49endif 49endif
50ifdef CONFIG_TARGET_MACOSX 50ifdef CONFIG_TARGET_MACOSX
51 PLATFORM=macx-darwin 51 PLATFORM=macx-darwin
52endif 52endif
53ifdef CONFIG_TARGET_HTC
54 PLATFORM=htc-linux
55endif
53 56
54export QMAKE:=$(OPIEDIR)/qmake/qmake 57export QMAKE:=$(OPIEDIR)/qmake/qmake
55export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 58export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
56 59
57ifeq ($(QPE_VERSION),) 60ifeq ($(QPE_VERSION),)
58 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 61 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
59 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 62 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
60 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) 63 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h))
61 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) 64 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT)
62 65
63 ifeq ($(QPE_VERSION),..) 66 ifeq ($(QPE_VERSION),..)
64 QPE_VERSION=1.1.2 67 QPE_VERSION=1.1.2
65 endif 68 endif
66endif 69endif
67export QPE_VERSION 70export QPE_VERSION
68 71
69SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) 72SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
70ifeq ($(VERSION_CVS),) 73ifeq ($(VERSION_CVS),)
71 VERSION_CVS:=$(shell date +%s) 74 VERSION_CVS:=$(shell date +%s)
72endif 75endif
73ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) 76ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
74 SUB_VERSION:=$(VERSION_CVS) 77 SUB_VERSION:=$(VERSION_CVS)
75endif 78endif
76export SUB_VERSION 79export SUB_VERSION
77 80
78ifneq ($(strip $(SUB_VERSION)),) 81ifneq ($(strip $(SUB_VERSION)),)
79EXTRAVERSION=-$(SUB_VERSION) 82EXTRAVERSION=-$(SUB_VERSION)
80endif 83endif
81 84
82ifeq ($(QTE_REVISION),) 85ifeq ($(QTE_REVISION),)
83 QTE_REVISION=6 86 QTE_REVISION=6
84endif 87endif
85export QTE_REVISION 88export QTE_REVISION
86 89
87export DEB_VERSION=2.0 90export DEB_VERSION=2.0
88 91
89ifeq ($(QTE_BASEVERSION),) 92ifeq ($(QTE_BASEVERSION),)
90 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 93 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
91 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/;') 94 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/;')
92 else 95 else
93 QTE_BASEVERSION=2.3.7 96 QTE_BASEVERSION=2.3.7
94 endif 97 endif
95endif 98endif
96export QTE_BASEVERSION 99export QTE_BASEVERSION
97 100
98ifeq ($(QTE_VERSION),) 101ifeq ($(QTE_VERSION),)
99 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 102 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
100 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') 103 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;')
101 else 104 else
102 QTE_VERSION=2.3.7 105 QTE_VERSION=2.3.7
103 endif 106 endif
104endif 107endif
105export QTE_VERSION 108export QTE_VERSION
106 109
107export PATH:=$(OPIEDIR)/scripts:$(PATH) 110export PATH:=$(OPIEDIR)/scripts:$(PATH)
108export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) 111export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
109 112
110ifdef CONFIG_OPTIMIZATIONS 113ifdef CONFIG_OPTIMIZATIONS
111export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) 114export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS))
112export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) 115export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE))
113endif 116endif
114 117
115ifeq ($(STRIP),) 118ifeq ($(STRIP),)
116 ifneq ($(CONFIG_TARGET_X86),) 119 ifneq ($(CONFIG_TARGET_X86),)
117 STRIP=strip 120 STRIP=strip
118 endif 121 endif
119 ifneq ($(CONFIG_TARGET_64BIT),) 122 ifneq ($(CONFIG_TARGET_64BIT),)
120 STRIP=strip 123 STRIP=strip
121 endif 124 endif
122 ifneq ($(CONFIG_TARGET_IPAQ),) 125 ifneq ($(CONFIG_TARGET_IPAQ),)
123 STRIP=arm-linux-strip 126 STRIP=arm-linux-strip
124 endif 127 endif
125 ifneq ($(CONFIG_TARGET_SHARP),) 128 ifneq ($(CONFIG_TARGET_SHARP),)
126 STRIP=arm-linux-strip 129 STRIP=arm-linux-strip
127 endif 130 endif
128 ifneq ($(CONFIG_TARGET_RAMSES),) 131 ifneq ($(CONFIG_TARGET_RAMSES),)
129 STRIP=arm-linux-strip 132 STRIP=arm-linux-strip
130 endif 133 endif
131 ifneq ($(CONFIG_TARGET_SIMPAD),) 134 ifneq ($(CONFIG_TARGET_SIMPAD),)
132 STRIP=arm-linux-strip 135 STRIP=arm-linux-strip
133 endif 136 endif
134 ifneq ($(CONFIG_TARGET_YOPY),) 137 ifneq ($(CONFIG_TARGET_YOPY),)
135 STRIP=arm-linux-strip 138 STRIP=arm-linux-strip
136 endif 139 endif
137endif 140endif
138 141