TOP=../..

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


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

PROD_IOC = USB-SP4T
# USB-SP4T.dbd will be created and installed
DBD += USB-SP4T.dbd

# USB-SP4T.dbd will be made up from these files:
USB-SP4T_DBD += base.dbd

# Include dbd files from all support applications:
USB-SP4T_DBD += asyn.dbd
USB-SP4T_DBD += stream.dbd
USB-SP4T_DBD += drvAsynUSBHID.dbd

# Add all the support libraries needed by this IOC
#USB-SP4T_LIBS += xxx
USB-SP4T_LIBS += asyn
USB-SP4T_LIBS += stream
USB-SP4T_LIBS += drvAsynUSBHID

# USB-SP4T_registerRecordDeviceDriver.cpp derives from USB-SP4T.dbd
USB-SP4T_SRCS += USB-SP4T_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
USB-SP4T_SRCS_DEFAULT += USB-SP4TMain.cpp
USB-SP4T_SRCS_vxWorks += -nil-

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

# Finally link to the EPICS Base libraries
USB-SP4T_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

