summaryrefslogtreecommitdiff
path: root/Vars.make
authorkergoth <kergoth>2003-04-22 20:21:20 (UTC)
committer kergoth <kergoth>2003-04-22 20:21:20 (UTC)
commite3ef0f8587b10bf242d8077609988e06a37bcae5 (patch) (unidiff)
tree89a270cdde36fdb406fa17f38be429a377545dd0 /Vars.make
parentccec87cf3e7192c0a3987aa3486668e89b1662a4 (diff)
downloadopie-e3ef0f8587b10bf242d8077609988e06a37bcae5.zip
opie-e3ef0f8587b10bf242d8077609988e06a37bcae5.tar.gz
opie-e3ef0f8587b10bf242d8077609988e06a37bcae5.tar.bz2
Set strip binary appropriately, based on target selection for ipk creation
Diffstat (limited to 'Vars.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make22
1 files changed, 22 insertions, 0 deletions
diff --git a/Vars.make b/Vars.make
index eac5cea..b1cdb28 100644
--- a/Vars.make
+++ b/Vars.make
@@ -11,6 +11,10 @@ ifeq ($(IPK_DIR),)
11 export IPK_DIR:=$(OPIEDIR) 11 export IPK_DIR:=$(OPIEDIR)
12endif 12endif
13 13
14ifneq ($(wildcard $(TOPDIR)/.config),)
15 include $(TOPDIR)/.config
16endif
17
14export QMAKE:=$(OPIEDIR)/qmake/qmake 18export QMAKE:=$(OPIEDIR)/qmake/qmake
15export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 19export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
16 20
@@ -61,3 +65,21 @@ endif
61export QTE_VERSION 65export QTE_VERSION
62 66
63export PATH:=$(OPIEDIR)/scripts:$(PATH) 67export PATH:=$(OPIEDIR)/scripts:$(PATH)
68export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
69
70ifdef CONFIG_OPTIMIZATIONS
71export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS))
72export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE))
73endif
74
75ifeq ($(STRIP),)
76 ifneq ($(CONFIG_TARGET_X86),)
77 STRIP=strip
78 endif
79 ifneq ($(CONFIG_TARGET_IPAQ),)
80 STRIP=arm-linux-strip
81 endif
82 ifneq ($(CONFIG_TARGET_SHARP),)
83 STRIP=arm-linux-strip
84 endif
85endif