# 
# (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.
# 

all: ether_dir mach_prep rpc_dir done

ether_dir:
	(cd ether; $(MAKE) all)

rpc_dir: dce_dir threads_dir
	(cd rpc; $(MAKE) all)

dce_dir:
	(cd dce; $(MAKE) all)

threads_dir:
	(cd threads; $(MAKE) all)

clean:
	for dir in rpc dce threads; do \
	(cd $$dir; $(MAKE) clean); done

clobber:
	for dir in rpc dce threads; do \
	(cd $$dir; $(MAKE) clobber); done

mach_prep:
	mkdir -p /opt/dcelocal/bin
	mkdir -p /opt/dcelocal/lib
	mkdir -p /opt/dcelocal/include/dce
	mkdir -p /opt/dcelocal/NLS/C
	mkdir -p /opt/dcelocal/var/rpc
	./preinstall.sh
	export NLSPATH="$NLSPATH:`pwd`/tempnls/%N"

done:
	@echo "DONE!"
	@echo "cd to test/easy and type 'make' to build the example"
	@echo
