TOP=../..

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

USR_CFLAGS += -I$(STRUCK_KERNEL_MODULE)

#======================================================
# Build AFE support library

LIBRARY_IOC += afeSupportLib
INC         += afeDevSup.h

afeSupportLib_SRCS += afeDevSup.c subAtt.c
afeSupportLib_SRCS += drvGenAfe.c

DBD += afeSupportLib.dbd

afeSupportLib_DBD  += afeSupport.dbd
afeSupportLib_DBD  += afeAttSupport.dbd

#======================================================
# Build AFE attenuator support library

LIBRARY_IOC += afeAttSupportLib

afeAttSupportLib_SRCS += subAtt.c

DBD += afeAttSupport.dbd

#======================================================
# Build IOC application for testing

# This will attempt to build an IOC application 
# for every target including the host computer.
PROD_IOC_Linux = afeSupportIoc

# afeSupportIoc.dbd will be created and installed
DBD += afeSupportIoc.dbd

# afeSupportIoc.dbd will be made up from these files:
afeSupportIoc_DBD += base.dbd
ifndef TEST_ONLY
  afeSupportIoc_DBD += iocAdmin.dbd
endif
afeSupportIoc_DBD += dbRestore.dbd

# Add support talking to PCI devices from devBusMapped via devlib2
afeSupportIoc_DBD += devBusMapped.dbd

ifndef TEST_ONLY
  afeSupportIoc_DBD += evrSupport.dbd
  afeSupportIoc_DBD += devMrfEr.dbd
endif

afeSupportIoc_DBD += $(afeSupportLib_DBD)

afeSupportIoc_SRCS += afeSupportIoc_registerRecordDeviceDriver.cpp

afeSupportIoc_SRCS_vxWorks += -nil-
afeSupportIoc_SRCS_RTEMS   += -nil-

afeSupportIoc_SRCS_DEFAULT += afeSupportIocMain.cpp
afeSupportIoc_SRCS += systemCommand.c

  # Link in the code from other libraries
ifndef TEST_ONLY
  afeSupportIoc_LIBS += devIocStats
endif
afeSupportIoc_LIBS += devBusMapped
afeSupportIoc_LIBS += restore 
ifndef TEST_ONLY
  afeSupportIoc_LIBS += evrSupport
  afeSupportIoc_LIBS += devMrfEr
  afeSupportIoc_LIBS += drvMrf
endif
afeSupportIoc_LIBS += afeSupportLib

afeSupportIoc_LIBS += $(CEXP_LIBS)
afeSupportIoc_LIBS += $(EPICS_BASE_IOC_LIBS)

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