author | wimpie <wimpie> | 2005-01-09 03:02:21 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-09 03:02:21 (UTC) |
commit | 67d1d0b292553af550219d770cbd5c00987d8b8b (patch) (unidiff) | |
tree | 517759c7fbda44a40ff733e3b5d5667d90558caa /Rules.make | |
parent | 987bc9a2c5b39ddd4dc2a665cea65688bfd2179e (diff) | |
download | opie-67d1d0b292553af550219d770cbd5c00987d8b8b.zip opie-67d1d0b292553af550219d770cbd5c00987d8b8b.tar.gz opie-67d1d0b292553af550219d770cbd5c00987d8b8b.tar.bz2 |
CONTROL files : reset version to 'standard' format
(partly rolls back my drastic
all-applicatoins-same-version change)
now format is x.y(.z)$EXTRAVERSION
where x.y (and aptionally .z)
are x : major version
y : minor version
z : application patch
and extra version is seconds-since-epoch
this value can be used to automatically
upgrade versions with minor changes (without
manual update of the control file)
-rw-r--r-- | Rules.make | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,308 +1,316 @@ | |||
1 | .phony: force | 1 | .phony: force |
2 | force: | 2 | force: |
3 | 3 | ||
4 | $(configs) : | 4 | $(configs) : |
5 | $(call makecfg,$@) | 5 | $(call makecfg,$@) |
6 | 6 | ||
7 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config | 7 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config |
8 | echo > $@ | 8 | echo > $@ |
9 | # added for threaded version | 9 | # added for threaded version |
10 | ifneq ($(CONFIG_THREADED),) | 10 | ifneq ($(CONFIG_THREADED),) |
11 | echo CONFIG += thread >> $@ | 11 | echo CONFIG += thread >> $@ |
12 | else | 12 | else |
13 | echo CONFIG -= thread >> $@ | 13 | echo CONFIG -= thread >> $@ |
14 | endif | 14 | endif |
15 | # added for auto stripped build | ||
16 | ifneq ($(CONFIG_STRIP),) | ||
17 | echo CONFIG += strip >> $@ | ||
18 | endif | ||
15 | ifneq ($(CONFIG_DEBUG),) | 19 | ifneq ($(CONFIG_DEBUG),) |
16 | echo CONFIG += debug >> $@ | 20 | echo CONFIG += debug >> $@ |
17 | echo CONFIG -= release >> $@ | 21 | echo CONFIG -= release >> $@ |
18 | echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ | 22 | echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ |
19 | echo DEFINES += QT_DEBUG >> $@ | 23 | echo DEFINES += QT_DEBUG >> $@ |
20 | else | 24 | else |
21 | echo CONFIG -= debug >> $@ | 25 | echo CONFIG -= debug >> $@ |
22 | echo CONFIG += release >> $@ | 26 | echo CONFIG += release >> $@ |
23 | echo DEFINES += "OPIE_NO_DEBUG" >> $@ | 27 | echo DEFINES += "OPIE_NO_DEBUG" >> $@ |
24 | endif | 28 | endif |
25 | ifeq ($(CONFIG_STATIC),y) | 29 | ifeq ($(CONFIG_STATIC),y) |
26 | echo !contains\( TARGET,qpe \) \{ >> $@ | 30 | echo !contains\( TARGET,qpe \) \{ >> $@ |
27 | echo CONFIG += staticlib >> $@ | 31 | echo CONFIG += staticlib >> $@ |
28 | echo \} >> $@ | 32 | echo \} >> $@ |
29 | endif | 33 | endif |
30 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 | 34 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
31 | echo CONFIG -= qt3 >> $@ | 35 | echo CONFIG -= qt3 >> $@ |
32 | else | 36 | else |
33 | echo CONFIG += qt3 >> $@ | 37 | echo CONFIG += qt3 >> $@ |
34 | endif | 38 | endif |
35 | ifneq ($(CONFIG_QUICK_LAUNCH),) | 39 | ifneq ($(CONFIG_QUICK_LAUNCH),) |
36 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 40 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
37 | echo CONFIG -= staticlib >> $@ | 41 | echo CONFIG -= staticlib >> $@ |
38 | echo CONFIG -= quick-app >> $@ | 42 | echo CONFIG -= quick-app >> $@ |
39 | echo CONFIG += quick-app-lib >> $@ | 43 | echo CONFIG += quick-app-lib >> $@ |
40 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ | 44 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ |
41 | echo \} >> $@ | 45 | echo \} >> $@ |
42 | else | 46 | else |
43 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 47 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
44 | echo CONFIG -= quick-app >> $@ | 48 | echo CONFIG -= quick-app >> $@ |
45 | echo CONFIG += quick-app-bin >> $@ | 49 | echo CONFIG += quick-app-bin >> $@ |
46 | echo \} >> $@ | 50 | echo \} >> $@ |
47 | endif | 51 | endif |
48 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) | 52 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) |
49 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ | 53 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ |
50 | else | 54 | else |
51 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ | 55 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ |
52 | endif | 56 | endif |
53 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) | 57 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) |
54 | echo CONFIG += no-override >> $@ | 58 | echo CONFIG += no-override >> $@ |
55 | endif | 59 | endif |
56 | ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) | 60 | ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) |
57 | echo CONFIG += OPIELOGIN_USEPAM >> $@ | 61 | echo CONFIG += OPIELOGIN_USEPAM >> $@ |
58 | endif | 62 | endif |
59 | ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) | 63 | ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) |
60 | echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ | 64 | echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ |
61 | endif | 65 | endif |
62 | ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y) | 66 | ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y) |
63 | echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@ | 67 | echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@ |
64 | endif | 68 | endif |
65 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) | 69 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
66 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ | 70 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
67 | endif | 71 | endif |
68 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) | 72 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
69 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ | 73 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
70 | endif | 74 | endif |
71 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) | 75 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
72 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ | 76 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
73 | endif | 77 | endif |
74 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) | 78 | ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) |
75 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ | 79 | echo DEFINES += USE_FILE_NOTIFICATION >> $@ |
76 | endif | 80 | endif |
77 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) | 81 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
78 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ | 82 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
79 | endif | 83 | endif |
80 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) | 84 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
81 | echo DEFINES += OPIE_NEW_MALLOC >> $@ | 85 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
82 | endif | 86 | endif |
83 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) | 87 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
84 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ | 88 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
85 | endif | 89 | endif |
86 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ | 90 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
87 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) | 91 | ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) |
88 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ | 92 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
89 | endif | 93 | endif |
90 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) | 94 | ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) |
91 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ | 95 | echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ |
92 | endif | 96 | endif |
93 | # Write LIB dirs and INC dirs... | 97 | # Write LIB dirs and INC dirs... |
94 | ifeq ($(CONFIG_LIBETPAN_DEP),y) | 98 | ifeq ($(CONFIG_LIBETPAN_DEP),y) |
95 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ | 99 | echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ |
96 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ | 100 | echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ |
97 | endif | 101 | endif |
98 | ifeq ($(CONFIG_LIBPCAP_DEP),y) | 102 | ifeq ($(CONFIG_LIBPCAP_DEP),y) |
99 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ | 103 | echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ |
100 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ | 104 | echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ |
101 | endif | 105 | endif |
102 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) | 106 | ifeq ($(CONFIG_LIBSQLITE_DEP),y) |
103 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ | 107 | echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ |
104 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ | 108 | echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ |
105 | endif | 109 | endif |
106 | ifeq ($(CONFIG_LIBXINE_DEP),y) | 110 | ifeq ($(CONFIG_LIBXINE_DEP),y) |
107 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ | 111 | echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ |
108 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ | 112 | echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ |
109 | endif | 113 | endif |
114 | ifeq ($(CONFIG_LIBBLUEZ_DEP),y) | ||
115 | echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ | ||
116 | echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ | ||
117 | endif | ||
110 | ifeq ($(CONFIG_LIBIPK_DEP),y) | 118 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
111 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ | 119 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
112 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ | 120 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
113 | endif | 121 | endif |
114 | ifeq ($(CONFIG_LIBSDK_DEP),y) | 122 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
115 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ | 123 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
116 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ | 124 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
117 | endif | 125 | endif |
118 | ifeq ($(CONFIG_LIBSWORD_DEP),y) | 126 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
119 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ | 127 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
120 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ | 128 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
121 | endif | 129 | endif |
122 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
123 | @echo Generating dependency information... | 131 | @echo Generating dependency information... |
124 | # add to subdir-y, and add descend rules | 132 | # add to subdir-y, and add descend rules |
125 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
126 | awk '{print \ | 134 | awk '{print \ |
127 | ".PHONY : " $$2 "\n" \ | 135 | ".PHONY : " $$2 "\n" \ |
128 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
129 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
130 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 138 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
131 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ | 139 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
132 | >> $(TOPDIR)/.depends | 140 | >> $(TOPDIR)/.depends |
133 | # interpackage dependency generation | 141 | # interpackage dependency generation |
134 | @cat $(TOPDIR)/packages | \ | 142 | @cat $(TOPDIR)/packages | \ |
135 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
136 | 144 | ||
137 | $(TOPDIR)/.depends.cfgs: | 145 | $(TOPDIR)/.depends.cfgs: |
138 | # config.in interdependencies | 146 | # config.in interdependencies |
139 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 147 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
140 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ | 148 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ |
141 | @-rm -f dirs | 149 | @-rm -f dirs |
142 | 150 | ||
143 | $(QTDIR)/stamp-headers : | 151 | $(QTDIR)/stamp-headers : |
144 | @-rm -f $(QTDIR)/stamp-headers* | 152 | @-rm -f $(QTDIR)/stamp-headers* |
145 | ( cd $(QTDIR)/include; \ | 153 | ( cd $(QTDIR)/include; \ |
146 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 154 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
147 | qcopchannel_qws.h qwindowsystem_qws.h \ | 155 | qcopchannel_qws.h qwindowsystem_qws.h \ |
148 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 156 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
149 | touch $@ | 157 | touch $@ |
150 | 158 | ||
151 | $(QTDIR)/stamp-headers-x11 : | 159 | $(QTDIR)/stamp-headers-x11 : |
152 | @-rm -f $(QTDIR)/stamp-headers* | 160 | @-rm -f $(QTDIR)/stamp-headers* |
153 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) | 161 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) |
154 | touch $@ | 162 | touch $@ |
155 | 163 | ||
156 | $(OPIEDIR)/stamp-headers : | 164 | $(OPIEDIR)/stamp-headers : |
157 | @-rm -f $(OPIEDIR)/stamp-headers* | 165 | @-rm -f $(OPIEDIR)/stamp-headers* |
158 | mkdir -p $(TOPDIR)/include/qpe \ | 166 | mkdir -p $(TOPDIR)/include/qpe \ |
159 | $(TOPDIR)/include/qtopia \ | 167 | $(TOPDIR)/include/qtopia \ |
160 | $(TOPDIR)/include/opie \ | 168 | $(TOPDIR)/include/opie \ |
161 | $(TOPDIR)/include/opie2 \ | 169 | $(TOPDIR)/include/opie2 \ |
162 | $(TOPDIR)/include/opie2/private \ | 170 | $(TOPDIR)/include/opie2/private \ |
163 | $(TOPDIR)/include/qtopia/private \ | 171 | $(TOPDIR)/include/qtopia/private \ |
164 | $(TOPDIR)/include/sl | 172 | $(TOPDIR)/include/sl |
165 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 173 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
166 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 174 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
167 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 175 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
168 | # libopie2 | 176 | # libopie2 |
169 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 177 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
170 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 178 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
171 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 179 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
172 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 180 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
173 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 181 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
174 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 182 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
175 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 183 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
176 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) | 184 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
177 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | 185 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
178 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 186 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
179 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 187 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
180 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 188 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
181 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 189 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
182 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | 190 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
183 | # auxilliary libraries | 191 | # auxilliary libraries |
184 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 192 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
185 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | 193 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
186 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | 194 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
187 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | 195 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
188 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | 196 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
189 | # all | 197 | # all |
190 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 198 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
191 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 199 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
192 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 200 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
193 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 201 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
194 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 202 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
195 | touch $@ | 203 | touch $@ |
196 | 204 | ||
197 | $(OPIEDIR)/stamp-headers-x11 : | 205 | $(OPIEDIR)/stamp-headers-x11 : |
198 | @-rm -f $(OPIEDIR)/stamp-headers* | 206 | @-rm -f $(OPIEDIR)/stamp-headers* |
199 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 207 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
200 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 208 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
201 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 209 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
202 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 210 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
203 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 211 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
204 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 212 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
205 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 213 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
206 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 214 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
207 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 215 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
208 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 216 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
209 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 217 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
210 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 218 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
211 | touch $@ | 219 | touch $@ |
212 | 220 | ||
213 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 221 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
214 | @-rm -f $@ | 222 | @-rm -f $@ |
215 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 223 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
216 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 224 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
217 | @touch $@ | 225 | @touch $@ |
218 | 226 | ||
219 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: | 227 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
220 | +$(call descend,$(shell dirname $@),$(shell basename $@)) | 228 | +$(call descend,$(shell dirname $@),$(shell basename $@)) |
221 | 229 | ||
222 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 230 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
223 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 231 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
224 | @touch ./.config.stamp | 232 | @touch ./.config.stamp |
225 | 233 | ||
226 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 234 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
227 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 235 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
228 | @touch .config.stamp | 236 | @touch .config.stamp |
229 | 237 | ||
230 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 238 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
231 | $(TOPDIR)/scripts/kconfig/gconf ./config.in | 239 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
232 | @touch .config.stamp | 240 | @touch .config.stamp |
233 | 241 | ||
234 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in | 242 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
235 | $(TOPDIR)/scripts/kconfig/conf ./config.in | 243 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
236 | @touch .config.stamp | 244 | @touch .config.stamp |
237 | 245 | ||
238 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 246 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
239 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in | 247 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
240 | @touch .config.stamp | 248 | @touch .config.stamp |
241 | 249 | ||
242 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 250 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
243 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in | 251 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
244 | @touch .config.stamp | 252 | @touch .config.stamp |
245 | 253 | ||
246 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 254 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
247 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in | 255 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
248 | @touch .config.stamp | 256 | @touch .config.stamp |
249 | 257 | ||
250 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 258 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
251 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in | 259 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
252 | @touch .config.stamp | 260 | @touch .config.stamp |
253 | 261 | ||
254 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 262 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
255 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in | 263 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
256 | @touch .config.stamp | 264 | @touch .config.stamp |
257 | 265 | ||
258 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default | 266 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
259 | 267 | ||
260 | $(TOPDIR)/mkspecs/default : | 268 | $(TOPDIR)/mkspecs/default : |
261 | ln -sf linux-g++ $@ | 269 | ln -sf linux-g++ $@ |
262 | 270 | ||
263 | $(TOPDIR)/scripts/subst : force | 271 | $(TOPDIR)/scripts/subst : force |
264 | @( \ | 272 | @( \ |
265 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ | 273 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
266 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ | 274 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
267 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ | 275 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
268 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ | 276 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
269 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ | 277 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
270 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ | 278 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
271 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ | 279 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
272 | ) > $@ || ( rm -f $@; exit 1 ) | 280 | ) > $@ || ( rm -f $@; exit 1 ) |
273 | 281 | ||
274 | $(TOPDIR)/scripts/filesubst : force | 282 | $(TOPDIR)/scripts/filesubst : force |
275 | @( \ | 283 | @( \ |
276 | echo 's,\$$OPIEDIR/root/,/,g'; \ | 284 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
277 | echo 's,$(OPIEDIR)/root/,/,g'; \ | 285 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
278 | echo 's,\$$OPIEDIR,$(prefix),g'; \ | 286 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
279 | echo 's,$(OPIEDIR),$(prefix),g'; \ | 287 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
280 | echo 's,\$$QTDIR,$(prefix),g'; \ | 288 | echo 's,\$$QTDIR,$(prefix),g'; \ |
281 | echo 's,$(QTDIR),$(prefix),g'; \ | 289 | echo 's,$(QTDIR),$(prefix),g'; \ |
282 | echo 's,^\(\./\)*root/,/,g'; \ | 290 | echo 's,^\(\./\)*root/,/,g'; \ |
283 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ | 291 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
284 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ | 292 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
285 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ | 293 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
286 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ | 294 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
287 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ | 295 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
288 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 296 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
289 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ | 297 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
290 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ | 298 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
291 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ | 299 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
292 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 300 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
293 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ | 301 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
294 | ) > $@ || ( rm -f $@; exit 1 ) | 302 | ) > $@ || ( rm -f $@; exit 1 ) |
295 | 303 | ||
296 | ## general rules ## | 304 | ## general rules ## |
297 | 305 | ||
298 | define descend | 306 | define descend |
299 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) | 307 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
300 | endef | 308 | endef |
301 | 309 | ||
302 | define makefilegen | 310 | define makefilegen |
303 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) | 311 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) |
304 | endef | 312 | endef |
305 | 313 | ||
306 | define makecfg | 314 | define makecfg |
307 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) | 315 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
308 | endef | 316 | endef |