## Define the appropriate configuration variables.

PACKAGE = /fsys2/u2/usystem/software/u++-5.3.0

## Include the architecture dependent definitions.

include $(PACKAGE)/CONFIG

## Define the path names of important directories.

SRCDIR = $(PACKAGE)/src/profiler

## Define some of the tools.

include ../MakeTools

## Define the special object files.

MODSRC = $(addprefix $(SRCDIR)/, $(addsuffix .cc, \
uProfilerFunctionPointers \
) )

## Define the header files

HEADERS = $(shell ls *.h)

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

include ../MakeDefinitions

## Define the specific recipes.

all : $(MODULES)

install : all $(addprefix $(INSTALLLIBDIR)/, $(notdir $(MODULES))) $(addprefix $(INSTALLINCDIR)/, $(HEADERS))

## Define default dependencies and recipes for object files.

include ../MakeRecipes

## Include the dependencies for object files and libraries.

-include $(DEPENDS)

## Create directories (TEMPORARY: fixed in gmake 3.80)

_xxx1 := $(shell mkdir -p $(LIBDIR) $(OBJDIR))

ifeq ($(MAKECMDGOALS),install)
_xxx2 := $(shell mkdir -p $(INSTALLLIBDIR) $(INSTALLINCDIR))
endif

## Local Variables: ##
## compile-command: "gmake install" ##
## End: ##
