-rw-r--r-- | Rules.make | 11 | ||||
-rw-r--r-- | config.in | 4 | ||||
-rw-r--r-- | include.pro | 18 |
3 files changed, 32 insertions, 1 deletions
@@ -1,116 +1,127 @@ | |||
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),) | ||
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ | ||
23 | echo CONFIG -= quick-app >> $@ | ||
24 | echo CONFIG += quick-app-lib >> $@ | ||
25 | echo \} >> $@ | ||
26 | else | ||
27 | echo contains\( CONFIG, quick-app \) \{ >> $@ | ||
28 | echo CONFIG -= quick-app >> $@ | ||
29 | echo CONFIG += quick-app-bin >> $@ | ||
30 | echo \} >> $@ | ||
31 | endif | ||
21 | 32 | ||
22 | $(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 |
23 | @echo Generating dependency information... | 34 | @echo Generating dependency information... |
24 | # add to subdir-y, and add descend rules | 35 | # add to subdir-y, and add descend rules |
25 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 36 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
26 | awk '{print \ | 37 | awk '{print \ |
27 | ".PHONY : " $$2 "\n" \ | 38 | ".PHONY : " $$2 "\n" \ |
28 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 39 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
29 | 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 |
30 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 41 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
31 | 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"; }' \ |
32 | >> $(TOPDIR)/.depends | 43 | >> $(TOPDIR)/.depends |
33 | # interpackage dependency generation | 44 | # interpackage dependency generation |
34 | @cat $(TOPDIR)/packages | \ | 45 | @cat $(TOPDIR)/packages | \ |
35 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 46 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
36 | 47 | ||
37 | $(TOPDIR)/.depends.cfgs: | 48 | $(TOPDIR)/.depends.cfgs: |
38 | # config.in interdependencies | 49 | # config.in interdependencies |
39 | @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 |
40 | @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 ) >> $@ |
41 | @-rm -f dirs | 52 | @-rm -f dirs |
42 | 53 | ||
43 | $(QTDIR)/stamp-headers : | 54 | $(QTDIR)/stamp-headers : |
44 | @-rm -f $(QTDIR)/stamp-headers* | 55 | @-rm -f $(QTDIR)/stamp-headers* |
45 | ( cd $(QTDIR)/include; \ | 56 | ( cd $(QTDIR)/include; \ |
46 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ | 57 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
47 | qcopchannel_qws.h qwindowsystem_qws.h \ | 58 | qcopchannel_qws.h qwindowsystem_qws.h \ |
48 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) | 59 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
49 | touch $@ | 60 | touch $@ |
50 | 61 | ||
51 | $(QTDIR)/stamp-headers-x11 : | 62 | $(QTDIR)/stamp-headers-x11 : |
52 | @-rm -f $(QTDIR)/stamp-headers* | 63 | @-rm -f $(QTDIR)/stamp-headers* |
53 | 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) |
54 | touch $@ | 65 | touch $@ |
55 | 66 | ||
56 | $(OPIEDIR)/stamp-headers : | 67 | $(OPIEDIR)/stamp-headers : |
57 | @-rm -f $(OPIEDIR)/stamp-headers* | 68 | @-rm -f $(OPIEDIR)/stamp-headers* |
58 | mkdir -p $(TOPDIR)/include/qpe \ | 69 | mkdir -p $(TOPDIR)/include/qpe \ |
59 | $(TOPDIR)/include/qtopia \ | 70 | $(TOPDIR)/include/qtopia \ |
60 | $(TOPDIR)/include/opie \ | 71 | $(TOPDIR)/include/opie \ |
61 | $(TOPDIR)/include/opie2 \ | 72 | $(TOPDIR)/include/opie2 \ |
62 | $(TOPDIR)/include/qtopia/private | 73 | $(TOPDIR)/include/qtopia/private |
63 | ( 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; ) |
64 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 75 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
65 | ( 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 .; ) |
66 | ( 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; ) |
67 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 78 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
68 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 79 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
69 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 80 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
70 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 81 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
71 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 82 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
72 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 83 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
73 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 84 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
74 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 85 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
75 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 86 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
76 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 87 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
77 | touch $@ | 88 | touch $@ |
78 | 89 | ||
79 | $(OPIEDIR)/stamp-headers-x11 : | 90 | $(OPIEDIR)/stamp-headers-x11 : |
80 | @-rm -f $(OPIEDIR)/stamp-headers* | 91 | @-rm -f $(OPIEDIR)/stamp-headers* |
81 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ | 92 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
82 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private | 93 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
83 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 94 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
84 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 95 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
85 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 96 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
86 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) | 97 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
87 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) | 98 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
88 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) | 99 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
89 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 100 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
90 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) | 101 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
91 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 102 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
92 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 103 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
93 | touch $@ | 104 | touch $@ |
94 | 105 | ||
95 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 106 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
96 | @-rm -f $@ | 107 | @-rm -f $@ |
97 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 108 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
98 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 109 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
99 | @touch $@ | 110 | @touch $@ |
100 | 111 | ||
101 | $(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: | 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: |
102 | @$(call descend,$(shell dirname $@),$(shell basename $@)) | 113 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
103 | 114 | ||
104 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 115 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
105 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 116 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
106 | @touch ./.config.stamp | 117 | @touch ./.config.stamp |
107 | 118 | ||
108 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 119 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
109 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 120 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
110 | @touch .config.stamp | 121 | @touch .config.stamp |
111 | 122 | ||
112 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 123 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
113 | $(TOPDIR)/scripts/kconfig/gconf ./config.in | 124 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
114 | @touch .config.stamp | 125 | @touch .config.stamp |
115 | 126 | ||
116 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in | 127 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
@@ -1,135 +1,139 @@ | |||
1 | mainmenu "Opie Configuration" | 1 | mainmenu "Opie Configuration" |
2 | 2 | ||
3 | menu "Build Parameters" | 3 | menu "Build Parameters" |
4 | 4 | ||
5 | choice | 5 | choice |
6 | prompt "Target Machine" | 6 | prompt "Target Machine" |
7 | default TARGET_X86 | 7 | default TARGET_X86 |
8 | help | 8 | help |
9 | Please select the architecture of the machine you will be | 9 | Please select the architecture of the machine you will be |
10 | building the OpenZaurus buildroot for. | 10 | building the OpenZaurus buildroot for. |
11 | 11 | ||
12 | config TARGET_X86 | 12 | config TARGET_X86 |
13 | boolean "Intel X86" | 13 | boolean "Intel X86" |
14 | 14 | ||
15 | config TARGET_SHARP | 15 | config TARGET_SHARP |
16 | boolean "Sharp Zaurus" | 16 | boolean "Sharp Zaurus" |
17 | 17 | ||
18 | config TARGET_IPAQ | 18 | config TARGET_IPAQ |
19 | boolean "iPAQ" | 19 | boolean "iPAQ" |
20 | 20 | ||
21 | config TARGET_RAMSES | 21 | config TARGET_RAMSES |
22 | boolean "Ramses" | 22 | boolean "Ramses" |
23 | 23 | ||
24 | config TARGET_SIMPAD | 24 | config TARGET_SIMPAD |
25 | boolean "SIMpad" | 25 | boolean "SIMpad" |
26 | 26 | ||
27 | endchoice | 27 | endchoice |
28 | 28 | ||
29 | config OPTIMIZE | 29 | config OPTIMIZE |
30 | boolean "Use optimizations" | 30 | boolean "Use optimizations" |
31 | default "y" if ! TARGET_X86 | 31 | default "y" if ! TARGET_X86 |
32 | 32 | ||
33 | config DEBUG | 33 | config DEBUG |
34 | boolean "Enable debug builds" | 34 | boolean "Enable debug builds" |
35 | default n | 35 | default n |
36 | config RELEASE | 36 | config RELEASE |
37 | bool | 37 | bool |
38 | default y | 38 | default y |
39 | depends !DEBUG | 39 | depends !DEBUG |
40 | |||
41 | config QUICK_LAUNCH | ||
42 | boolean "Enable Quick Launch" | ||
43 | default n | ||
40 | 44 | ||
41 | config SPECFILE | 45 | config SPECFILE |
42 | string | 46 | string |
43 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) | 47 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) |
44 | default "linux-g++" if TARGET_X86 && X11 | 48 | default "linux-g++" if TARGET_X86 && X11 |
45 | default "qws/linux-sharp-g++" if TARGET_SHARP && (! X11) | 49 | default "qws/linux-sharp-g++" if TARGET_SHARP && (! X11) |
46 | default "linux-g++" if TARGET_SHARP && X11 | 50 | default "linux-g++" if TARGET_SHARP && X11 |
47 | default "qws/linux-ipaq-g++" if TARGET_IPAQ && (! X11) | 51 | default "qws/linux-ipaq-g++" if TARGET_IPAQ && (! X11) |
48 | default "linux-g++" if TARGET_IPAQ && X11 | 52 | default "linux-g++" if TARGET_IPAQ && X11 |
49 | default "qws/linux-ramses-g++" if TARGET_RAMSES && (! X11) | 53 | default "qws/linux-ramses-g++" if TARGET_RAMSES && (! X11) |
50 | default "linux-g++" if TARGET_RAMSES && X11 | 54 | default "linux-g++" if TARGET_RAMSES && X11 |
51 | default "qws/linux-simpad-g++" if TARGET_SIMPAD && (! X11) | 55 | default "qws/linux-simpad-g++" if TARGET_SIMPAD && (! X11) |
52 | default "linux-g++" if TARGET_SIMPAD && X11 | 56 | default "linux-g++" if TARGET_SIMPAD && X11 |
53 | 57 | ||
54 | config CUSTOMFILE | 58 | config CUSTOMFILE |
55 | string | 59 | string |
56 | default "custom-ipaq.h" if TARGET_IPAQ | 60 | default "custom-ipaq.h" if TARGET_IPAQ |
57 | default "custom-sharp.h" if TARGET_SHARP | 61 | default "custom-sharp.h" if TARGET_SHARP |
58 | default "custom-ramses.h" if TARGET_RAMSES | 62 | default "custom-ramses.h" if TARGET_RAMSES |
59 | default "custom-ipaq.h" if TARGET_SIMPAD | 63 | default "custom-ipaq.h" if TARGET_SIMPAD |
60 | 64 | ||
61 | config OPTIMIZATIONS | 65 | config OPTIMIZATIONS |
62 | string "Optimization flags" | 66 | string "Optimization flags" |
63 | depends OPTIMIZE | 67 | depends OPTIMIZE |
64 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ | 68 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ |
65 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP | 69 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP |
66 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_RAMSES | 70 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_RAMSES |
67 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SIMPAD | 71 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SIMPAD |
68 | 72 | ||
69 | config EXPERIMENTAL | 73 | config EXPERIMENTAL |
70 | bool "Prompt for development and/or incomplete items" | 74 | bool "Prompt for development and/or incomplete items" |
71 | default y | 75 | default y |
72 | 76 | ||
73 | endmenu | 77 | endmenu |
74 | 78 | ||
75 | menu "Base" | 79 | menu "Base" |
76 | choice | 80 | choice |
77 | prompt "Qpe Library Selection" | 81 | prompt "Qpe Library Selection" |
78 | default LIBQPE | 82 | default LIBQPE |
79 | source library/config.in | 83 | source library/config.in |
80 | source x11/config.in | 84 | source x11/config.in |
81 | endchoice | 85 | endchoice |
82 | source libopie/config.in | 86 | source libopie/config.in |
83 | source core/opie-login/config.in | 87 | source core/opie-login/config.in |
84 | source core/opiealarm/config.in | 88 | source core/opiealarm/config.in |
85 | source core/launcher/config.in | 89 | source core/launcher/config.in |
86 | source core/qws/config.in | 90 | source core/qws/config.in |
87 | endmenu | 91 | endmenu |
88 | 92 | ||
89 | comment "" | 93 | comment "" |
90 | 94 | ||
91 | menu "Applets" | 95 | menu "Applets" |
92 | source core/applets/config.in | 96 | source core/applets/config.in |
93 | source noncore/applets/config.in | 97 | source noncore/applets/config.in |
94 | endmenu | 98 | endmenu |
95 | 99 | ||
96 | menu "Apps" | 100 | menu "Apps" |
97 | source core/apps/config.in | 101 | source core/apps/config.in |
98 | source noncore/apps/config.in | 102 | source noncore/apps/config.in |
99 | endmenu | 103 | endmenu |
100 | 104 | ||
101 | menu "Communications and Networking" | 105 | menu "Communications and Networking" |
102 | source noncore/comm/config.in | 106 | source noncore/comm/config.in |
103 | source noncore/mail/config.in | 107 | source noncore/mail/config.in |
104 | source noncore/net/config.in | 108 | source noncore/net/config.in |
105 | endmenu | 109 | endmenu |
106 | 110 | ||
107 | menu "Games" | 111 | menu "Games" |
108 | source noncore/games/config.in | 112 | source noncore/games/config.in |
109 | endmenu | 113 | endmenu |
110 | 114 | ||
111 | menu "Graphics and Multimedia" | 115 | menu "Graphics and Multimedia" |
112 | source freetype/config.in | 116 | source freetype/config.in |
113 | source noncore/graphics/config.in | 117 | source noncore/graphics/config.in |
114 | source core/multimedia/config.in | 118 | source core/multimedia/config.in |
115 | source noncore/multimedia/config.in | 119 | source noncore/multimedia/config.in |
116 | endmenu | 120 | endmenu |
117 | 121 | ||
118 | menu "Input methods" | 122 | menu "Input methods" |
119 | source inputmethods/config.in | 123 | source inputmethods/config.in |
120 | endmenu | 124 | endmenu |
121 | 125 | ||
122 | menu "Pim" | 126 | menu "Pim" |
123 | source core/pim/config.in | 127 | source core/pim/config.in |
124 | menu "Today Plugins" | 128 | menu "Today Plugins" |
125 | source noncore/todayplugins/config.in | 129 | source noncore/todayplugins/config.in |
126 | source core/pim/today/plugins/config.in | 130 | source core/pim/today/plugins/config.in |
127 | endmenu | 131 | endmenu |
128 | endmenu | 132 | endmenu |
129 | 133 | ||
130 | menu "Settings" | 134 | menu "Settings" |
131 | source core/settings/config.in | 135 | source core/settings/config.in |
132 | source noncore/settings/config.in | 136 | source noncore/settings/config.in |
133 | endmenu | 137 | endmenu |
134 | 138 | ||
135 | menu "Theming" | 139 | menu "Theming" |
diff --git a/include.pro b/include.pro index 3ba8776..c70c4d5 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,80 +1,96 @@ | |||
1 | include ( $(OPIEDIR)/gen.pro ) | ||
2 | |||
1 | # make install | 3 | # make install |
2 | 4 | ||
3 | # base opie install path | 5 | # base opie install path |
4 | prefix = /opt/QtPalmtop | 6 | prefix = /opt/QtPalmtop |
5 | 7 | ||
8 | |||
9 | contains( CONFIG, quick-app-lib ) { | ||
10 | TEMPLATE = lib | ||
11 | DESTDIR = $(OPIEDIR)/plugins/applications | ||
12 | DEFINES += OPIE_APP_INTERFACE | ||
13 | } | ||
14 | contains ( CONFIG, quick-app-bin ) { | ||
15 | TEMPLATE = app | ||
16 | DESTDIR = $(OPIEDIR)/bin | ||
17 | DEFINES -= OPIE_APP_INTERFACE | ||
18 | } | ||
19 | |||
20 | |||
6 | contains( TEMPLATE, lib ) { | 21 | contains( TEMPLATE, lib ) { |
7 | target.path = $$prefix/lib | 22 | target.path = $$prefix/lib |
8 | } | 23 | } |
9 | !contains( TEMPLATE, lib ) { | 24 | !contains( TEMPLATE, lib ) { |
10 | target.path = $$prefix/bin | 25 | target.path = $$prefix/bin |
11 | } | 26 | } |
12 | INSTALLS += target | 27 | INSTALLS += target |
13 | 28 | ||
14 | # ipkg control files | 29 | # ipkg control files |
15 | control.path = /CONTROL | 30 | control.path = /CONTROL |
16 | control.files = control postinst prerm postrm preinst conffiles | 31 | control.files = control postinst prerm postrm preinst conffiles |
17 | INSTALLS += control | 32 | INSTALLS += control |
18 | 33 | ||
19 | # images, default is $$prefix/pics/$$TARGET | 34 | # images, default is $$prefix/pics/$$TARGET |
20 | pics.path = $$prefix/pics/$$TARGET | 35 | pics.path = $$prefix/pics/$$TARGET |
21 | pics.files = pics/* | 36 | pics.files = pics/* |
22 | INSTALLS += pics | 37 | INSTALLS += pics |
23 | 38 | ||
24 | # sounds, default path is $$prefix/sounds/$$TARGET | 39 | # sounds, default path is $$prefix/sounds/$$TARGET |
25 | sounds.path = $$prefix/sounds/$$TARGET | 40 | sounds.path = $$prefix/sounds/$$TARGET |
26 | sounds.files = sounds/* | 41 | sounds.files = sounds/* |
27 | INSTALLS += sounds | 42 | INSTALLS += sounds |
28 | 43 | ||
29 | # init scripts, default path is /etc/init.d | 44 | # init scripts, default path is /etc/init.d |
30 | init.path = /etc/init.d | 45 | init.path = /etc/init.d |
31 | init.files = init.d/* | 46 | init.files = init.d/* |
32 | INSTALLS += init | 47 | INSTALLS += init |
33 | 48 | ||
34 | # data, default path is /usr/share/$$TARGET | 49 | # data, default path is /usr/share/$$TARGET |
35 | data.path = /usr/share/$$TARGET | 50 | data.path = /usr/share/$$TARGET |
36 | data.files = share/* | 51 | data.files = share/* |
37 | INSTALLS += data | 52 | INSTALLS += data |
38 | 53 | ||
39 | etc.path = $$prefix/etc/ | 54 | etc.path = $$prefix/etc/ |
40 | etc.files = etc/* | 55 | etc.files = etc/* |
41 | INSTALLS += etc | 56 | INSTALLS += etc |
42 | 57 | ||
43 | apps.path = $$prefix/apps/ | 58 | apps.path = $$prefix/apps/ |
44 | apps.files = apps/* | 59 | apps.files = apps/* |
45 | INSTALLS += apps | 60 | INSTALLS += apps |
46 | 61 | ||
47 | # sounds, default path is $$prefix/sounds/$$TARGET | 62 | # sounds, default path is $$prefix/sounds/$$TARGET |
48 | sounds.path = $$prefix/sounds/$$TARGET | 63 | sounds.path = $$prefix/sounds/$$TARGET |
49 | sounds.files = sounds/* | 64 | sounds.files = sounds/* |
50 | INSTALLS += sounds | 65 | INSTALLS += sounds |
51 | 66 | ||
52 | # anything in nonstandard paths | 67 | # anything in nonstandard paths |
53 | root.path = / | 68 | root.path = / |
54 | root.files = root/* | 69 | root.files = root/* |
55 | INSTALLS += root | 70 | INSTALLS += root |
56 | 71 | ||
57 | # new targets | 72 | # new targets |
58 | opie-lupdate.target = opie-lupdate | 73 | opie-lupdate.target = opie-lupdate |
59 | opie-lupdate.commands = opie-lupdate -noobsolete $(PRO) | 74 | opie-lupdate.commands = opie-lupdate -noobsolete $(PRO) |
60 | 75 | ||
61 | opie-lrelease.target = opie-lrelease | 76 | opie-lrelease.target = opie-lrelease |
62 | opie-lrelease.commands = opie-lrelease $(PRO) | 77 | opie-lrelease.commands = opie-lrelease $(PRO) |
63 | 78 | ||
64 | lupdate.target = lupdate | 79 | lupdate.target = lupdate |
65 | lupdate.commands = lupdate -noobsolete $(PRO) | 80 | lupdate.commands = lupdate -noobsolete $(PRO) |
66 | 81 | ||
67 | lrelease.target = lrelease | 82 | lrelease.target = lrelease |
68 | lrelease.commands = lrelease $(PRO) | 83 | lrelease.commands = lrelease $(PRO) |
69 | 84 | ||
70 | ipk.target = ipk | 85 | ipk.target = ipk |
71 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 86 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
72 | 87 | ||
73 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease | 88 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease |
74 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib | 89 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib |
75 | QMAKE_LIBDIR += $(OPIEDIR)/lib | 90 | QMAKE_LIBDIR += $(OPIEDIR)/lib |
76 | 91 | ||
77 | MOC_DIR=.moc/$(PLATFORM) | 92 | MOC_DIR=.moc/$(PLATFORM) |
78 | OBJECTS_DIR=.obj/$(PLATFORM) | 93 | OBJECTS_DIR=.obj/$(PLATFORM) |
79 | 94 | ||
80 | include ( $(OPIEDIR)/gen.pro ) | 95 | #was here now at thetop |
96 | #include ( $(OPIEDIR)/gen.pro ) | ||