author | wimpie <wimpie> | 2004-04-02 18:34:55 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:34:55 (UTC) |
commit | 1d6b2100209fb63e737100c9f8f576bb26534e96 (patch) (unidiff) | |
tree | a622ace52548366a43f6a4712a9da2d95a81b6c5 | |
parent | 4ea2f227d3fb0d9591bb4f18555420ac47f3397d (diff) | |
download | opie-1d6b2100209fb63e737100c9f8f576bb26534e96.zip opie-1d6b2100209fb63e737100c9f8f576bb26534e96.tar.gz opie-1d6b2100209fb63e737100c9f8f576bb26534e96.tar.bz2 |
Added THREAD config flag (for compile agains threaded qt)
Added ipkg-mt target for packaging targets to -mt packages
speedup of ipkg by using bash substitution instead of grep/sed
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | Rules.make | 7 |
2 files changed, 26 insertions, 4 deletions
@@ -1,115 +1,130 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export TOPDIR:=$(OPIEDIR) | 3 | export TOPDIR:=$(OPIEDIR) |
4 | 4 | ||
5 | include $(TOPDIR)/Vars.make | 5 | include $(TOPDIR)/Vars.make |
6 | ifneq ($(wildcard $(TOPDIR)/Vars.local),) | 6 | ifneq ($(wildcard $(TOPDIR)/Vars.local),) |
7 | include $(TOPDIR)/Vars.local | 7 | include $(TOPDIR)/Vars.local |
8 | endif | 8 | endif |
9 | 9 | ||
10 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ | 10 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
11 | defconfig allyesconfig allnoconfig allmodconfig \ | 11 | defconfig allyesconfig allnoconfig allmodconfig \ |
12 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ | 12 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ |
13 | ipks | 13 | ipks |
14 | 14 | ||
15 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/examples/config.in | 15 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/examples/config.in |
16 | 16 | ||
17 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 17 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
18 | # in order to have a full set of config.in files. | 18 | # in order to have a full set of config.in files. |
19 | # .depends depends on $(TOPDIR)/.config | 19 | # .depends depends on $(TOPDIR)/.config |
20 | # everything else depends on .depends, to ensure the dependencies are | 20 | # everything else depends on .depends, to ensure the dependencies are |
21 | # intact. | 21 | # intact. |
22 | # | 22 | # |
23 | # NOTE: The order in which things happen in this makefile is | 23 | # NOTE: The order in which things happen in this makefile is |
24 | # -critical-. Do not rearrange this! | 24 | # -critical-. Do not rearrange this! |
25 | 25 | ||
26 | all : $(TOPDIR)/.config | 26 | all : $(TOPDIR)/.config |
27 | 27 | ||
28 | # | 28 | # |
29 | # The IPK creation is a very slow process. If you want to only create some | 29 | # The IPK creation is a very slow process. If you want to only create some |
30 | # IPKs, e.g. the ones in library, then do | 30 | # IPKs, e.g. the ones in library, then do |
31 | #make ipks IPK_START=library | 31 | #make ipks IPK_START=library |
32 | # and then only the *.control files in this directory will be processed | 32 | # and then only the *.control files in this directory will be processed |
33 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | 33 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
34 | @find $(OPIEDIR)/$(IPK_START) -type f -name \*.control | ( for ctrl in `cat`; do \ | 34 | @find $(OPIEDIR)/$(IPK_START) -type f -name \*.control | ( for ctrl in `cat`; do \ |
35 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ | 35 | prerm=`echo $${ctrl/.control/.prerm}`; \ |
36 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ | 36 | preinst=`echo $${ctrl/.control/.preinst}`; \ |
37 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ | 37 | postrm=`echo $${ctrl/.control/.postrm}`; \ |
38 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ | 38 | postinst=`echo $${ctrl/.control/.postinst}`; \ |
39 | echo "Building ipk of $$ctrl"; \ | 39 | echo "Building ipk of $$ctrl"; \ |
40 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ | 40 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ |
41 | done ) | 41 | done ) |
42 | 42 | ||
43 | ipks-mt: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | ||
44 | @> $(OPIEDIR)/AllThreadedPackages | ||
45 | @find $(OPIEDIR)/ -type f -name \*.control | grep -v -- "-mt" | while read ctrl ; do \ | ||
46 | grep "Package[ ]*:" $${ctrl} | sed "s+Package[ ]*:[ ]*++"; \ | ||
47 | done | sort | uniq >> $(OPIEDIR)/AllThreadedPackages | ||
48 | @find $(OPIEDIR)/ -type f -name \*.control | while read ctrl ; do \ | ||
49 | echo "Converting $$ctrl to -mt package"; \ | ||
50 | nctrl=`$(OPIEDIR)/scripts/tothreaded $$ctrl $(OPIEDIR)/AllThreadedPackages`; \ | ||
51 | echo "Building ipk of $$ctrl"; \ | ||
52 | [ -n $$nctrl ] && cd $(OPIEDIR) && $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$nctrl --prerm=$${nctrl/\.control$$/.prerm/} --preinst=$${nctrl/\.control$$/.preinst/} --postrm=$${nctrl/\.control$$/.postrm/} --postinst=$${nctrl/\.control$$/.postinst/} --strip=$(STRIP) $(OPIEDIR); \ | ||
53 | done | ||
54 | @rm -f $(OPIEDIR)/AllThreadedPackages | ||
55 | |||
56 | FORCE: | ||
57 | |||
43 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 58 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
44 | 59 | ||
45 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 60 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
46 | 61 | ||
47 | clean-configs : | 62 | clean-configs : |
48 | @echo "Wiping generated config.in files..." | 63 | @echo "Wiping generated config.in files..." |
49 | @-rm -f $(configs) | 64 | @-rm -f $(configs) |
50 | 65 | ||
51 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) | 66 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) |
52 | include $(TOPDIR)/.depends.cfgs | 67 | include $(TOPDIR)/.depends.cfgs |
53 | endif | 68 | endif |
54 | 69 | ||
55 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 70 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
56 | 71 | ||
57 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 72 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
58 | $(call descend,scripts/kconfig,conf) | 73 | $(call descend,scripts/kconfig,conf) |
59 | @if [ ! -e $@ ]; then \ | 74 | @if [ ! -e $@ ]; then \ |
60 | cp $(TOPDIR)/def-configs/opie $@; \ | 75 | cp $(TOPDIR)/def-configs/opie $@; \ |
61 | fi | 76 | fi |
62 | @$(MAKE) -C scripts/kconfig conf | 77 | @$(MAKE) -C scripts/kconfig conf |
63 | ./scripts/kconfig/conf -s ./config.in | 78 | ./scripts/kconfig/conf -s ./config.in |
64 | 79 | ||
65 | export | 80 | export |
66 | 81 | ||
67 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 82 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
68 | 83 | ||
69 | export include-config := 1 | 84 | export include-config := 1 |
70 | 85 | ||
71 | -include $(TOPDIR)/.config | 86 | -include $(TOPDIR)/.config |
72 | -include $(TOPDIR)/.depends | 87 | -include $(TOPDIR)/.depends |
73 | endif | 88 | endif |
74 | 89 | ||
75 | -include $(TOPDIR)/.config.cmd | 90 | -include $(TOPDIR)/.config.cmd |
76 | 91 | ||
77 | SUBDIRS = $(subdir-y) | 92 | SUBDIRS = $(subdir-y) |
78 | 93 | ||
79 | all clean install ipk: $(SUBDIRS) | 94 | all clean install ipk: $(SUBDIRS) |
80 | 95 | ||
81 | lupdate lrelease: | 96 | lupdate lrelease: |
82 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done | 97 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done |
83 | 98 | ||
84 | opie-lupdate opie-lrelease messages: | 99 | opie-lupdate opie-lrelease messages: |
85 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; | 100 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; |
86 | 101 | ||
87 | # from kde | 102 | # from kde |
88 | qtmessages: | 103 | qtmessages: |
89 | cd $(QTDIR)/src ; \ | 104 | cd $(QTDIR)/src ; \ |
90 | sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\ | 105 | sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\ |
91 | find . -name "*.cpp" | grep -v moc_ > list ;\ | 106 | find . -name "*.cpp" | grep -v moc_ > list ;\ |
92 | for file in qfiledialog qcolordialog qprintdialog \ | 107 | for file in qfiledialog qcolordialog qprintdialog \ |
93 | qurloperator qftp qhttp qlocal qerrormessage; do \ | 108 | qurloperator qftp qhttp qlocal qerrormessage; do \ |
94 | grep -v $$file list > list.new && mv list.new list ;\ | 109 | grep -v $$file list > list.new && mv list.new list ;\ |
95 | done ;\ | 110 | done ;\ |
96 | xgettext -C -ktr -kQT_TRANSLATE_NOOP -n `cat list` -o $(OPIEDIR)/qt-messages.pot | 111 | xgettext -C -ktr -kQT_TRANSLATE_NOOP -n `cat list` -o $(OPIEDIR)/qt-messages.pot |
97 | 112 | ||
98 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ | 113 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ |
99 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ | 114 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ |
100 | $(TOPDIR)/library/custom.h | 115 | $(TOPDIR)/library/custom.h |
101 | 116 | ||
102 | clean : $(TOPDIR)/.config | 117 | clean : $(TOPDIR)/.config |
103 | make -C bin clean | 118 | make -C bin clean |
104 | make -C lib clean | 119 | make -C lib clean |
105 | make -C plugins clean | 120 | make -C plugins clean |
106 | 121 | ||
107 | apidox : | 122 | apidox : |
108 | doc/generate_apidox | 123 | doc/generate_apidox |
109 | 124 | ||
110 | mrproper : clean-configs | 125 | mrproper : clean-configs |
111 | find . -name ".moc"|xargs rm -rf | 126 | find . -name ".moc"|xargs rm -rf |
112 | find . -name ".obj"|xargs rm -rf | 127 | find . -name ".obj"|xargs rm -rf |
113 | find . -name "*.pro"|xargs touch | 128 | find . -name "*.pro"|xargs touch |
114 | 129 | ||
115 | include $(TOPDIR)/Rules.make | 130 | include $(TOPDIR)/Rules.make |
@@ -1,258 +1,265 @@ | |||
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 | ||
10 | ifneq ($(CONFIG_THREADED),) | ||
11 | echo CONFIG += thread >> $@ | ||
12 | else | ||
13 | echo CONFIG -= thread >> $@ | ||
14 | endif | ||
9 | ifneq ($(CONFIG_DEBUG),) | 15 | ifneq ($(CONFIG_DEBUG),) |
10 | echo CONFIG += debug >> $@ | 16 | echo CONFIG += debug >> $@ |
11 | echo CONFIG -= release >> $@ | 17 | echo CONFIG -= release >> $@ |
12 | echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ | 18 | echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ |
13 | echo DEFINES += QT_DEBUG >> $@ | 19 | echo DEFINES += QT_DEBUG >> $@ |
14 | else | 20 | else |
15 | echo CONFIG -= debug >> $@ | 21 | echo CONFIG -= debug >> $@ |
16 | echo CONFIG += release >> $@ | 22 | echo CONFIG += release >> $@ |
17 | echo DEFINES += "OPIE_NO_DEBUG" >> $@ | 23 | echo DEFINES += "OPIE_NO_DEBUG" >> $@ |
18 | endif | 24 | endif |
25 | |||
19 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 | 26 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
20 | echo CONFIG -= qt3 >> $@ | 27 | echo CONFIG -= qt3 >> $@ |
21 | else | 28 | else |
22 | echo CONFIG += qt3 >> $@ | 29 | echo CONFIG += qt3 >> $@ |
23 | endif | 30 | endif |
24 | ifneq ($(CONFIG_QUICK_LAUNCH),) | 31 | ifneq ($(CONFIG_QUICK_LAUNCH),) |
25 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 32 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
26 | echo CONFIG -= quick-app >> $@ | 33 | echo CONFIG -= quick-app >> $@ |
27 | echo CONFIG += quick-app-lib >> $@ | 34 | echo CONFIG += quick-app-lib >> $@ |
28 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ | 35 | echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ |
29 | echo \} >> $@ | 36 | echo \} >> $@ |
30 | else | 37 | else |
31 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 38 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
32 | echo CONFIG -= quick-app >> $@ | 39 | echo CONFIG -= quick-app >> $@ |
33 | echo CONFIG += quick-app-bin >> $@ | 40 | echo CONFIG += quick-app-bin >> $@ |
34 | echo \} >> $@ | 41 | echo \} >> $@ |
35 | endif | 42 | endif |
36 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) | 43 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) |
37 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ | 44 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ |
38 | else | 45 | else |
39 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ | 46 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ |
40 | endif | 47 | endif |
41 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) | 48 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) |
42 | echo CONFIG += no-override >> $@ | 49 | echo CONFIG += no-override >> $@ |
43 | endif | 50 | endif |
44 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) | 51 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
45 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ | 52 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
46 | endif | 53 | endif |
47 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) | 54 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) |
48 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ | 55 | echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ |
49 | endif | 56 | endif |
50 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) | 57 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
51 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ | 58 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
52 | endif | 59 | endif |
53 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) | 60 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
54 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ | 61 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
55 | endif | 62 | endif |
56 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) | 63 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) |
57 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ | 64 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ |
58 | endif | 65 | endif |
59 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) | 66 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
60 | echo DEFINES += OPIE_NEW_MALLOC >> $@ | 67 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
61 | endif | 68 | endif |
62 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) | 69 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
63 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ | 70 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
64 | endif | 71 | endif |
65 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ | 72 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
66 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ | 73 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
67 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 74 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
68 | @echo Generating dependency information... | 75 | @echo Generating dependency information... |
69 | # add to subdir-y, and add descend rules | 76 | # add to subdir-y, and add descend rules |
70 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 77 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
71 | awk '{print \ | 78 | awk '{print \ |
72 | ".PHONY : " $$2 "\n" \ | 79 | ".PHONY : " $$2 "\n" \ |
73 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 80 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
74 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 81 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
75 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 82 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
76 | 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"; }' \ | 83 | 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"; }' \ |
77 | >> $(TOPDIR)/.depends | 84 | >> $(TOPDIR)/.depends |
78 | # interpackage dependency generation | 85 | # interpackage dependency generation |
79 | @cat $(TOPDIR)/packages | \ | 86 | @cat $(TOPDIR)/packages | \ |
80 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 87 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
81 | 88 | ||
82 | $(TOPDIR)/.depends.cfgs: | 89 | $(TOPDIR)/.depends.cfgs: |
83 | # config.in interdependencies | 90 | # config.in interdependencies |
84 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs | 91 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
85 | @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 ) >> $@ | 92 | @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 ) >> $@ |
86 | @-rm -f dirs | 93 | @-rm -f dirs |
87 | 94 | ||
88 | $(QTDIR)/stamp-headers : | 95 | $(QTDIR)/stamp-headers : |
89 | @-rm -f $(QTDIR)/stamp-headers* | 96 | @-rm -f $(QTDIR)/stamp-headers* |
90 | ( cd $(QTDIR)/include; \ | 97 | ( cd $(QTDIR)/include; \ |
91 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 98 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
92 | qcopchannel_qws.h qwindowsystem_qws.h \ | 99 | qcopchannel_qws.h qwindowsystem_qws.h \ |
93 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 100 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
94 | touch $@ | 101 | touch $@ |
95 | 102 | ||
96 | $(QTDIR)/stamp-headers-x11 : | 103 | $(QTDIR)/stamp-headers-x11 : |
97 | @-rm -f $(QTDIR)/stamp-headers* | 104 | @-rm -f $(QTDIR)/stamp-headers* |
98 | 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) | 105 | 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) |
99 | touch $@ | 106 | touch $@ |
100 | 107 | ||
101 | $(OPIEDIR)/stamp-headers : | 108 | $(OPIEDIR)/stamp-headers : |
102 | @-rm -f $(OPIEDIR)/stamp-headers* | 109 | @-rm -f $(OPIEDIR)/stamp-headers* |
103 | mkdir -p $(TOPDIR)/include/qpe \ | 110 | mkdir -p $(TOPDIR)/include/qpe \ |
104 | $(TOPDIR)/include/qtopia \ | 111 | $(TOPDIR)/include/qtopia \ |
105 | $(TOPDIR)/include/opie \ | 112 | $(TOPDIR)/include/opie \ |
106 | $(TOPDIR)/include/opie2 \ | 113 | $(TOPDIR)/include/opie2 \ |
107 | $(TOPDIR)/include/qtopia/private \ | 114 | $(TOPDIR)/include/qtopia/private \ |
108 | $(TOPDIR)/include/sl | 115 | $(TOPDIR)/include/sl |
109 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 116 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
110 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 117 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
111 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 118 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
112 | ifeq ($(CONFIG_LIBOPIE),y) | 119 | ifeq ($(CONFIG_LIBOPIE),y) |
113 | # libopie1 | 120 | # libopie1 |
114 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 121 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
115 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 122 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
116 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) | 123 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) |
117 | endif | 124 | endif |
118 | # libopie2 | 125 | # libopie2 |
119 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 126 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
120 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 127 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
121 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 128 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
122 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 129 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
123 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 130 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
124 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 131 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
125 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 132 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
126 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; ) | 133 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; ) |
127 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 134 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
128 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 135 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
129 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 136 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
130 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 137 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
131 | # auxilliary libraries | 138 | # auxilliary libraries |
132 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 139 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
133 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | 140 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) |
134 | # all | 141 | # all |
135 | ifeq ($(CONFIG_LIBOPIE),y) | 142 | ifeq ($(CONFIG_LIBOPIE),y) |
136 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 143 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
137 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 144 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
138 | endif | 145 | endif |
139 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 146 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
140 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 147 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
141 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 148 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
142 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 149 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
143 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 150 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
144 | touch $@ | 151 | touch $@ |
145 | 152 | ||
146 | $(OPIEDIR)/stamp-headers-x11 : | 153 | $(OPIEDIR)/stamp-headers-x11 : |
147 | @-rm -f $(OPIEDIR)/stamp-headers* | 154 | @-rm -f $(OPIEDIR)/stamp-headers* |
148 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 155 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
149 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 156 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
150 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 157 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
151 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 158 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
152 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 159 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
153 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 160 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
154 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 161 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
155 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 162 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
156 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 163 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
157 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 164 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
158 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 165 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
159 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 166 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
160 | touch $@ | 167 | touch $@ |
161 | 168 | ||
162 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 169 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
163 | @-rm -f $@ | 170 | @-rm -f $@ |
164 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 171 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
165 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 172 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
166 | @touch $@ | 173 | @touch $@ |
167 | 174 | ||
168 | $(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: | 175 | $(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: |
169 | @$(call descend,$(shell dirname $@),$(shell basename $@)) | 176 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
170 | 177 | ||
171 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 178 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
172 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 179 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
173 | @touch ./.config.stamp | 180 | @touch ./.config.stamp |
174 | 181 | ||
175 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 182 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
176 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 183 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
177 | @touch .config.stamp | 184 | @touch .config.stamp |
178 | 185 | ||
179 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 186 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
180 | $(TOPDIR)/scripts/kconfig/gconf ./config.in | 187 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
181 | @touch .config.stamp | 188 | @touch .config.stamp |
182 | 189 | ||
183 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in | 190 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
184 | $(TOPDIR)/scripts/kconfig/conf ./config.in | 191 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
185 | @touch .config.stamp | 192 | @touch .config.stamp |
186 | 193 | ||
187 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 194 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
188 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in | 195 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
189 | @touch .config.stamp | 196 | @touch .config.stamp |
190 | 197 | ||
191 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 198 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
192 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in | 199 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
193 | @touch .config.stamp | 200 | @touch .config.stamp |
194 | 201 | ||
195 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 202 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
196 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in | 203 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
197 | @touch .config.stamp | 204 | @touch .config.stamp |
198 | 205 | ||
199 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 206 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
200 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in | 207 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
201 | @touch .config.stamp | 208 | @touch .config.stamp |
202 | 209 | ||
203 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in | 210 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
204 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in | 211 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
205 | @touch .config.stamp | 212 | @touch .config.stamp |
206 | 213 | ||
207 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default | 214 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
208 | 215 | ||
209 | $(TOPDIR)/mkspecs/default : | 216 | $(TOPDIR)/mkspecs/default : |
210 | ln -sf linux-g++ $@ | 217 | ln -sf linux-g++ $@ |
211 | 218 | ||
212 | $(TOPDIR)/scripts/subst : force | 219 | $(TOPDIR)/scripts/subst : force |
213 | @( \ | 220 | @( \ |
214 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ | 221 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
215 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ | 222 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
216 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ | 223 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
217 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ | 224 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
218 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ | 225 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
219 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ | 226 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
220 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ | 227 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
221 | ) > $@ || ( rm -f $@; exit 1 ) | 228 | ) > $@ || ( rm -f $@; exit 1 ) |
222 | 229 | ||
223 | $(TOPDIR)/scripts/filesubst : force | 230 | $(TOPDIR)/scripts/filesubst : force |
224 | @( \ | 231 | @( \ |
225 | echo 's,\$$OPIEDIR/root/,/,g'; \ | 232 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
226 | echo 's,$(OPIEDIR)/root/,/,g'; \ | 233 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
227 | echo 's,\$$OPIEDIR,$(prefix),g'; \ | 234 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
228 | echo 's,$(OPIEDIR),$(prefix),g'; \ | 235 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
229 | echo 's,\$$QTDIR,$(prefix),g'; \ | 236 | echo 's,\$$QTDIR,$(prefix),g'; \ |
230 | echo 's,$(QTDIR),$(prefix),g'; \ | 237 | echo 's,$(QTDIR),$(prefix),g'; \ |
231 | echo 's,^\(\./\)*root/,/,g'; \ | 238 | echo 's,^\(\./\)*root/,/,g'; \ |
232 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ | 239 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
233 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ | 240 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
234 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ | 241 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
235 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ | 242 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
236 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ | 243 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
237 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 244 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
238 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ | 245 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
239 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ | 246 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
240 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ | 247 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
241 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ | 248 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
242 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ | 249 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
243 | ) > $@ || ( rm -f $@; exit 1 ) | 250 | ) > $@ || ( rm -f $@; exit 1 ) |
244 | 251 | ||
245 | ## general rules ## | 252 | ## general rules ## |
246 | 253 | ||
247 | define descend | 254 | define descend |
248 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) | 255 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
249 | endef | 256 | endef |
250 | 257 | ||
251 | define makefilegen | 258 | define makefilegen |
252 | cd $(if $(1),$(shell dirname $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(shell basename $(1))) `cat $(OPIEDIR)/packages | grep " \`echo $(1)|sed -e 's,/Makefile$$,,'\`" | \ | 259 | cd $(if $(1),$(shell dirname $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(shell basename $(1))) `cat $(OPIEDIR)/packages | grep " \`echo $(1)|sed -e 's,/Makefile$$,,'\`" | \ |
253 | head -1 | awk '{print $$3}'` | 260 | head -1 | awk '{print $$3}'` |
254 | endef | 261 | endef |
255 | 262 | ||
256 | define makecfg | 263 | define makecfg |
257 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) | 264 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
258 | endef | 265 | endef |