summaryrefslogtreecommitdiff
path: root/Vars.make
Unidiff
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make5
1 files changed, 3 insertions, 2 deletions
diff --git a/Vars.make b/Vars.make
index 1413282..6a52a93 100644
--- a/Vars.make
+++ b/Vars.make
@@ -1,72 +1,73 @@
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 QTDIR:=$(shell echo $(OEDIR) | sed -e's/"//g')/tmp/staging/arm-linux/qt2 20 OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_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
21 $(shell mkdir -p $(QTDIR)/src/moc) 23 $(shell mkdir -p $(QTDIR)/src/moc)
22 $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) 24 $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile)
23 PLATFORM=sharp-linux 25 PLATFORM=sharp-linux
24 OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_SYS) | sed -e's/"//g')
25endif 26endif
26 27
27ifdef CONFIG_TARGET_X86 28ifdef CONFIG_TARGET_X86
28 PLATFORM=x86-linux 29 PLATFORM=x86-linux
29endif 30endif
30ifdef CONFIG_TARGET_SHARP 31ifdef CONFIG_TARGET_SHARP
31 PLATFORM=sharp-linux 32 PLATFORM=sharp-linux
32endif 33endif
33ifdef CONFIG_TARGET_IPAQ 34ifdef CONFIG_TARGET_IPAQ
34 PLATFORM=ipaq-linux 35 PLATFORM=ipaq-linux
35endif 36endif
36ifdef CONFIG_TARGET_RAMSES 37ifdef CONFIG_TARGET_RAMSES
37 PLATFORM=ramses-linux 38 PLATFORM=ramses-linux
38endif 39endif
39ifdef CONFIG_TARGET_SIMPAD 40ifdef CONFIG_TARGET_SIMPAD
40 PLATFORM=simpad-linux 41 PLATFORM=simpad-linux
41endif 42endif
42 43
43ifdef CONFIG_TARGET_YOPY 44ifdef CONFIG_TARGET_YOPY
44 PLATFORM=yopy-linux 45 PLATFORM=yopy-linux
45endif 46endif
46ifdef CONFIG_TARGET_MACOSX 47ifdef CONFIG_TARGET_MACOSX
47 PLATFORM=macx-darwin 48 PLATFORM=macx-darwin
48endif 49endif
49 50
50export QMAKE:=$(OPIEDIR)/qmake/qmake 51export QMAKE:=$(OPIEDIR)/qmake/qmake
51export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 52export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
52 53
53ifeq ($(QPE_VERSION),) 54ifeq ($(QPE_VERSION),)
54 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 55 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
55 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 56 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
56 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) 57 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h))
57 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) 58 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT)
58 59
59 ifeq ($(QPE_VERSION),..) 60 ifeq ($(QPE_VERSION),..)
60 QPE_VERSION=1.1.2 61 QPE_VERSION=1.1.2
61 endif 62 endif
62endif 63endif
63export QPE_VERSION 64export QPE_VERSION
64 65
65SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) 66SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
66ifeq ($(VERSION_CVS),) 67ifeq ($(VERSION_CVS),)
67 VERSION_CVS:=$(shell date +%s) 68 VERSION_CVS:=$(shell date +%s)
68endif 69endif
69ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) 70ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
70 SUB_VERSION:=$(VERSION_CVS) 71 SUB_VERSION:=$(VERSION_CVS)
71endif 72endif
72export SUB_VERSION 73export SUB_VERSION