mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-23 04:29:53 +00:00
120 lines
2.0 KiB
Makefile
120 lines
2.0 KiB
Makefile
export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
|
|
export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
|
|
export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
|
|
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
|
|
|
|
include $(MakeInc_cmd)
|
|
include $(MakeInc_def)
|
|
|
|
MIG_TYPES =
|
|
|
|
MIG_DEFS =
|
|
|
|
MACH_PRIVATE_DEFS =
|
|
|
|
#
|
|
# MIG-generated headers that are traditionally used by user
|
|
# level code.
|
|
#
|
|
MIG_USHDRS =
|
|
|
|
MIG_UUHDRS =
|
|
|
|
MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
|
|
|
|
DATAFILES = \
|
|
bank_types.h \
|
|
${MIG_TYPES} \
|
|
${MIG_DEFS}
|
|
|
|
INSTALL_MI_LIST = \
|
|
${DATAFILES}
|
|
|
|
INSTALL_KF_MI_LIST = \
|
|
${DATAFILES}
|
|
|
|
INSTALL_KF_MI_LCL_LIST = \
|
|
${DATAFILES}
|
|
|
|
INSTALL_MI_GEN_LIST =
|
|
|
|
INSTALL_MI_DIR = bank
|
|
|
|
EXPORT_MI_LIST = \
|
|
${DATAFILES}
|
|
|
|
EXPORT_MI_GEN_LIST = \
|
|
${MIGINCLUDES}
|
|
|
|
EXPORT_MI_DIR = bank
|
|
|
|
${MIGINCLUDES} : ${MIG_TYPES}
|
|
|
|
${MIG_UUHDRS} : \
|
|
%.h : %.defs
|
|
@$(LOG_MIG) $@
|
|
$(_v)$(MIG) $(MIGFLAGS) \
|
|
-server /dev/null \
|
|
-user /dev/null \
|
|
-header $@ \
|
|
$<
|
|
|
|
${MIG_USHDRS} : \
|
|
%_server.h : %.defs
|
|
@$(LOG_MIG) $@
|
|
$(_v)$(MIG) $(MIGFLAGS) \
|
|
-server /dev/null \
|
|
-user /dev/null \
|
|
-header /dev/null \
|
|
-sheader $@ \
|
|
$<
|
|
|
|
#
|
|
# Build path
|
|
#
|
|
|
|
INCFLAGS_MAKEFILE= -I..
|
|
|
|
MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
|
|
MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
|
|
#
|
|
# MIG-generated headers that are traditionally used by kernel
|
|
# level code.
|
|
#
|
|
MIG_KUHDRS =
|
|
|
|
MIG_KUSRC =
|
|
|
|
MIG_KSHDRS =
|
|
|
|
MIG_KSSRC =
|
|
|
|
COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
|
|
|
|
do_build_all:: $(COMP_FILES)
|
|
|
|
${COMP_FILES} : ${MIG_TYPES}
|
|
|
|
${MIG_KUSRC} : \
|
|
%_user.c : %.defs
|
|
@$(LOG_MIG) $@
|
|
$(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
|
|
-user $*_user.c \
|
|
-header $*.h \
|
|
-server /dev/null \
|
|
-sheader /dev/null \
|
|
$<
|
|
|
|
${MIG_KSSRC}: \
|
|
%_server.c : %.defs
|
|
@$(LOG_MIG) $@
|
|
$(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
|
|
-user /dev/null \
|
|
-header /dev/null \
|
|
-server $*_server.c \
|
|
-sheader $*_server.h \
|
|
$<
|
|
|
|
include $(MakeInc_rule)
|
|
include $(MakeInc_dir)
|