|
|
|
@@ -42,32 +42,33 @@ endif |
42 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
42 | ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) |
43 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
43 | echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ |
44 | endif |
44 | endif |
45 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
45 | ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) |
46 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
46 | echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ |
47 | endif |
47 | endif |
48 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) |
48 | ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) |
49 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ |
49 | echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ |
50 | endif |
50 | endif |
51 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
51 | ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) |
52 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
52 | echo DEFINES += OPIE_NEW_MALLOC >> $@ |
53 | endif |
53 | endif |
54 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
54 | ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) |
55 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
55 | echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ |
56 | endif |
56 | endif |
57 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
57 | echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ |
| |
58 | echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ |
58 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
59 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
59 | @echo Generating dependency information... |
60 | @echo Generating dependency information... |
60 | # add to subdir-y, and add descend rules |
61 | # add to subdir-y, and add descend rules |
61 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
62 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
62 | awk '{print \ |
63 | awk '{print \ |
63 | ".PHONY : " $$2 "\n" \ |
64 | ".PHONY : " $$2 "\n" \ |
64 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
65 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
65 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
66 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
66 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
67 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
67 | 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"; }' \ |
68 | 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"; }' \ |
68 | >> $(TOPDIR)/.depends |
69 | >> $(TOPDIR)/.depends |
69 | # interpackage dependency generation |
70 | # interpackage dependency generation |
70 | @cat $(TOPDIR)/packages | \ |
71 | @cat $(TOPDIR)/packages | \ |
71 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
72 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
72 | |
73 | |
73 | $(TOPDIR)/.depends.cfgs: |
74 | $(TOPDIR)/.depends.cfgs: |
|