author | zecke <zecke> | 2003-09-01 16:31:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-09-01 16:31:24 (UTC) |
commit | 4e7703b3055562d93dc2d993f47888a3538429d2 (patch) (unidiff) | |
tree | f06696c13e4ac04044c682d47c6cac0fa8e06df9 | |
parent | 4513097a6eb827a9bf91b96d098cb392442c77f3 (diff) | |
download | opie-4e7703b3055562d93dc2d993f47888a3538429d2.zip opie-4e7703b3055562d93dc2d993f47888a3538429d2.tar.gz opie-4e7703b3055562d93dc2d993f47888a3538429d2.tar.bz2 |
Link files from big-screen as well
-rw-r--r-- | Rules.make | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,142 +1,143 @@ | |||
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 | ifneq ($(CONFIG_DEBUG),) | 9 | ifneq ($(CONFIG_DEBUG),) |
10 | echo CONFIG += debug >> $@ | 10 | echo CONFIG += debug >> $@ |
11 | echo CONFIG -= release >> $@ | 11 | echo CONFIG -= release >> $@ |
12 | else | 12 | else |
13 | echo CONFIG -= debug >> $@ | 13 | echo CONFIG -= debug >> $@ |
14 | echo CONFIG += release >> $@ | 14 | echo CONFIG += release >> $@ |
15 | endif | 15 | endif |
16 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 | 16 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
17 | echo CONFIG -= qt3 >> $@ | 17 | echo CONFIG -= qt3 >> $@ |
18 | else | 18 | else |
19 | echo CONFIG += qt3 >> $@ | 19 | echo CONFIG += qt3 >> $@ |
20 | endif | 20 | endif |
21 | ifneq ($(CONFIG_QUICK_LAUNCH),) | 21 | ifeq ($(CONFIG_QUICK_LAUNCH),) |
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 22 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
23 | echo CONFIG -= quick-app >> $@ | 23 | echo CONFIG -= quick-app >> $@ |
24 | echo CONFIG += quick-app-lib >> $@ | 24 | echo CONFIG += quick-app-lib >> $@ |
25 | echo \} >> $@ | 25 | echo \} >> $@ |
26 | else | 26 | else |
27 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 27 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
28 | echo CONFIG -= quick-app >> $@ | 28 | echo CONFIG -= quick-app >> $@ |
29 | echo CONFIG += quick-app-bin >> $@ | 29 | echo CONFIG += quick-app-bin >> $@ |
30 | echo \} >> $@ | 30 | echo \} >> $@ |
31 | endif | 31 | endif |
32 | 32 | ||
33 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 33 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
34 | @echo Generating dependency information... | 34 | @echo Generating dependency information... |
35 | # add to subdir-y, and add descend rules | 35 | # add to subdir-y, and add descend rules |
36 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 36 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
37 | awk '{print \ | 37 | awk '{print \ |
38 | ".PHONY : " $$2 "\n" \ | 38 | ".PHONY : " $$2 "\n" \ |
39 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 39 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
40 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 40 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
41 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 41 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
42 | 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"; }' \ | 42 | 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"; }' \ |
43 | >> $(TOPDIR)/.depends | 43 | >> $(TOPDIR)/.depends |
44 | # interpackage dependency generation | 44 | # interpackage dependency generation |
45 | @cat $(TOPDIR)/packages | \ | 45 | @cat $(TOPDIR)/packages | \ |
46 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 46 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
47 | 47 | ||
48 | $(TOPDIR)/.depends.cfgs: | 48 | $(TOPDIR)/.depends.cfgs: |
49 | # config.in interdependencies | 49 | # config.in interdependencies |
50 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 50 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
51 | @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 ) >> $@ | 51 | @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 ) >> $@ |
52 | @-rm -f dirs | 52 | @-rm -f dirs |
53 | 53 | ||
54 | $(QTDIR)/stamp-headers : | 54 | $(QTDIR)/stamp-headers : |
55 | @-rm -f $(QTDIR)/stamp-headers* | 55 | @-rm -f $(QTDIR)/stamp-headers* |
56 | ( cd $(QTDIR)/include; \ | 56 | ( cd $(QTDIR)/include; \ |
57 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 57 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
58 | qcopchannel_qws.h qwindowsystem_qws.h \ | 58 | qcopchannel_qws.h qwindowsystem_qws.h \ |
59 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 59 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
60 | touch $@ | 60 | touch $@ |
61 | 61 | ||
62 | $(QTDIR)/stamp-headers-x11 : | 62 | $(QTDIR)/stamp-headers-x11 : |
63 | @-rm -f $(QTDIR)/stamp-headers* | 63 | @-rm -f $(QTDIR)/stamp-headers* |
64 | 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) | 64 | 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) |
65 | touch $@ | 65 | touch $@ |
66 | 66 | ||
67 | $(OPIEDIR)/stamp-headers : | 67 | $(OPIEDIR)/stamp-headers : |
68 | @-rm -f $(OPIEDIR)/stamp-headers* | 68 | @-rm -f $(OPIEDIR)/stamp-headers* |
69 | mkdir -p $(TOPDIR)/include/qpe \ | 69 | mkdir -p $(TOPDIR)/include/qpe \ |
70 | $(TOPDIR)/include/qtopia \ | 70 | $(TOPDIR)/include/qtopia \ |
71 | $(TOPDIR)/include/opie \ | 71 | $(TOPDIR)/include/opie \ |
72 | $(TOPDIR)/include/opie2 \ | 72 | $(TOPDIR)/include/opie2 \ |
73 | $(TOPDIR)/include/qtopia/private | 73 | $(TOPDIR)/include/qtopia/private |
74 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 74 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
75 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 75 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
76 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 76 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
77 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 77 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
78 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 78 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
79 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) | ||
79 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 80 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
80 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 81 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
81 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 82 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
82 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 83 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
83 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 84 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
84 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 85 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
85 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 86 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
86 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 87 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
87 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 88 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
88 | touch $@ | 89 | touch $@ |
89 | 90 | ||
90 | $(OPIEDIR)/stamp-headers-x11 : | 91 | $(OPIEDIR)/stamp-headers-x11 : |
91 | @-rm -f $(OPIEDIR)/stamp-headers* | 92 | @-rm -f $(OPIEDIR)/stamp-headers* |
92 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 93 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
93 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 94 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
94 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 95 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
95 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 96 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
96 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 97 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
97 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 98 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
98 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 99 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
99 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 100 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
100 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 101 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
101 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 102 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
102 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 103 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
103 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 104 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
104 | touch $@ | 105 | touch $@ |
105 | 106 | ||
106 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 107 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
107 | @-rm -f $@ | 108 | @-rm -f $@ |
108 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 109 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
109 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 110 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
110 | @touch $@ | 111 | @touch $@ |
111 | 112 | ||
112 | $(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: | 113 | $(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: |
113 | @$(call descend,$(shell dirname $@),$(shell basename $@)) | 114 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
114 | 115 | ||
115 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 116 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
116 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 117 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
117 | @touch ./.config.stamp | 118 | @touch ./.config.stamp |
118 | 119 | ||
119 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 120 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
120 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 121 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
121 | @touch .config.stamp | 122 | @touch .config.stamp |
122 | 123 | ||
123 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 124 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
124 | $(TOPDIR)/scripts/kconfig/gconf ./config.in | 125 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
125 | @touch .config.stamp | 126 | @touch .config.stamp |
126 | 127 | ||
127 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in | 128 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
128 | $(TOPDIR)/scripts/kconfig/conf ./config.in | 129 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
129 | @touch .config.stamp | 130 | @touch .config.stamp |
130 | 131 | ||
131 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 132 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
132 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in | 133 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
133 | @touch .config.stamp | 134 | @touch .config.stamp |
134 | 135 | ||
135 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 136 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
136 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in | 137 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
137 | @touch .config.stamp | 138 | @touch .config.stamp |
138 | 139 | ||
139 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 140 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
140 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in | 141 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
141 | @touch .config.stamp | 142 | @touch .config.stamp |
142 | 143 | ||