# 
# 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.3  89/01/12  07:39:04  rpd
# 	Added rules for mach_debug_ca.defs.
# 	[89/01/12  04:27:46  rpd]
# 
# 09-May-87  Mike Accetta (mja) at Carnegie-Mellon University
#	Created (for archiving).
#	[ V5.1(XF11) ]
#
######################################################################
#

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

MACH_DEBUG_CA_INTERFACE =  mach_debug_ca.h mach_debug_ca_server.c mach_debug_ca_user.c

all: $(MACH_DEBUG_CA_INTERFACE)

mach_debug_ca_server.c:	mach_debug_caServer.c
	rm -f mach_debug_ca_server.c
	ln mach_debug_caServer.c mach_debug_ca_server.c

mach_debug_ca_user.c:	mach_debug_caUser.c
	rm -f mach_debug_ca_user.c
	ln mach_debug_caUser.c mach_debug_ca_user.c

mach_debug_ca.h mach_debug_caUser.c mach_debug_caServer.c: mach_debug_ca.defs
	${MIG} ${MIGOPTS} ${MIGKERNEL} mach_debug_ca.defs

clean:
	rm -f mach_debug_ca_server.c mach_debug_ca_user.c mach_debug_ca.h \
	      mach_debug_caServer.c mach_debug_caUser.c

#  Display any newly modified files

NEWSRC=.

NEWSRC:	${NEWSRC}

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