#RELEASE Location of external products
# Run "gnumake clean uninstall install" in the application
# top directory each time this file is changed.
#
# NOTE: The build does not check dependancies on files
# external to this application. Thus you should run
# "gnumake clean uninstall install" in the top directory
# each time EPICS_BASE, SNCSEQ, or any other external
# module defined in the RELEASE file is rebuilt.

TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top

# If you don't want to install into $(TOP) then
# define INSTALL_LOCATION_APP here
#INSTALL_LOCATION_APP=<fullpathname>


# =============================================================
# Define the top of the EPICS tree for your site.
# We will build some tools/scripts that allow us to
# change this easily when relocating software.
# ==============================================================
DEV_RELEASE:EPICS_SITE_TOP=/afs/slac/g/lcls/epics
PROD_RELEASE:EPICS_SITE_TOP=/usr/local/lcls/epics

# =============================================================
# Define location of module tree with respect to 
# EPICS_SITE_TOP
# =============================================================
EPICS_MODULES=$(EPICS_SITE_TOP)/modules/R3-14-12


# =============================================================
# Define version of MPS database to build against
# =============================================================
MPS_DATABASE_VERSION=2012-11-12-a
DEV_RELEASE:MPS_CONFIG_VERSION=mpsConfiguration
PROD_RELEASE:MPS_CONFIG_VERSION=mpsConfiguration-R2-06

# =============================================================
# Define location MPS Configuration and Database
# =============================================================
DEV_RELEASE:MPS_CONFIG=/afs/slac/g/lcls/epics/iocTop/MachineProtection/$(MPS_CONFIG_VERSION)
#DEV_RELEASE:MPS_CONFIG=/afs/slac/g/lcls/epics/iocTop/users/dfairley/$(MPS_CONFIG_VERSION)
PROD_RELEASE:MPS_CONFIG=/usr/local/lcls/epics/iocTop/MachineProtection/$(MPS_CONFIG_VERSION)

MPS_DATABASE=$(MPS_CONFIG)/database


# =============================================================
# Define the version of EPICS BASE that you will use
# =============================================================
BASE_MODULE_VERSION=base-R3-14-12


# =============================================================
# Define the version of modules needed by 
# IOC apps or other Support apps
# =============================================================

ASYN_MODULE_VERSION=asyn-R4-19_1-0
EVENT_MODULE_VERSION=event-R3-2-2-br_generaltime-2-6
IOCADMIN_MODULE_VERSION=iocAdmin-R3-1-9_1-0
MISCUTILS_MODULE_VERSION=miscUtils-R2-2-2
SEQ_MODULE_VERSION=seq-R2-0-11-lcls5
SSUBRECORD_MODULE_VERSION=sSubRecord-R2-2-1
RTEMSUTILS_MODULE_VERSION=rtemsutils-R1-0-0-lcls5
#CAPUTLOG_MODULE_VERSION=caPutLog-R3-3-0
MPS_MODULE_VERSION=mps-R1-0-1-branch-R1-7
UDPCOMM_MODULE_VERSION=udpComm-R2-3-4


# ============================================================
# External Support
# ============================================================

SNCSEQ=$(EPICS_MODULES)/seq/$(SEQ_MODULE_VERSION)
SSUBRECORD=$(EPICS_MODULES)/sSubRecord/$(SSUBRECORD_MODULE_VERSION)
MISCUTILS=$(EPICS_MODULES)/miscUtils/$(MISCUTILS_MODULE_VERSION)
EVENT=$(EPICS_MODULES)/event/$(EVENT_MODULE_VERSION)
ASYN=$(EPICS_MODULES)/asyn/$(ASYN_MODULE_VERSION)
RTEMSUTILS=$(EPICS_MODULES)/rtemsutils/$(RTEMSUTILS_MODULE_VERSION)
#CAPUTLOG=$(EPICS_MODULES)/caPutLog/$(CAPUTLOG_MODULE_VERSION)
MPS=$(EPICS_MODULES)/mps/$(MPS_MODULE_VERSION)
UDPCOMM=$(EPICS_MODULES)/udpComm/$(UDPCOMM_MODULE_VERSION)

IOCADMIN=$(EPICS_MODULES)/iocAdmin/$(IOCADMIN_MODULE_VERSION)

MPSDB=$(MPS_DATABASE)/$(MPS_DATABASE_VERSION)

# =================================================================
# Define EPICS_BASE
# EPICS_BASE usually appears last so other apps can override stuff:
# =================================================================
EPICS_BASE=$(EPICS_SITE_TOP)/base/$(BASE_MODULE_VERSION)

