summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-03-27 17:47:53 (UTC)
committer mickeyl <mickeyl>2004-03-27 17:47:53 (UTC)
commit6effd0ccc193cacaa1eb8225bf6e542e7d04b2bf (patch) (unidiff)
tree5917b89a4548ab6321ff0950ce31b89c868f5437
parent3d23fd31862609a2268450b44246079b8dcfb0b7 (diff)
downloadopie-6effd0ccc193cacaa1eb8225bf6e542e7d04b2bf.zip
opie-6effd0ccc193cacaa1eb8225bf6e542e7d04b2bf.tar.gz
opie-6effd0ccc193cacaa1eb8225bf6e542e7d04b2bf.tar.bz2
define OPIE_NO_DEBUG for release builds (see usage example in libopie2/core/odebug.*)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.make b/Rules.make
index 3fa98a7..c93d6ec 100644
--- a/Rules.make
+++ b/Rules.make
@@ -1,112 +1,113 @@
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 >> $@
12 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ 12 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@
13 echo DEFINES += QT_DEBUG >> $@ 13 echo DEFINES += QT_DEBUG >> $@
14else 14else
15 echo CONFIG -= debug >> $@ 15 echo CONFIG -= debug >> $@
16 echo CONFIG += release >> $@ 16 echo CONFIG += release >> $@
17 echo DEFINES += "OPIE_NO_DEBUG" >> $@
17endif 18endif
18ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 19ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
19 echo CONFIG -= qt3 >> $@ 20 echo CONFIG -= qt3 >> $@
20else 21else
21 echo CONFIG += qt3 >> $@ 22 echo CONFIG += qt3 >> $@
22endif 23endif
23ifneq ($(CONFIG_QUICK_LAUNCH),) 24ifneq ($(CONFIG_QUICK_LAUNCH),)
24 echo contains\( CONFIG, quick-app \) \{ >> $@ 25 echo contains\( CONFIG, quick-app \) \{ >> $@
25 echo CONFIG -= quick-app >> $@ 26 echo CONFIG -= quick-app >> $@
26 echo CONFIG += quick-app-lib >> $@ 27 echo CONFIG += quick-app-lib >> $@
27 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ 28 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@
28 echo \} >> $@ 29 echo \} >> $@
29else 30else
30 echo contains\( CONFIG, quick-app \) \{ >> $@ 31 echo contains\( CONFIG, quick-app \) \{ >> $@
31 echo CONFIG -= quick-app >> $@ 32 echo CONFIG -= quick-app >> $@
32 echo CONFIG += quick-app-bin >> $@ 33 echo CONFIG += quick-app-bin >> $@
33 echo \} >> $@ 34 echo \} >> $@
34endif 35endif
35ifeq ($(CONFIG_SQL_PIM_BACKEND),y) 36ifeq ($(CONFIG_SQL_PIM_BACKEND),y)
36 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ 37 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@
37else 38else
38 echo ENABLE_SQL_PIM_BACKEND=n >> $@ 39 echo ENABLE_SQL_PIM_BACKEND=n >> $@
39endif 40endif
40ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) 41ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y)
41 echo CONFIG += no-override >> $@ 42 echo CONFIG += no-override >> $@
42endif 43endif
43ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) 44ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y)
44 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ 45 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@
45endif 46endif
46ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) 47ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y)
47 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ 48 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@
48endif 49endif
49ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) 50ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y)
50 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ 51 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@
51endif 52endif
52ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) 53ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y)
53 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ 54 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
54endif 55endif
55ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) 56ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y)
56 echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ 57 echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@
57endif 58endif
58ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) 59ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
59 echo DEFINES += OPIE_NEW_MALLOC >> $@ 60 echo DEFINES += OPIE_NEW_MALLOC >> $@
60endif 61endif
61ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) 62ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
62 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ 63 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@
63endif 64endif
64 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 65 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
65 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ 66 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
66$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 67$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
67 @echo Generating dependency information... 68 @echo Generating dependency information...
68# add to subdir-y, and add descend rules 69# add to subdir-y, and add descend rules
69 @cat $(TOPDIR)/packages | grep -v '^#' | \ 70 @cat $(TOPDIR)/packages | grep -v '^#' | \
70 awk '{print \ 71 awk '{print \
71 ".PHONY : " $$2 "\n" \ 72 ".PHONY : " $$2 "\n" \
72 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 73 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
73 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 74 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
74 cat $(TOPDIR)/packages | grep -v '^#' | \ 75 cat $(TOPDIR)/packages | grep -v '^#' | \
75 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"; }' \ 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"; }' \
76 >> $(TOPDIR)/.depends 77 >> $(TOPDIR)/.depends
77# interpackage dependency generation 78# interpackage dependency generation
78 @cat $(TOPDIR)/packages | \ 79 @cat $(TOPDIR)/packages | \
79 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 80 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
80 81
81$(TOPDIR)/.depends.cfgs: 82$(TOPDIR)/.depends.cfgs:
82# config.in interdependencies 83# config.in interdependencies
83 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 84 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
84 @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 ) >> $@ 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 ) >> $@
85 @-rm -f dirs 86 @-rm -f dirs
86 87
87$(QTDIR)/stamp-headers : 88$(QTDIR)/stamp-headers :
88 @-rm -f $(QTDIR)/stamp-headers* 89 @-rm -f $(QTDIR)/stamp-headers*
89 ( cd $(QTDIR)/include; \ 90 ( cd $(QTDIR)/include; \
90 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 91 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
91 qcopchannel_qws.h qwindowsystem_qws.h \ 92 qcopchannel_qws.h qwindowsystem_qws.h \
92 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 93 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
93 touch $@ 94 touch $@
94 95
95$(QTDIR)/stamp-headers-x11 : 96$(QTDIR)/stamp-headers-x11 :
96 @-rm -f $(QTDIR)/stamp-headers* 97 @-rm -f $(QTDIR)/stamp-headers*
97 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) 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)
98 touch $@ 99 touch $@
99 100
100$(OPIEDIR)/stamp-headers : 101$(OPIEDIR)/stamp-headers :
101 @-rm -f $(OPIEDIR)/stamp-headers* 102 @-rm -f $(OPIEDIR)/stamp-headers*
102 mkdir -p $(TOPDIR)/include/qpe \ 103 mkdir -p $(TOPDIR)/include/qpe \
103 $(TOPDIR)/include/qtopia \ 104 $(TOPDIR)/include/qtopia \
104 $(TOPDIR)/include/opie \ 105 $(TOPDIR)/include/opie \
105 $(TOPDIR)/include/opie2 \ 106 $(TOPDIR)/include/opie2 \
106 $(TOPDIR)/include/qtopia/private \ 107 $(TOPDIR)/include/qtopia/private \
107 $(TOPDIR)/include/sl 108 $(TOPDIR)/include/sl
108 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 109 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
109 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 110 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
110 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 111 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
111ifeq ($(CONFIG_LIBOPIE),y) 112ifeq ($(CONFIG_LIBOPIE),y)
112 # libopie1 113 # libopie1