xref: /xnu-8020.140.41/osfmk/i386/Makefile (revision 27b03b360a988dfd3dfdf34262bb0042026747cc)
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
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9EXPORT_ONLY_FILES =	\
10		    apic.h \
11		    asm.h \
12		    atomic.h \
13		    bit_routines.h \
14		    cpu_number.h \
15		    cpu_capabilities.h	\
16		    cpu_data.h \
17		    cpu_topology.h \
18		    cpuid.h \
19		    eflags.h \
20		    fpu.h \
21			x86_hypercall.h \
22		    io_map_entries.h \
23		    lapic.h \
24		    lock.h \
25		    locks.h \
26		    locks_i386_inlines.h \
27		    machine_routines.h \
28		    machine_cpu.h \
29		    memory_types.h \
30		    mtrr.h \
31		    mp.h \
32		    mp_desc.h \
33		    mp_events.h \
34		    pal_native.h \
35		    pal_routines.h \
36		    pal_hibernate.h \
37		    panic_hooks.h \
38		    pmCPU.h \
39		    pmap.h \
40		    proc_reg.h \
41		    rtclock_protos.h \
42		    seg.h \
43		    simple_lock.h \
44		    smp.h \
45	            trap.h \
46		    tsc.h \
47		    tss.h \
48		    ucode.h \
49		    vmx.h
50
51INSTALL_MD_DIR = i386
52
53# These are covered by ../../bsd/machine/machine.modulemap.
54INSTALL_MD_LIST = eflags.h user_ldt.h
55
56# These are covered by ../../bsd/machine/machine_private.modulemap.
57INSTALL_MD_LCL_LIST = cpu_capabilities.h
58
59INSTALL_SF_MD_LCL_LIST = ${INSTALL_MD_LIST} ${INSTALL_MD_LCL_LIST}
60
61INSTALL_KF_MD_LIST = asm.h cpuid.h eflags.h locks.h machine_routines.h proc_reg.h vmx.h
62
63INSTALL_KF_MD_LCL_LIST = $(filter-out bit_routines.h cpu_data.h pal_i386.h, $(EXPORT_ONLY_FILES))
64
65EXPORT_MD_LIST = ${EXPORT_ONLY_FILES}
66
67EXPORT_MD_DIR = i386
68
69include $(MakeInc_rule)
70include $(MakeInc_dir)
71