# 
# Mach Operating System
# Copyright (c) 1990 Carnegie-Mellon University
# Copyright (c) 1989 Carnegie-Mellon University
# Copyright (c) 1988 Carnegie-Mellon University
# Copyright (c) 1987 Carnegie-Mellon University
# All rights reserved.  The CMU software License Agreement specifies
# the terms and conditions for use and redistribution.
#
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.2  90/05/03  15:48:40  dbg
# 	Use switches to MiG to get the file names right.
# 	[90/04/06            dbg]
# 
# Revision 2.1  89/08/03  18:09:24  rwd
# Created.
# 
# Revision 2.3  89/02/25  18:42:47  gm0w
# 	Changes for cleanup.
# 
# Revision 2.2  89/01/12  07:59:23  rpd
# 	Created.
# 	[89/01/12  04:19:33  rpd]
# 
#

MIG=LPATH=$$LPATH:/usr/mach/lib PATH=$$PATH:/usr/mach/bin mig
MIGOPTS = -I..
MIGKERNEL = -DKERNEL

MACH_DEBUG_INTERFACE =  mach_debug.h mach_debug_server.c mach_debug_user.c

all: $(MACH_DEBUG_INTERFACE)

mach_debug.h mach_debug_user.c mach_debug_server.c: mach_debug.defs
	${MIG} ${MIGOPTS} ${MIGKERNEL} \
		-header mach_debug.h \
		-user   mach_debug_user.c \
		-server mach_debug_server.c \
		mach_debug.defs

clean:
	rm -f mach_debug_server.c mach_debug_user.c mach_debug.h

#  Display any newly modified files

NEWSRC=.

NEWSRC:	${NEWSRC}

${NEWSRC}: Makefile *.[csh] gmon.ex symbols.raw
	@echo $?
