TOP=../..

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

USR_CXXFLAGS = -std=c++11 -Wall -Wextra -pedantic -DNDS3_DLL -pthread -DLINUX

USR_INCLUDES += -I$(NDS3)/include

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

ifeq ($(T_A),linuxRT-x86_64)
PROD_IOC = adq-test
endif

# adq-test.dbd will be created and installed
DBD += adq-test.dbd

# adq-test.dbd will be made up from these files:
adq-test_DBD += base.dbd
adq-test_DBD += asyn.dbd
adq-test_DBD += nds3epics.dbd
#adq-test_DBD += nds3-epics.dbd
adq-test_DBD += tspd-adq.dbd

# The tspd-adq shared library is needed at runtime
ifeq ($(T_A),linuxRT-x86_64)
LIB_INSTALLS += $(ADQ)/lib/$(T_A)/libtspd-adq.so
endif

# Add all the support libraries needed by this IOC
LIB_LIBS += adq
adq-test_LIBS += tspd-adq
adq-test_LIBS += nds3epics
#adq-test_LIBS += nds3-epics
adq-test_LIBS += asyn
adq-test_LIBS += nds3


# adq-test_registerRecordDeviceDriver.cpp derives from adq-test.dbd
adq-test_SRCS += adq-test_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
adq-test_SRCS_DEFAULT += adq-testMain.cpp
adq-test_SRCS_vxWorks += -nil-


# Finally link to the EPICS Base libraries
adq-test_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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




