#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/R3-14-12


# =============================================================
# Define version of MPS database to build against
# =============================================================
#MPS_DATABASE_VERSION=2014-06-06-a
MPS_DATABASE_VERSION=2025-02-04-b
MPS_CONFIG_VERSION=MpsConfiguration-R2-225

# =============================================================
# Define location MPS Configuration and Database
# =============================================================
MPS_CONFIG_SRC=../../MpsConfiguration/$(MPS_CONFIG_VERSION)/
MPS_CONFIG=$(TOP)/mpsConfiguration

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

AUTOSAVE_MODULE_VERSION       = autosave-R4-8-lcls3
ASYN_MODULE_VERSION           = asyn-R4-19_1-0
EVENT_MODULE_VERSION          = event-R4-2-5-CLTS-R4
IOCADMIN_MODULE_VERSION       = iocAdmin-R3-1-9_1-0
MISCUTILS_MODULE_VERSION      = miscUtils-R2-2-3
SEQ_MODULE_VERSION            = seq-R2-1-6_1-3
SSUBRECORD_MODULE_VERSION     = sSubRecord-R2-2-1
RTEMSUTILS_MODULE_VERSION     = rtemsutils-R1-0-0-lcls5
MPS_MODULE_VERSION            = mps-R1-1-1-branch-clts-R0-4
UDPCOMM_MODULE_VERSION        = udpComm-R2-5-9-BR-7


# ============================================================
# 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)
AUTOSAVE        = $(EPICS_MODULES)/autosave/$(AUTOSAVE_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)

