## 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/usertrace

## Define some of the tools.

.INCLUDE : ../MakeTools

## Define the C++ source files.

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

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

## Define which libraries should be built.

LIB = ${LIBDIR}/uUserTrace.a
LIB-D = ${LIBDIR}/uUserTrace-d.a
.IF ${TRACE} == TRUE
	LIB-D-T = ${LIBDIR}/uUserTrace-d-t.a
.END
.IF ${MULTI} == TRUE
	LIB-M = ${LIBDIR}/uUserTrace-m.a
	LIB-M-D = ${LIBDIR}/uUserTrace-m-d.a
	.IF ${TRACE} == TRUE
		LIB-M-D-T = ${LIBDIR}/uUserTrace-m-d-t.a
	.END
.END

## Define which dependencies should be built.

DEPEND = ${OBJDIR}/depend.mk
DEPEND-D = ${OBJDIR}/depend-d.mk
.IF ${TRACE} == TRUE
	DEPEND-D-T = ${OBJDIR}/depend-d-t.mk
.END
.IF ${MULTI} == TRUE
	DEPEND-M = ${OBJDIR}/depend-m.mk
	DEPEND-M-D = ${OBJDIR}/depend-m-d.mk
	.IF ${TRACE} == TRUE
		DEPEND-M-D-T = ${OBJDIR}/depend-m-d-t.mk
	.END
.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};

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: ##
