#
# 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:47:46  mrt
# 	Update for ODE make.
# 	[92/08/20            mrt]
# 
# Revision 2.2  92/01/22  23:12:57  rpd
# 	Created.
# 	[92/01/17            rpd]
# 

DEPENDENCIES 	=
LIBRARIES 	= libnetname.a
EXPLIB_TARGETS	= export_libnetname.a
EXPDIR		= /lib/
IDIR		= /lib/
ILIST		= libnetname.a

# Ar truncates the file  names
LIB_LONG_NAMES	=


# routines from netname.defs

NETNAME_ROUTINES = netname_check_in netname_look_up \
	netname_check_out netname_version

# mig files

NETNAME_USER_SRCS = ${NETNAME_ROUTINES:S/$/.c/g}
NETNAME_SRCS	=  ${NETNAME_USER_SRCS} netname_server.c
MIG_HDRS	= netname.h

OFILES	 = netname_server.o ${NETNAME_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.

${NETNAME_SRCS}  : netname_stamp
netname_stamp: netname.defs
	${MIG} ${_MIGFLAGS_} -i ./ -user '${NETNAME_USER_SRCS}' \
		-server netname_server.c  ${netname.defs:P} && \
	touch netname_stamp
