summaryrefslogtreecommitdiff
path: root/Vars.make
authormickeyl <mickeyl>2004-11-15 14:29:41 (UTC)
committer mickeyl <mickeyl>2004-11-15 14:29:41 (UTC)
commit5e6ce0ba567dd9c8ae33353fcf1d0554b34241e8 (patch) (unidiff)
treee3903fd3f146c16d3521db20a6f3ca2db8b95121 /Vars.make
parentc9543dc4edd3ea586c04e8114e133296ad9529d9 (diff)
downloadopie-5e6ce0ba567dd9c8ae33353fcf1d0554b34241e8.zip
opie-5e6ce0ba567dd9c8ae33353fcf1d0554b34241e8.tar.gz
opie-5e6ce0ba567dd9c8ae33353fcf1d0554b34241e8.tar.bz2
this improves Opie build system playing more nice with OE. instructions later...
alert me if this breaks the non-oe work (which i doubt)
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make16
1 files changed, 12 insertions, 4 deletions
diff --git a/Vars.make b/Vars.make
index 5e2cd7b..238918f 100644
--- a/Vars.make
+++ b/Vars.make
@@ -1,65 +1,73 @@
1ifndef QTDIR
2$(error QTDIR not set)
3endif
4
5prefix=/opt/QtPalmtop 1prefix=/opt/QtPalmtop
6 2
7ifeq ($(OPIEDIR),) 3ifeq ($(OPIEDIR),)
8 export OPIEDIR:=$(TOPDIR) 4 export OPIEDIR:=$(TOPDIR)
9endif 5endif
10ifeq ($(IPK_DIR),) 6ifeq ($(IPK_DIR),)
11 export IPK_DIR:=$(OPIEDIR) 7 export IPK_DIR:=$(OPIEDIR)
12endif 8endif
13 9
14ifneq ($(wildcard $(TOPDIR)/.config),) 10ifneq ($(wildcard $(TOPDIR)/.config),)
15 include $(TOPDIR)/.config 11 include $(TOPDIR)/.config
16endif 12endif
17 13
14ifndef CONFIG_TARGET_OE
15 ifndef QTDIR
16 $(error QTDIR not set)
17 endif
18else
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
24endif
25
18ifdef CONFIG_TARGET_X86 26ifdef CONFIG_TARGET_X86
19 PLATFORM=x86-linux 27 PLATFORM=x86-linux
20endif 28endif
21ifdef CONFIG_TARGET_SHARP 29ifdef CONFIG_TARGET_SHARP
22 PLATFORM=sharp-linux 30 PLATFORM=sharp-linux
23endif 31endif
24ifdef CONFIG_TARGET_IPAQ 32ifdef CONFIG_TARGET_IPAQ
25 PLATFORM=ipaq-linux 33 PLATFORM=ipaq-linux
26endif 34endif
27ifdef CONFIG_TARGET_RAMSES 35ifdef CONFIG_TARGET_RAMSES
28 PLATFORM=ramses-linux 36 PLATFORM=ramses-linux
29endif 37endif
30ifdef CONFIG_TARGET_SIMPAD 38ifdef CONFIG_TARGET_SIMPAD
31 PLATFORM=simpad-linux 39 PLATFORM=simpad-linux
32endif 40endif
33 41
34ifdef CONFIG_TARGET_YOPY 42ifdef CONFIG_TARGET_YOPY
35 PLATFORM=yopy-linux 43 PLATFORM=yopy-linux
36endif 44endif
37ifdef CONFIG_TARGET_MACOSX 45ifdef CONFIG_TARGET_MACOSX
38 PLATFORM=macx-darwin 46 PLATFORM=macx-darwin
39endif 47endif
40 48
41export QMAKE:=$(OPIEDIR)/qmake/qmake 49export QMAKE:=$(OPIEDIR)/qmake/qmake
42export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 50export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
43 51
44ifeq ($(QPE_VERSION),) 52ifeq ($(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
53endif 61endif
54export QPE_VERSION 62export QPE_VERSION
55 63
56SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) 64SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
57ifeq ($(VERSION_CVS),) 65ifeq ($(VERSION_CVS),)
58 VERSION_CVS:=$(shell date +%s) 66 VERSION_CVS:=$(shell date +%s)
59endif 67endif
60ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) 68ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
61 SUB_VERSION:=$(VERSION_CVS) 69 SUB_VERSION:=$(VERSION_CVS)
62endif 70endif
63export SUB_VERSION 71export SUB_VERSION
64 72
65ifneq ($(strip $(SUB_VERSION)),) 73ifneq ($(strip $(SUB_VERSION)),)