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