TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#===================================
# EXTERNAL NON EPICS PACKAGES:
#===================================
USR_INCLUDES += -I$(PCRE_INCLUDE)
pcre_DIR = $(PCRE_LIB)
USR_LIBS_Linux += pcre

#=============================
# Build the IOC application
# ================================================
# This will attempt to build an IOC application 
# for every target including the host computer.
# ================================================
PROD_IOC = solenoid
# solenoid.dbd will be created and installed
DBD += solenoid.dbd
PROTO += Animatics.proto

# solenoid.dbd will be made up from these files:
solenoid_DBD += base.dbd
solenoid_DBD += iocAdmin.dbd
solenoid_DBD += asSupport.dbd
solenoid_DBD += caPutLog.dbd
solenoid_DBD += asyn.dbd
solenoid_DBD += drvAsynIPPort.dbd
solenoid_DBD += drvAsynSerialPort.dbd
solenoid_DBD += stream.dbd
solenoid_DBD += devSmartMotorAsynSupport.dbd
solenoid_DBD += motorSupport.dbd

# Add PV Access and QSrv
solenoid_DBD += PVAServerRegister.dbd
solenoid_DBD += qsrv.dbd

# Add all the support libraries needed by this IOC
solenoid_LIBS += devIocStats
solenoid_LIBS += autosave
solenoid_LIBS += caPutLog
solenoid_LIBS += stream
solenoid_LIBS += SmartMotorAsyn
solenoid_LIBS += motor
solenoid_LIBS += qsrv
solenoid_LIBS += asyn
solenoid_LIBS += seqCar seq pv

# solenoid_registerRecordDeviceDriver.cpp derives from solenoid.dbd
solenoid_SRCS += solenoid_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
solenoid_SRCS_DEFAULT += solenoidMain.cpp
solenoid_SRCS_vxWorks += -nil-

# Finally link to the EPICS Base libraries
USR_LIBS += $(EPICS_BASE_IOC_LIBS)
USR_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)

# =======================================
include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

