############################################################################
# $Id: Makefile,v 1.1.1.1 1996/06/30 00:09:15 mtp Exp $
############################################################################
# @Header@
############################################################################
# $Log: Makefile,v $
# Revision 1.1.1.1  1996/06/30 00:09:15  mtp
# Resubmission of PD DCE sources
#
# Revision 1.1.1.1  1995/12/31 05:20:17  mtp
# + Placed under CVS control
#
############################################################################
# 
# (c) Copyright 1994 OPEN SOFTWARE FOUNDATION, INC.
# (c) Copyright 1994 HEWLETT-PACKARD COMPANY
# (c) Copyright 1994 DIGITAL EQUIPMENT CORPORATION
# To anyone who acknowledges that this file is provided "AS IS"
# without any express or implied warranty:
#                 permission to use, copy, modify, and distribute this
# file for any purpose is hereby granted without fee, provided that
# the above copyright notices and this notice appears in all source
# code copies, and that none of the names of Open Software
# Foundation, Inc., Hewlett-Packard Company, or Digital Equipment
# Corporation be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission.  Neither Open Software Foundation, Inc., Hewlett-
# Packard Company, nor Digital Equipment Corporation makes any
# representations about the suitability of this software for any
# purpose.
# 
include ${DCE}/Rules.mk

IDL	      = ../idl/idl_compiler/idl
CP	      = cp -p

IDLFLAGS      += -cepv -client none -server none -I$(INCDIR)
CFLAGS        += -O2
INCDIR	      = ../../inc

DEST	      = .

EXTHDRS	      =

IDLFILES      = codesets.idl \
		conv.idl \
		convc.idl \
		ep.idl \
		iovector.idl \
		lbase.idl \
		mgmt.idl \
		nbase.idl \
		ncastat.idl \
		ndrold.idl \
		rpc.idl \
		rpcbase.idl \
		rpcpvt.idl \
		rpcsts.idl \
		rpctypes.idl \
		twr.idl \
		uuid.idl

HDRS	      = codesets_stub.h \
		idl_es.h \
		idlbase.h \
		idlddefs.h \
		ndrold.h \
		nsattrid.h \
		rpcexc.h \
		stubbase.h \
		$(TARGET)/marshall.h \
		$(TARGET)/ndr_rep.h \
		$(TARGET)/ndrtypes.h

LIBS	      =
OBJS	      =

IDLHDRS	      = codesets.h \
		conv.h \
		convc.h \
		ep.h \
		iovector.h \
		lbase.h \
		mgmt.h \
		nbase.h \
		ncastat.h \
		rpc.h \
		rpcbase.h \
		rpcpvt.h \
		rpcsts.h \
		rpctypes.h \
		twr.h \
		uuid.h

PROGRAM       =
SRCS	      =
SYSHDRS	      =

all:		copy dcerpc.cat

clean:;		@rm -f $(IDLHDRS) core

clobber:;	@rm -f $(IDLHDRS) core tags dcerpc.cat $(INCDIR)/dce/*

$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
		@$(MAKE) -f $(MAKEFILE) ROOT=$(ROOT) DEST=$(DEST) install

#
# dependencies and rules
# Dependency doesn't work. Do clean build.
#
copy: $(IDLHDRS)
	$(CP) $(IDLHDRS) $(INCDIR)/dce

$(INCDIR)/dce/nbase.idl:
	$(CP) $(IDLFILES) $(HDRS) $(INCDIR)/dce

codesets.h: codesets.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) -no_mepv codesets.idl

conv.h: conv.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) -no_mepv conv.idl

convc.h: convc.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) -no_mepv convc.idl

ep.h: ep.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) -no_mepv ep.idl

iovector.h: iovector.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) iovector.idl

lbase.h: lbase.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) lbase.idl

mgmt.h: mgmt.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) -no_mepv mgmt.idl

nbase.h: nbase.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) nbase.idl

ncastat.h: ncastat.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) ncastat.idl

rpc.h: rpc.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) rpc.idl

rpcbase.h: rpcbase.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) rpcbase.idl

rpcpvt.h: rpcpvt.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) rpcpvt.idl

rpcsts.h: rpcsts.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) rpcsts.idl

rpctypes.h: rpctypes.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) rpctypes.idl

twr.h: twr.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) twr.idl

uuid.h: uuid.idl $(INCDIR)/dce/nbase.idl
	$(IDL) $(IDLFLAGS) uuid.idl

# Generate the message catalog
dcerpc.cat: dcerpc.msg
	$(GENCAT) $@ $?

#
# following dependencies are incomplete
#
###
