/*
 * Imakefile
 *
 * Author: Jim Zelenka
 */
/*
 * Copyright (c) of Carnegie Mellon University, 1996,1997,1998,1999.
 *
 * Permission to reproduce, use, and prepare derivative works of
 * this software for internal use is granted provided the copyright
 * and "No Warranty" statements are included with all reproductions
 * and derivative works. This software may also be redistributed
 * without charge provided that the copyright and "No Warranty"
 * statements are included in all redistributions.
 *
 * NO WARRANTY. THIS SOFTWARE IS FURNISHED ON AN "AS IS" BASIS.
 * CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER
 * EXPRESSED OR IMPLIED AS TO THE MATTER INCLUDING, BUT NOT LIMITED
 * TO: WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY
 * OF RESULTS OR RESULTS OBTAINED FROM USE OF THIS SOFTWARE. CARNEGIE
 * MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT
 * TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
 */


#if 0 && DOCUMENTATION
To add a new configurable subdirectory to the NASD tree,

   Add $build_foo to ./itomf
   Add BUILD_FOO rules to nasd/Imakefile.  Note that inserting
   constructs like
     #if BUILD_FOO
        directory \
        directory2
     #endif
   to the SUBDIRS clauses will work fine on DUX, but confuse the gcc
   cpp on linux, so follow the pattern of BUILD_CHEOPS

   and finally, don't forget to add your stuff to CONFIG_IMAKE_DEFINES
   in NASD.tmpl so that your defines are propogated through to
   subdirectories

#endif /* 0 */

#if NASD_ITOMF > 0

#define IHaveSubdirs True
#define TopLevel


#if BUILD_AC > 0
#define AC_STUFF ac
#else
#define AC_STUFF
#endif /* BUILD_AC */	

#if BUILD_CHEOPS > 0
#define CHEOPS_STUFF cheops
#else
#define CHEOPS_STUFF
#endif /* BUILD_CHEOPS */


#include "NASD.tmpl"

FS_SUBDIRS = edrfs

SUBDIRS = \
	rpcgen \
	afs \
	config \
	etc \
	include \
	common \
	client \
	${FS_SUBDIRS} \
	CHEOPS_STUFF \
	AC_STUFF \
	tests \
	drive \
	kernel_generate \
	kpdev \
	video \
	utils

sterile:: clean

NASD_MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

#include "NASD.trailer"

#else /* NASD_ITOMF > 0 */


Makefile Makefiles makefile makefiles all depend::
	@echo Initial Makefile should be generated with itomf at the top of the
	@echo NASD tree.
	@exit 1

#endif /* NASD_ITOMF > 0 */
