]> git.saurik.com Git - apple/xnu.git/blob - libkern/kmod/Makefile
xnu-1699.22.73.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 $(_v)($(MKDIR) $(COMPOBJROOT)/kmod; \
18 cd $(COMPOBJROOT)/kmod; \
19 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
20 TARGET=$(TARGET) \
21 do_build_all \
22 )
23
24 do_build_all: do_all
25
26 do_install:
27 @echo "[ $(SOURCE) ] make do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
28 ($(MKDIR) $(COMPOBJROOT)/kmod; \
29 cd $(COMPOBJROOT)/kmod; \
30 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
31 TARGET=$(TARGET) \
32 do_build_install \
33 )
34
35 do_build_install: do_install
36
37 include $(MakeInc_rule)
38 include $(MakeInc_dir)