# 
# Make file for netmsgserver stuff under Mach.
#
# "make interface CPDIR=<where you're at>" to make the User (and Server)
# side of an RPC interface for the env_mgr.  This is called by lib/libmach
# to get the interface into the mach library.
#
#  HISTORY:
#
#    20-Nov-87  Mary Thompson
#	Removed msgn.defs and msgnserver.c
#
#    29-Jul-87  Mary Thompson
#	Renamed the netmsgserver executable to mn_netmsgserver so
#	that we can build and install it as a separate version
#	Removed the building of nmcontrol and nmlog.
#
#    24-Jul-87  Mary Thompson
#	Defined CC=cc as high c compiles a version of netmsgserver
#	that doesn't work
#
#     7-May-87  Richard Draves (rpd) at Carnegie-Mellon University
#	Uses sub-Makefile in camelot/ to make camelot/camelot.o
#	No longer need machine-dependent directories, because camelot.o
#	is built from source on each machine.
#
#    16-Apr-87  Mary Thompson 
#	Fixed camelot.o to come from the subdir camelot_$(MACHINE)
#
#    14-Apr-87  Richard Draves (rpd) at Carnegie-Mellon University
#	Created from socket.Makefile.  Added camelot.o.
#	It should be linked to either camelot.o-vax or camelot.o-ibmrt,
#	as appropriate.  They (and camelot.h) have been copied from the Camelot
#	source tree.
#

DSTDIR=/usr/mach
SRCDIR = $(DSTDIR)/src
INSTALL_DIR=${DSTDIR}/etc
TARGET_DIRS=$(INSTALL_DIR)
LIBS= $(LIBMACH) $(LIBACCENT)
SUBS = camelot

DEFS = netname.defs
COPY_H = netname_defs.h netname.h msgn.h 
CC=cc

INCLUDES=camelot

PRGM=	mn_netmsgserver
SRCS= byteorderops.c broadcast.c msgnprocs.c  msgn_procs.c \
	    mnetmsgserver.c nmcheckups.c \
            nmglobals.c nmmonitor.c nmops.c nmopsutils.c nmqueue.c \
            netname_procs.c mnunixint.c unixoutput.c camelot/camelot.c


include $(SRCDIR)/Make.inc
# it doesn't work with -O on
CFLAGS = -I$(INCLUDES)  -MD

