#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


# =============================================================
# Define location MPS Configuration and Database
# =============================================================
DEV_RELEASE:MPS_CONFIG=/afs/slac/u/xr/snorum/ioc/mpsConfiguration
PROD_RELEASE:MPS_CONFIG=/usr/local/lcls/epics/iocTop/MachineProtection/mpsConfiguration

MPS_DATABASE=$(MPS_CONFIG)/database

# =============================================================
# Define version of MPS database to build against
# =============================================================
MPS_DATABASE_VERSION=2009-05-19-a


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

#SEQ_MODULE_VERSION=seq-R2-0-0
#GENERALTIME_MODULE_VERSION=generalTime-R1-2-1
#SSUBRECORD_MODULE_VERSION=sSubRecord-R1-0-1
#MISCUTILS_MODULE_VERSION=miscUtils-R1-0-1
#EVENT_MODULE_VERSION=event-R2-7-0
#ASYN_MODULE_VERSION=asyn-R4-9-lcls1
#IOCADMIN_MODULE_VERSION=iocAdmin-R1-0-1

ASYN_MODULE_VERSION=asyn-R4-9-lcls3
EVENT_MODULE_VERSION=event-R3-0-0
GENERALTIME_MODULE_VERSION=generalTime-R2-0-0
IOCADMIN_MODULE_VERSION=iocAdmin-R3-0-0
MISCUTILS_MODULE_VERSION=miscUtils-R2-0-0
SEQ_MODULE_VERSION=seq-R2-0-11-lcls1
SSUBRECORD_MODULE_VERSION=sSubRecord-R2-0-0


# ============================================================
# 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)
#SQLITE3=/afs/slac.stanford.edu/u/xr/snorum/ioc/modules/sqlite3/$(SQLITE3_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)

