include /ioc/tools/driver.makefile
MODULE = motorBase

# Do not build for EPICS < 7.0.7 because of compatibility breaking changes
EXCLUDE_VERSIONS=3.13 3.14 7.0.6

# Do not checkout any submodule
IGNORE_SUBMODULES = %

BUILDCLASSES += vxWorks Linux WIN32 

SOURCES += motorApp/MotorSrc/motorRecord.cc
DBDS    += motorApp/MotorSrc/motorRecord.dbd

HEADERS += motorApp/MotorSrc/motor.h
HEADERS += motorApp/MotorSrc/motor_interface.h

HEADERS += motorApp/MotorSrc/motordrvComCode.h
HEADERS += motorApp/MotorSrc/motordrvCom.h
SOURCES += motorApp/MotorSrc/motordrvCom.cc

HEADERS += motorApp/MotorSrc/motordevCom.h
SOURCES += motorApp/MotorSrc/motordevCom.cc

SOURCES += motorApp/MotorSrc/motorUtil.cc
SOURCES += motorApp/MotorSrc/motorUtilAux.cc
DBDS    += motorBaseSupport.dbd

SOURCES += motorApp/MotorSrc/paramLib.c
HEADERS += motorApp/MotorSrc/paramLib.h

# Soft
SOURCES += motorApp/SoftMotorSrc/devSoft.cc
SOURCES += motorApp/SoftMotorSrc/devSoftAux.cc
DBDS    += softMotorSupport.dbd

# asynMotor
SOURCES += motorApp/MotorSrc/drvMotorAsyn.c
SOURCES += motorApp/MotorSrc/devMotorAsyn.c
HEADERS += motorApp/MotorSrc/asynMotorAxis.h
SOURCES += motorApp/MotorSrc/asynMotorAxis.cpp
HEADERS += motorApp/MotorSrc/asynMotorController.h
SOURCES += motorApp/MotorSrc/asynMotorController.cpp
DBDS    += asynMotorSupport.dbd

# Initialization
SOURCES += motorInit.c

USR_CPPFLAGS += -DDEBUG
TEMPLATES += $(wildcard motorApp/Db/*.db motorApp/Db/*.template motorApp/Db/*.req)
