]> git.saurik.com Git - apple/xnu.git/blame - libkern/kmod/Makefile
xnu-1456.1.26.tar.gz
[apple/xnu.git] / libkern / kmod / Makefile
CommitLineData
1c79356b
A
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
2d21ac55
A
10ifneq ($(MACHINE_CONFIG), DEFAULT)
11export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
12else
13export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
14endif
1c79356b
A
15
16do_all:
b0d623f7 17 $(_v)($(MKDIR) $(COMPOBJROOT)/kmod; \
1c79356b
A
18 cd $(COMPOBJROOT)/kmod; \
19 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
20 TARGET=$(TARGET) \
21 do_build_all \
b0d623f7 22 )
1c79356b
A
23
24do_build_all: do_all
25
26do_install:
b0d623f7 27 @echo "[ $(SOURCE) ] make do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
1c79356b
A
28 ($(MKDIR) $(COMPOBJROOT)/kmod; \
29 cd $(COMPOBJROOT)/kmod; \
30 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \
31 TARGET=$(TARGET) \
32 do_build_install \
b0d623f7 33 )
1c79356b
A
34
35do_build_install: do_install
36
37include $(MakeInc_rule)
38include $(MakeInc_dir)