summaryrefslogtreecommitdiff
path: root/Makefile.test
Unidiff
Diffstat (limited to 'Makefile.test') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.test b/Makefile.test
index 5b51f6c..dd6673b 100644
--- a/Makefile.test
+++ b/Makefile.test
@@ -31,80 +31,82 @@ clean-configs : $(TOPDIR)/.depends.cfgs
31 31
32-include $(TOPDIR)/.depends.cfgs 32-include $(TOPDIR)/.depends.cfgs
33 33
34all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) 34all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs)
35 35
36$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) 36$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs)
37 $(call descend,scripts/kconfig,conf) 37 $(call descend,scripts/kconfig,conf)
38 @if [ ! -e $@ ]; then \ 38 @if [ ! -e $@ ]; then \
39 cp $(TOPDIR)/def-configs/opie $@; \ 39 cp $(TOPDIR)/def-configs/opie $@; \
40 fi; 40 fi;
41 @$(MAKE) -C scripts/kconfig conf; 41 @$(MAKE) -C scripts/kconfig conf;
42 ./scripts/kconfig/conf -s ./config.in 42 ./scripts/kconfig/conf -s ./config.in
43 43
44# config rules must have the $(configs) var defined 44# config rules must have the $(configs) var defined
45# at the time that they run. we must ensure that .depends.cfgs 45# at the time that they run. we must ensure that .depends.cfgs
46# is built and included by the time we reach this point. 46# is built and included by the time we reach this point.
47 47
48xconfig : 48xconfig :
49 $(call descend,scripts/kconfig,qconf) 49 $(call descend,scripts/kconfig,qconf)
50 LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ 50 LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \
51 ./scripts/kconfig/qconf ./config.in 51 ./scripts/kconfig/qconf ./config.in
52 52
53menuconfig : scripts/lxdialog/lxdialog 53menuconfig : scripts/lxdialog/lxdialog
54 $(call descend,scripts/kconfig,mconf) 54 $(call descend,scripts/kconfig,mconf)
55 ./scripts/kconfig/mconf ./config.in 55 ./scripts/kconfig/mconf ./config.in
56 56
57config : 57config :
58 $(call descend,scripts/kconfig,conf) 58 $(call descend,scripts/kconfig,conf)
59 ./scripts/kconfig/conf ./config.in 59 ./scripts/kconfig/conf ./config.in
60 60
61oldconfig : 61oldconfig :
62 $(call descend,scripts/kconfig,conf) 62 $(call descend,scripts/kconfig,conf)
63 ./scripts/kconfig/conf -o ./config.in 63 ./scripts/kconfig/conf -o ./config.in
64 64
65randconfig : 65randconfig :
66 $(call descend,scripts/kconfig,conf) 66 $(call descend,scripts/kconfig,conf)
67 ./scripts/kconfig/conf -r ./config.in 67 ./scripts/kconfig/conf -r ./config.in
68 68
69allyesconfig : 69allyesconfig :
70 $(call descend,scripts/kconfig,conf) 70 $(call descend,scripts/kconfig,conf)
71 ./scripts/kconfig/conf -y ./config.in 71 ./scripts/kconfig/conf -y ./config.in
72 72
73allnoconfig : 73allnoconfig :
74 $(call descend,scripts/kconfig,conf) 74 $(call descend,scripts/kconfig,conf)
75 ./scripts/kconfig/conf -n ./config.in 75 ./scripts/kconfig/conf -n ./config.in
76 76
77defconfig : 77defconfig :
78 $(call descend,scripts/kconfig,conf) 78 $(call descend,scripts/kconfig,conf)
79 ./scripts/kconfig/conf -d ./config.in 79 ./scripts/kconfig/conf -d ./config.in
80 80
81 81
82export 82export
83 83
84ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) 84ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
85 85
86export include-config := 1 86export include-config := 1
87 87
88-include $(TOPDIR)/.config 88-include $(TOPDIR)/.config
89-include $(TOPDIR)/.depends 89-include $(TOPDIR)/.depends
90 90
91endif 91endif
92 92
93-include $(TOPDIR)/..config.cmd 93-include $(TOPDIR)/..config.cmd
94 94
95SUBDIRS = $(subdir-y)
96
95export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) 97export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
96 98
97ifdef CONFIG_OPTIMIZATIONS 99ifdef CONFIG_OPTIMIZATIONS
98export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) 100export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS))
99export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) 101export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE))
100endif 102endif
101 103
102all clean lupdate lrelease: $(subdir-y) 104all clean lupdate lrelease install ipk: $(SUBDIRS)
103 105
104$(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers) \ 106$(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers) \
105 $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11) \ 107 $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11) \
106 $(TOPDIR)/library/custom.h 108 $(TOPDIR)/library/custom.h
107 109
108clean : $(TOPDIR)/.config 110clean : $(TOPDIR)/.config
109 111
110include $(TOPDIR)/Rules.make 112include $(TOPDIR)/Rules.make