TOP=../..

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

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

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

# Aloka_MAR783.dbd will be made up from these files:
Aloka_MAR783_DBD += base.dbd
Aloka_MAR783_DBD += drvAsynIPPort.dbd
#Aloka_MAR783_DBD += drvAsynSerialPort.dbd
#Aloka_MAR783_DBD += drvVxi11.dbd

# Include dbd files from all support applications:
#Aloka_MAR783_DBD += xxx.dbd

# Add all the support libraries needed by this IOC
#Aloka_MAR783_LIBS += xxx

# Aloka_MAR783_registerRecordDeviceDriver.cpp derives from Aloka_MAR783.dbd
Aloka_MAR783_SRCS += Aloka_MAR783_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
Aloka_MAR783_SRCS_DEFAULT += Aloka_MAR783Main.cpp
Aloka_MAR783_SRCS_vxWorks += -nil-

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

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file
ifneq ($(SNCSEQ),)
    # Build sncExample into Aloka_MAR783Support
    sncExample_SNCFLAGS += +r
    Aloka_MAR783_DBD += sncExample.dbd
    Aloka_MAR783Support_SRCS += sncExample.stt
    Aloka_MAR783Support_LIBS += seq pv
    Aloka_MAR783_LIBS += seq pv

    # Build sncProgram as a standalone program
    PROD_HOST += sncProgram
    sncProgram_SNCFLAGS += +m
    sncProgram_SRCS += sncProgram.st
    sncProgram_LIBS += seq pv
    sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
endif

# NOTE: To build programs, ASYN & STREAM must be defined
# in the <top>/configure/RELEASE file
ifneq ($(ASYN),)
    Aloka_MAR783_DBD += asyn.dbd
#    Aloka_MAR783_DBD += drvAsynIPPort.dbd		# IP Port Driver
#    Aloka_MAR783_DBD += drvAsynSerialPort.dbd	# Serial Port Driver
    Aloka_MAR783_LIBS += asyn

    ifneq ($(STREAM),)
        Aloka_MAR783_DBD += stream.dbd
        Aloka_MAR783_LIBS += stream
    endif
endif

# NOTE: To build programs, NETDEV must be defined
# in the <top>/configure/RELEASE file
ifneq ($(NETDEV),)
    Aloka_MAR783_DBD += netDev.dbd
    Aloka_MAR783_LIBS += netDev
endif

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

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

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

