#
# 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.3  93/04/14  11:47:10  mrt
# 	Updated for ODE make
# 	[92/08/18            mrt]
# 
# Revision 2.2  92/04/08  23:27:48  rpd
# 	Created.
# 	[92/02/21            jtp]
# 


DEPENDENCIES 	=
LIBRARIES 	= libenv.a
EXPLIB_TARGETS	= export_libenv.a
EXPDIR		= /lib/
IDIR		= /lib/
ILIST		= libenv.a

# Ar truncates the file  names
LIB_LONG_NAMES	=

# routines from env_mgr.defs

ENVMGR_ROUTINES = env_set_string env_get_string env_del_string env_set_port \
	env_get_port env_del_port env_list_strings env_list_ports \
	env_set_stlist env_set_ptlist env_copy_conn env_new_conn \
	env_restrict_conn env_disconnect

# mig rules

ENVMGR_USER_SRCS = ${ENVMGR_ROUTINES:S/$/.c/g}
ENVMGR_SRCS	= ${ENVMGR_USER_SRCS} envmgr_server.c
MIG_HDRS 	= env_mgr.h

OFILES 		= envmgr_server.o ${ENVMGR_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.

${ENVMGR_SRCS} : env_mgr_stamp
env_mgr_stamp: env_mgr.defs
	${MIG} ${_MIGFLAGS_} -i ./ -user '${ENVMGR_USER_SRCS}' \
		-server envmgr_server.c  ${env_mgr.defs:P} && \
	touch env_mgr_stamp
