#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.
# ==============================================================
EPICS_SITE_TOP=/afs/slac/g/lcls/epics
#EPICS_SITE_TOP=/usr/local/lcls/epics

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


# =============================================================
# Define version of MPS database to build against
# =============================================================
#MPS_DATABASE_VERSION=2010-09-28-a
MPS_DATABASE_VERSION=2012-05-05-a
MPS_CONFIG_VERSION=mpsConfiguration
#MPS_CONFIG_VERSION=mpsConfiguration-R1-95

# =============================================================
# Define location MPS Configuration and Database
# =============================================================
#DEV_RELEASE:MPS_CONFIG=/afs/slac/g/lcls/epics/iocTop/users/mboyes/$(MPS_CONFIG_VERSION)

MPS_CONFIG=/afs/slac/g/lcls/epics/iocTop/MachineProtection/$(MPS_CONFIG_VERSION)
#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-8-2-lcls3


# ==================================================================================
#If using macro substitutions, point MSI at the binary:
# ==================================================================================
#EXTENSIONS_MODULE_VERSION=extensions-R3-14-9
EXTENSIONS_MODULE_VERSION=extensions-R3-14-8-2
MSI=$(EPICS_SITE_TOP)/extensions/$(EXTENSIONS_MODULE_VERSION)/bin/$(EPICS_HOST_ARCH)/msi


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

ASYN_MODULE_VERSION=asyn-R4-12-lcls3
EVENT_MODULE_VERSION=event-R3-0-3
GENERALTIME_MODULE_VERSION=generalTime-R2-0-0
IOCADMIN_MODULE_VERSION=iocAdmin-R3-1-1
MISCUTILS_MODULE_VERSION=miscUtils-R2-0-0
SEQ_MODULE_VERSION=seq-R2-0-11-lcls1
SSUBRECORD_MODULE_VERSION=sSubRecord-R2-0-0
ASUBRECORD_MODULE_VERSION=aSubRecord-R3-14-10-lcls3
RTEMSUTILS_MODULE_VERSION=rtemsutils-R1-0-0-lcls3

#MPS_MODULE_VERSION=mps-work
MPS_MODULE_VERSION=mps-R1-0-0

#UDPCOMM_MODULE_VERSION=udpComm-work
UDPCOMM_MODULE_VERSION=udpComm-R0-0-1


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

SNCSEQ=$(EPICS_MODULES)/seq/$(SEQ_MODULE_VERSION)
GENERALTIME=$(EPICS_MODULES)/generalTime/$(GENERALTIME_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)
ASUBRECORD=$(EPICS_MODULES)/aSubRecord/$(ASUBRECORD_MODULE_VERSION)
RTEMSUTILS=$(EPICS_MODULES)/rtemsutils/$(RTEMSUTILS_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)

