#
# CONFIG_EXTENSIONS DO NOT EDIT THIS FILE
#
include $(TOP)/config/RELEASE
-include $(TOP)/config/RELEASE.$(HOST_ARCH)

#
#  EPICS base definitions
#
include $(EPICS_BASE)/config/CONFIG_COMMON
-include $(TOP)/config/CONFIG_COMMON
 
#  EPICS version definitions
#
include $(EPICS_BASE)/config/CONFIG_BASE_VERSION
 
#  Site-specific build options
#
include $(EPICS_BASE)/config/CONFIG_SITE
-include $(TOP)/config/CONFIG_SITE

#  Host architecture specific definitions
#
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.$(HOST_ARCH)
-include $(EPICS_BASE)/config/CONFIG_SITE_HOST_ARCH.$(HOST_ARCH)
-include $(TOP)/config/CONFIG_SITE_HOST_ARCH.$(HOST_ARCH)
-include $(TOP)/config/CONFIG_SITE.$(BUILD_TYPE).$(HOST_ARCH)
 
ifdef T_A

#  Build type specific definitions
#
-include $(EPICS_BASE)/config/CONFIG.$(BUILD_TYPE)
-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE)
-include $(TOP)/config/CONFIG_SITE.$(BUILD_TYPE)

#  Architecture specific definitions
#

ifneq ($(HOST_ARCH),$(T_A))
include $(EPICS_BASE)/config/CONFIG.$(BUILD_TYPE).$(T_A)
-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(T_A)
-include $(TOP)/config/CONFIG_SITE.$(BUILD_TYPE).$(T_A)
endif
#
endif

#  Architecture specific definitions
#
ifndef BUILD_TYPE
BUILD_TYPE=Host
endif
include $(EPICS_BASE)/config/CONFIG.$(BUILD_TYPE).$(HOST_ARCH)
-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(HOST_ARCH)
-include $(TOP)/config/CONFIG_SITE.$(BUILD_TYPE).$(HOST_ARCH)

INSTALL_LOCATION = $(TOP)

#  User specific definitions
#
-include $(HOME)/EPICS_CONFIG
-include $(HOME)/EPICS_CONFIG.$(HOST_ARCH)
 
ifdef INSTALL_LOCATION_EXTENSIONS
INSTALL_LOCATION = $(INSTALL_LOCATION_EXTENSIONS)
endif

# include override definitions
include $(TOP)/config/CONFIG

ifdef EPICS_EXTENSIONS
EPICS_EXTENSIONS_LIB        = $(EPICS_EXTENSIONS)/lib/$(T_A)
EPICS_EXTENSIONS_BIN        = $(EPICS_EXTENSIONS)/bin/$(T_A)
EPICS_EXTENSIONS_INCLUDE    = $(EPICS_EXTENSIONS)/include
EPICS_EXTENSIONS_DOC        = $(EPICS_EXTENSIONS)/doc
EPICS_EXTENSIONS_HTML       = $(EPICS_EXTENSIONS)/html
EPICS_EXTENSIONS_MAN        = $(EPICS_EXTENSIONS)/man
EPICS_EXTENSIONS_TEMPLATES  = $(EPICS_EXTENSIONS)/templates
EPICS_EXTENSIONS_DBD        = $(EPICS_EXTENSIONS)/dbd
EPICS_EXTENSIONS_CONFIG     = $(EPICS_EXTENSIONS)/config

EPICS_INCLUDES += -I$(EPICS_EXTENSIONS_INCLUDE)
#EPICS_LDFLAGS += -L$(EPICS_EXTENSIONS_LIB)


endif

# ========================================================================================
#     tools dependent on SDDS           ---  adt, burt, casr, ca, knobconfig, rampload,
#                                            condition, scopeutil
#     tools dependent on libdev (dalib) ---  adt, burt, casr, condition, dp, knobconfig,
#                                            math, rampload
#     tools dependent on libLca (ca)    ---  adt, math, pvwave, snaps, tcl, wingz, xmca
#     tools dependent on libUnix        ---  adt, ar, dp, km, medm, probe,
#                                            tcl, xmseq, xmca
#     tools dependent on libGraphX (medm) ---  stripTool
#     tools dependent on templates      ---  burt
#     tools dependent on ar (ar/syd)    ---  cau, opi/rti/dm, msi
#     tools dependent on ezca           ---  ca, scopeutil, Ezca, ezcaIDL
#     tools dependent on Ezca           ---  ezcaIDL
#

# mdct is not in DIRS. It uses imake still.
# the order of the following directories is important
#     dependent tools are listed last 
# ========================================================================================

# ========================================================================================
#	Other Extensions Dependencies
#	-----------------------------
#	X11 is needed by the following extensions
#		alh, adt, ar, burt, dp, gdct, km, libUnix, medm, opi, probe,
#		snaps, stripTool, tcl, xmca, xmseq, 
#		motifButton, medm_cebaf, adt, popup, namecapture, SDDS/SDDSaps
#	Motif is needed by the following extensions
#		alh, adt, ar, burt, dp, km, libUnix, medm, probe, snaps,
#		stripTool, xmca, xmseq, motifButton, medm_cebaf, adt, popup,
#		namecapture, SDDS/SDDSaps
#	openwin3 is needed by the following extensions
#		ar/ar
#	Wingz is needed by the following extensions
#		wingz
#	Mathematica is needed by the following extensions
#		math
#	Xrtgraph is needed by the following extensions
#		medm, snaps, medm_cebaf
#	Questwin ObjectViews is needed by the following extensions
#		mdct/gdct
#	Interviews is needed by the following extensions
#		mdct/free_gdct
#	Tk-tcl is needed by the following extensions
#		ar/arrtk, tcl, dct, casr
#	Idl is needed by the following extensions
#		pvwave, tcl/apswish, tcl/interpreters/tcl_it ezcaIDL
#
# ========================================================================================

DIRS =	$(wildcard SDDS adt alh camonitor dalib dct edif ezca ca gvxi idl libUnix \
        motifButton namecapture \
		popup tcl tcl_select templates\
		Ezca SDDSepics adt ar burt casr cau condition dp \
                ezcaIDL km knobconfig math medm msi \
		probe pvwave rampload scopeutil snaps \
		stripTool wingz )

