#
# @OSF_COPYRIGHT@
#
#
# HISTORY
# $Log:	Makefile,v $
# Revision 1.1  92/04/22  18:00:00  pha
# Initial revision
# 
# Revision 1.9.4.3  91/07/03  16:15:13  robert
# 	 added line whch eric forgot -
# 	std_types.defs mach_types.defs mach.defs ${MIG_DEFS}
# 	[91/07/03  16:12:41  robert]
# 
# Revision 1.9.4.2  91/06/21  13:05:00  ers
# 	 Added mach_host.defs and monitor.defs
# 	[91/06/21  09:24:26  ers]
# 
# Revision 1.9  90/10/07  20:29:47  devrcs
# 	Added EndLog Marker.
# 	[90/09/28  20:48:51  gm]
# 
# Revision 1.8  90/09/23  16:43:21  devrcs
# 	added vm_attributes.h to export list
# 	[90/09/12  10:50:53  pam]
# 
# Revision 1.7  90/08/09  14:26:35  devrcs
# 	Cleanup for export, install and post-freeze.
# 	[90/08/05  13:32:11  gm]
# 
# $EndLog$

VPATH			= ${MAKETOP}/kernel/mach

SUBDIRS			= ${MACHINE}
EXPINC_SUBDIRS		= ${SUBDIRS}
MIG_DEFS		= exc.defs mach_host.defs monitor.defs
DATAFILES		= boolean.h device_types.h error.h exception.h \
			  host_info.h kern_return.h kernel_event.h \
			  mach_extra.h mach_param.h \
			  mach_traps.h mach_types.h \
			  machine.h memory_object.h message.h \
			  mig_errors.h msg_type.h netport.h notify.h \
			  policy.h port.h processor_info.h \
			  std_types.h syscall_sw.h \
			  task_info.h task_special_ports.h \
			  thread_info.h thread_special_ports.h \
			  thread_status.h thread_switch.h time_stamp.h \
			  time_value.h vm_attributes.h vm_inherit.h vm_param.h \
			  vm_prot.h vm_statistics.h \
			  std_types.defs mach_types.defs mach.defs ${MIG_DEFS}
MIG_HDRS		= ${MIG_DEFS:.defs=.h} mach_interface.h
OTHERS			= machine
INCLUDES		= ${DATAFILES} ${OTHERS} ${MIG_HDRS}

ILIST			= ${INCLUDES}
IDIR			= /usr/include/mach/
IMODE			= 644

include ${MAKEFILEPATH}/standard.mk
include ${MAKEFILEPATH}/subdirs.mk
include ${MAKEFILEPATH}/datafiles.mk

machine: ${ALWAYS}
	${RM} ${_RMFLAGS_} machine
	ln -s ${MACHINE} machine

mach_interface.h: mach.defs std_types.defs mach_types.defs
	${MIG} ${_MIGFLAGS_} -user /dev/null -server /dev/null \
	-header mach_interface.h mach.defs

exc.h: exc.defs
	${MIG} ${_MIGFLAGS_} -user /dev/null -server /dev/null exc.defs

mach_host.h: mach_host.defs
	${MIG} ${_MIGFLAGS_} -user /dev/null -server /dev/null mach_host.defs

monitor.h: monitor.defs
	${MIG} ${_MIGFLAGS_} -user /dev/null -server /dev/null monitor.defs
