TOP=../..

include $(TOP)/configure/CONFIG

CROSS_COMPILER_TARGET_ARCHS=linux-x86

#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#CROSS_COMPILER_TARGET_ARCHS = linux-x86
#=============================
# Build the IOC support library
#=============================

# Build the IOC application

PROD_IOC = pllAutoAcquire
# pllAutoAcquire.dbd will be created and installed
DBD += pllAutoAcquire.dbd

# pllAutoAcquire.dbd will be made up from these files:
pllAutoAcquire_DBD += base.dbd
pllAutoAcquire_DBD += iocAdmin.dbd

# pllAutoAcquire_registerRecordDeviceDriver.cpp derives from pllAutoAcquire.dbd
pllAutoAcquire_SRCS += pllAutoAcquire_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
pllAutoAcquire_SRCS_DEFAULT += pllAutoAcquireMain.cpp
pllAutoAcquire_SRCS_vxWorks += -nil-

# Add support from base/src/vxWorks if needed
#pllAutoAcquire_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

# Link in the code from the support library
pllAutoAcquire_LIBS += devIocStats

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file

ifneq ($(SNCSEQ),)
    # Build sncExample into pllAutoAcquireSupport
    pllAutoAcquire_SNCFLAGS += +r
    pllAutoAcquire_DBD += sncpllAutoAcquire.dbd sncEnvTest.dbd
    pllAutoAcquire_SRCS += sncpllAutoAcquire.stt sncEnvTest.stt
    pllAutoAcquire_LIBS += seq pv
endif

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

#=============================

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

