## Define the appropriate configuration variables.

PACKAGE = /fsys2/u/usystem/software/u++-4.7

## Include the architecture dependent definitions.

.INCLUDE : ${PACKAGE}/CONFIG

## Define the path names of important directories.

SRCDIR = ${PACKAGE}/src/trace

## Define some of the tools.

.INCLUDE : ../MakeTools

## Define the C++ source files.

LIBSRC = ${SRCDIR}/{\
uCollect \
}.cc

LIBSRC-D = ${LIBSRC}
.IF ${MULTI} == TRUE
	LIBSRC-M = ${LIBSRC}
	LIBSRC-M-D = ${LIBSRC}
.END

## Define the header files

HEADERS = uCollect.h uTable.h

## Define which libraries should be built.

LIB = ${LIBDIR}/uTrace.a
LIB-D = ${LIBDIR}/uTrace-d.a
.IF ${MULTI} == TRUE
	LIB-M = ${LIBDIR}/uTrace-m.a
	LIB-M-D = ${LIBDIR}/uTrace-m-d.a
.END

## Define which dependencies should be built.

DEPEND = ${OBJDIR}/depend.mk
DEPEND-D = ${OBJDIR}/depend-d.mk
.IF ${MULTI} == TRUE
	DEPEND-M = ${OBJDIR}/depend-m.mk
	DEPEND-M-D = ${OBJDIR}/depend-m-d.mk
.END

## Define the things that can be defined based upon previous definitions.

.INCLUDE : ../MakeDefinitions

## Define the specific recipes.

all .SEQUENTIAL : ${OBJDIR} ${LIBDIR} ${LIBRARIES};

install .SEQUENTIAL : ${OBJDIR} ${LIBDIR} ${LIBRARIES} ${INSTALLLIBDIR} ${INSTALLLIBDIR}/{${LIBRARIES:f}} ${INSTALLINCDIR} ${INSTALLINCDIR}/{${HEADERS:f}};

depend : ${DEPENDS};

${DEPENDS} : ${OBJDIR}

## Define default dependencies and recipes for object files.

.INCLUDE : ../MakeRecipes

## Include the dependencies for object files and libraries.

.INCLUDE .IGNORE : ${DEPENDS}

## Local Variables: ##
## compile-command: "dmake" ##
## End: ##
