TOP=../..

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

USR_SYS_LIBS += pcre

#=============================
# Build the IOC application

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

# ads.dbd will be made up from these files:
ads_DBD += base.dbd

# Include dbd files from all support applications:
ads_DBD += iocAdmin.dbd 
ads_DBD += autosaveSupport.dbd
ads_DBD += asyn.dbd
ads_DBD += asynRecord.dbd
ads_DBD += stream.dbd 
ads_DBD += drvAsynIPPort.dbd
ads_DBD += devAds.dbd

# Add all the support libraries needed by this IOC
ads_LIBS += asyn
ads_LIBS += autosave
ads_LIBS += stream
ads_LIBS += devIocStats
ads_LIBS += seq pv

ads_SRCS += timeASub.c
ads_SRCS += sncAds.st

# ads_registerRecordDeviceDriver.cpp derives from ads.dbd
ads_SRCS += ads_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
ads_SRCS_DEFAULT += adsMain.cpp
ads_SRCS_vxWorks += -nil-

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

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

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

