############################################################################
# $Id: Makefile,v 1.1.1.1 1996/06/30 00:09:05 mtp Exp $
############################################################################
# @Header@
############################################################################
# $Log: Makefile,v $
# Revision 1.1.1.1  1996/06/30 00:09:05  mtp
# Resubmission of PD DCE sources
#
# Revision 1.1.1.1  1995/12/31 05:20:13  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_compiler/idl

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

DEST	      = .

EXTHDRS	      = $(INCDIR)/dce/idlbase.h \
		$(INCDIR)/dce/lbase.h \
		$(INCDIR)/dce/nbase.h \
		$(INCDIR)/dce/ndrtypes.h \
		$(INCDIR)/dce/uuid.h

IDLFILES      = uidsts.idl

HDRS	      =

LIBS	      = ../../runtime/libnck.a ../lib/libidl.a ../../runtime/libnck.a

OBJS	      = uuidgen.o

PROGRAM       = uuidgen

SRCS	      = uuidgen.c

SYSHDRS	      =

all:		$(PROGRAM) dceuid.cat

$(PROGRAM):     $(OBJS) $(LIBS)
		@echo "Linking $(PROGRAM) ..."
		@$(LD) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) ${PTHREAD_LIBS}
		@echo "done"

clean:;		@rm -f $(OBJS) uuidgen uidsts.h core

clobber:;	@rm -f $(OBJS) $(PROGRAM) uidsts.h dceuid.cat core tags

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

#
# dependencies and rules
#
uidsts.h: uidsts.idl
	$(IDL) $(IDLFLAGS) uidsts.idl

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

#
# following dependencies are incomplete
#
###
uuidgen.o: uidsts.h \
	../../../inc/dce/uuid.h ../../../inc/dce/idlbase.h \
	../../../inc/dce/ndrtypes.h ../../../inc/dce/nbase.h \
	../../../inc/dce/lbase.h
