/* $Id: Imakefile,v 5.3 2001/05/27 12:44:26 bertg Exp $ */

TOP=../..

#include "Local.config"

/*
 * Assemble defines and includes.
 *
 * The DEFS_OTHER variable can be specified on the make command line like:
 *
 *    make DEFS_OTHER=-DENABLE_SOME_HACK
 *
 * or in the Local.config file.
 *
 */
DEFINES = -DLOCALGURU=\"$(LOCALGURU)\" -DLIBDIR=\"$(INSTLIBDIR)/\" \
       $(DEFS_OTHER)
INCLUDES = -I../../lib/


/*
 * Do substitutions where necessary
 */
MsubTarget(version.h,version.h.msub)
MsubDepend
includes:: version.h
depend:: includes

# keep this variable consistent with its counterpart in ../Makefile.std
SRCS = checknames.c config.c error.c \
	list.c math.c net.c \
	portability.c randommt.c \
	shipshape.c socklib.c \
	strcasecmp.c strdup.c strlcpy.c \
	xpmemory.c

# keep this variable consistent with its counterpart in ../Makefile.std
OBJS = checknames.o config.o error.o \
	list.o math.o net.o \
	portability.o randommt.o \
	shipshape.o socklib.o \
	strcasecmp.o strdup.o strlcpy.o \
	xpmemory.o

NormalLibraryTarget(xpcommon,$(OBJS))

DependTarget()


/*
 * Note that we provide our own *Subdirs calls, so there's no need
 * to define IHaveSubdirs.
 */
#define PassCDebugFlags	'CDEBUGFLAGS=$(CDEBUGFLAGS)'

          SUBDIRS = NT 			/* make all */
  MAKEFILESUBDIRS = NT 			/* make Makefiles */
     CLEANSUBDIRS = NT		 	/* make clean */
       DEPSUBDIRS = NT 			/* make depend */
   INSTALLSUBDIRS =        		/* make install */
  INCLUDESSUBDIRS = 			/* make includes */
INSTALLMANSUBDIRS = 			/* make install.man */
       TAGSUBDIRS = 			/* make tag */

MakeSubdirs($(SUBDIRS))
DependSubdirs($(DEPSUBDIRS))
CleanSubdirs($(CLEANSUBDIRS))
MakefileSubdirs($(MAKEFILESUBDIRS))
/* InstallSubdirs($(INSTALLSUBDIRS)) */
/* IncludesSubdirs($(INCLUDESSUBDIRS))	*/
/* InstallManSubdirs($(INSTALLMANSUBDIRS)) */
/* CtagSubdirs($(TAGSUBDIRS)) */
CtagFiles(*.[ch])
