# 
# Mach Operating System
# 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  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_server.c:	mach_debugServer.c
	rm -f mach_debug_server.c
	ln mach_debugServer.c mach_debug_server.c

mach_debug_user.c:	mach_debugUser.c
	rm -f mach_debug_user.c
	ln mach_debugUser.c mach_debug_user.c

mach_debug.h mach_debugUser.c mach_debugServer.c: mach_debug.defs
	${MIG} ${MIGOPTS} ${MIGKERNEL} mach_debug.defs

clean:
	rm -f mach_debug_server.c mach_debug_user.c mach_debug.h \
	      mach_debugServer.c mach_debugUser.c

#  Display any newly modified files

NEWSRC=.

NEWSRC:	${NEWSRC}

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