#
# Mach Operating System
# Copyright (c) 1993,1992 Carnegie Mellon University
# All Rights Reserved.
# 
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
# 
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
# 
# Carnegie Mellon requests users of this software to return to
# 
#  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
# 
# any improvements or extensions that they make and grant Carnegie Mellon
# the rights to redistribute these changes.
#  
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.5  93/04/14  11:48:14  mrt
# 	Updated for ODE make
# 	[92/08/20            mrt]
# 
# Revision 2.2  92/01/22  23:16:54  rpd
# 	Created.
# 	[92/01/17            rpd]
# 

DEPENDENCIES 	=
LIBRARIES 	= libservice.a
EXPLIB_TARGETS	= export_libservice.a
EXPDIR		= /lib/
IDIR		= /lib/
ILIST		= libservice.a

# Ar truncates the file  names
LIB_LONG_NAMES	=

# routines from service.defs

SERVICE_ROUTINES = service_checkin service_waitfor

# mig files

SERVICE_USER_SRCS = ${SERVICE_ROUTINES:S/$/.c/g}
SERVICE_SRCS 	= ${SERVICE_USER_SRCS} service_server.c
MIG_HDRS	= service.h

OFILES	= service_server.o ${SERVICE_ROUTINES:S/$/&.o/g}

.include <${RULES_MK}>

# mig rules to generate intermediate source files in the object directory
# Make all the mig targets depend on a single "timestamp" source. Othewise
# the mig rule gets run once for each target.

${SERVICE_SRCS} : service_stamp
service_stamp:  service.defs
	${MIG} ${_MIGFLAGS_} -i ./ -user '${SERVICE_USER_SRCS}' \
		-server service_server.c  ${service.defs:P} && \
	touch service_stamp
