]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd |
2 | export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def | |
3 | export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule | |
4 | export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir | |
5 | ||
6 | ||
7 | include $(MakeInc_cmd) | |
8 | include $(MakeInc_def) | |
9 | ||
10 | SETUP_SUBDIRS = \ | |
11 | tools | |
12 | ||
13 | COMP_SUBDIRS = | |
14 | ||
15 | INST_SUBDIRS = | |
16 | ||
55e303ae A |
17 | ifndef LIBSA_KERNEL_CONFIG |
18 | export LIBSA_KERNEL_CONFIG = $(KERNEL_CONFIG) | |
1c79356b A |
19 | endif |
20 | ||
2d21ac55 A |
21 | ifneq ($(MACHINE_CONFIG), DEFAULT) |
22 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT) | |
23 | else | |
55e303ae | 24 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) |
2d21ac55 | 25 | endif |
1c79356b | 26 | |
2d21ac55 A |
27 | $(COMPOBJROOT)/doconf: |
28 | @make build_setup | |
1c79356b | 29 | |
55e303ae | 30 | $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \ |
0b4e3aa0 | 31 | $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \ |
1c79356b | 32 | $(SOURCE)/Makefile.template \ |
0b4e3aa0 | 33 | $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \ |
1c79356b | 34 | $(SOURCE)/files \ |
0b4e3aa0 | 35 | $(SOURCE)/files.$(ARCH_CONFIG_LC) \ |
2d21ac55 A |
36 | $(COMPOBJROOT)/doconf |
37 | $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \ | |
1c79356b A |
38 | echo $${doconf_target};\ |
39 | $(MKDIR) $${doconf_target}; \ | |
40 | cd $${doconf_target}; \ | |
41 | rm -f $(notdir $?); \ | |
42 | cp $? $${doconf_target}; \ | |
2d21ac55 | 43 | $(COMPOBJROOT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(LIBSA_KERNEL_CONFIG) $(LIBSA_KERNEL_CONFIG); \ |
1c79356b A |
44 | ); |
45 | ||
55e303ae | 46 | .ORDER: $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile |
1c79356b | 47 | |
2d21ac55 | 48 | do_setup_conf: $(COMPOBJROOT)/doconf \ |
55e303ae | 49 | $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile |
1c79356b A |
50 | |
51 | do_all: do_setup_conf | |
2d21ac55 | 52 | $(_v)next_source=$(subst conf/,,$(SOURCE)); \ |
55e303ae A |
53 | ${MAKE} -C $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG) \ |
54 | MAKEFILES=$(TARGET)/$(LIBSA_KERNEL_CONFIG)/Makefile \ | |
1c79356b A |
55 | SOURCE=$${next_source} \ |
56 | TARGET=$(TARGET) \ | |
0b4e3aa0 | 57 | INCL_MAKEDEP=FALSE \ |
55e303ae | 58 | KERNEL_CONFIG=$(LIBSA_KERNEL_CONFIG) \ |
2d21ac55 | 59 | build_all; |
1c79356b A |
60 | |
61 | do_build_all: do_all | |
62 | ||
63 | include $(MakeInc_rule) | |
64 | include $(MakeInc_dir) | |
65 |