]> git.saurik.com Git - apple/xnu.git/blob - libkern/kmod/Makefile
xnu-1228.tar.gz
[apple/xnu.git] / libkern / kmod / Makefile
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 ifneq ($(MACHINE_CONFIG), DEFAULT)
11 export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
12 else
13 export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
14 endif
15
16 do_all:
17 @echo "[ $(SOURCE) ] Starting do_all $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
18 ($(MKDIR) $(COMPOBJROOT)/kmod; \
19 cd $(COMPOBJROOT)/kmod; \
20 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
21 TARGET=$(TARGET) \
22 do_build_all \
23 ); \
24 echo "[ $(SOURCE) ] Returning do_all $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)";
25
26 do_build_all: do_all
27
28 do_install:
29 @echo "[ $(SOURCE) ] Starting do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
30 ($(MKDIR) $(COMPOBJROOT)/kmod; \
31 cd $(COMPOBJROOT)/kmod; \
32 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
33 TARGET=$(TARGET) \
34 do_build_install \
35 ); \
36 echo "[ $(SOURCE) ] Returning do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)";
37
38 do_build_install: do_install
39
40 include $(MakeInc_rule)
41 include $(MakeInc_dir)