summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules.make b/Rules.make
index d4ccf44..4833b11 100644
--- a/Rules.make
+++ b/Rules.make
@@ -1,110 +1,111 @@
1.phony: force 1.phony: force
2force: 2force:
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 > $@
9ifneq ($(CONFIG_DEBUG),) 9ifneq ($(CONFIG_DEBUG),)
10 echo CONFIG += debug >> $@ 10 echo CONFIG += debug >> $@
11 echo CONFIG -= release >> $@ 11 echo CONFIG -= release >> $@
12else 12else
13 echo CONFIG -= debug >> $@ 13 echo CONFIG -= debug >> $@
14 echo CONFIG += release >> $@ 14 echo CONFIG += release >> $@
15endif 15endif
16ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 16ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
17 echo CONFIG -= qt3 >> $@ 17 echo CONFIG -= qt3 >> $@
18else 18else
19 echo CONFIG += qt3 >> $@ 19 echo CONFIG += qt3 >> $@
20endif 20endif
21ifneq ($(CONFIG_QUICK_LAUNCH),) 21ifeq ($(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 \} >> $@
26else 26else
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 $@