summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 685d213..463e636 100644
--- a/Makefile
+++ b/Makefile
@@ -1,49 +1,53 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2ifndef QTDIR
3$(error QTDIR not set)
4endif
5
2export OPIEDIR:=$(shell pwd) 6export OPIEDIR:=$(shell pwd)
3export TOPDIR:=$(OPIEDIR) 7export TOPDIR:=$(OPIEDIR)
4export QMAKE:=$(OPIEDIR)/qmake/qmake 8export QMAKE:=$(OPIEDIR)/qmake/qmake
5 9
6export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 10export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
7 11
8noconfig_targets := xconfig menuconfig config oldconfig randconfig \ 12noconfig_targets := xconfig menuconfig config oldconfig randconfig \
9 defconfig allyesconfig allnoconfig allmodconfig \ 13 defconfig allyesconfig allnoconfig allmodconfig \
10 clean-configs 14 clean-configs
11 15
12configs += $(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/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/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/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/unsupported/opiemail/ifaces/config.in $(TOPDIR)/noncore/unsupported/config.in $(TOPDIR)/noncore/todayplugins/config.in 16configs += $(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/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/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/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/unsupported/opiemail/ifaces/config.in $(TOPDIR)/noncore/unsupported/config.in $(TOPDIR)/noncore/todayplugins/config.in
13 17
14# $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) 18# $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs)
15# in order to have a full set of config.in files. 19# in order to have a full set of config.in files.
16# .depends depends on $(TOPDIR)/.config 20# .depends depends on $(TOPDIR)/.config
17# everything else depends on .depends, to ensure the dependencies are 21# everything else depends on .depends, to ensure the dependencies are
18# intact. 22# intact.
19# 23#
20# NOTE: The order in which things happen in this makefile is 24# NOTE: The order in which things happen in this makefile is
21 # -critical-. Do not rearrange this! 25 # -critical-. Do not rearrange this!
22 26
23all : $(TOPDIR)/.config 27all : $(TOPDIR)/.config
24 28
25$(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs 29$(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs
26 30
27all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs 31all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs
28 32
29clean-configs : 33clean-configs :
30 @echo "Wiping generated config.in files..." 34 @echo "Wiping generated config.in files..."
31 @-rm -f $(configs) 35 @-rm -f $(configs)
32 36
33-include $(TOPDIR)/.depends.cfgs 37-include $(TOPDIR)/.depends.cfgs
34 38
35all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) 39all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs)
36 40
37$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) 41$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs)
38 $(call descend,scripts/kconfig,conf) 42 $(call descend,scripts/kconfig,conf)
39 @if [ ! -e $@ ]; then \ 43 @if [ ! -e $@ ]; then \
40 cp $(TOPDIR)/def-configs/opie $@; \ 44 cp $(TOPDIR)/def-configs/opie $@; \
41 fi; 45 fi;
42 @$(MAKE) -C scripts/kconfig conf; 46 @$(MAKE) -C scripts/kconfig conf;
43 ./scripts/kconfig/conf -s ./config.in 47 ./scripts/kconfig/conf -s ./config.in
44 48
45# config rules must have the $(configs) var defined 49# config rules must have the $(configs) var defined
46# at the time that they run. we must ensure that .depends.cfgs 50# at the time that they run. we must ensure that .depends.cfgs
47# is built and included by the time we reach this point. 51# is built and included by the time we reach this point.
48 52
49xconfig : 53xconfig :