|
diff --git a/Makefile b/Makefile index 10df035..8551f28 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -18,15 +18,13 @@ configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPD |
18 | # |
18 | # |
19 | # NOTE: The order in which things happen in this makefile is |
19 | # NOTE: The order in which things happen in this makefile is |
20 | # -critical-. Do not rearrange this! |
20 | # -critical-. Do not rearrange this! |
21 | |
21 | |
22 | all : $(TOPDIR)/.config |
22 | all : $(TOPDIR)/.config |
23 | |
23 | |
24 | STRIP=arm-linux-strip |
24 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
25 | |
| |
26 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE |
| |
27 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ |
25 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ |
28 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ |
26 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ |
29 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ |
27 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ |
30 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ |
28 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ |
31 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ |
29 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ |
32 | echo "Building ipk of $$ctrl"; \ |
30 | echo "Building ipk of $$ctrl"; \ |
@@ -104,19 +102,12 @@ export include-config := 1 |
104 | endif |
102 | endif |
105 | |
103 | |
106 | -include $(TOPDIR)/.config.cmd |
104 | -include $(TOPDIR)/.config.cmd |
107 | |
105 | |
108 | SUBDIRS = $(subdir-y) |
106 | SUBDIRS = $(subdir-y) |
109 | |
107 | |
110 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
| |
111 | |
| |
112 | ifdef CONFIG_OPTIMIZATIONS |
| |
113 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
| |
114 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
| |
115 | endif |
| |
116 | |
| |
117 | all clean install ipk: $(SUBDIRS) |
108 | all clean install ipk: $(SUBDIRS) |
118 | |
109 | |
119 | lupdate lrelease: |
110 | lupdate lrelease: |
120 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; |
111 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; |
121 | |
112 | |
122 | opie-lupdate opie-lrelease: |
113 | opie-lupdate opie-lrelease: |
|
|
diff --git a/Vars.make b/Vars.make index eac5cea..b1cdb28 100644 --- a/ Vars.make+++ b/ Vars.make |
|
@@ -8,12 +8,16 @@ 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),) |
| |
15 | include $(TOPDIR)/.config |
| |
16 | endif |
| |
17 | |
14 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
18 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
15 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
19 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
16 | |
20 | |
17 | ifeq ($(QPE_VERSION),) |
21 | ifeq ($(QPE_VERSION),) |
18 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
22 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
19 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
23 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
@@ -58,6 +62,24 @@ ifeq ($(QTE_VERSION),) |
58 | QTE_VERSION=2.3.5 |
62 | QTE_VERSION=2.3.5 |
59 | endif |
63 | endif |
60 | endif |
64 | endif |
61 | export QTE_VERSION |
65 | export QTE_VERSION |
62 | |
66 | |
63 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
67 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
| |
68 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
| |
69 | |
| |
70 | ifdef CONFIG_OPTIMIZATIONS |
| |
71 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
| |
72 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
| |
73 | endif |
| |
74 | |
| |
75 | ifeq ($(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 |
| |
85 | endif |
|