TOP=../..

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

#------------------------------------------------------
# Compile and Link Options
#------------------------------------------------------

USR_CFLAGS         += -g -Wall
#USR_INCLUDES       += -I$(EPICS_SITE_TOP)/../rtems-4.9.1/src/ssrlApps/drvLan9118


#==================================================
# build a support library

LIBRARY_IOC_RTEMS += mps


#------------------------------------------------------
# DBD and DBDINC
#------------------------------------------------------
# xxxRecord.h will be created from xxxRecord.dbd
#DBDINC += xxxRecord
# install mps.dbd into <top>/dbd
DBD += mps.dbd

mps_DBD += LinkCommunication.dbd
mps_DBD += Error.dbd


#------------------------------------------------------
# Project Source
#------------------------------------------------------

mps_SRCS += LinkCommunication.c
mps_SRCS += Error.c
mps_SRCS += Strings.c


#------------------------------------------------------
# Objects and Libraries
#------------------------------------------------------

mps_LIBS += $(EPICS_BASE_IOC_LIBS)


#------------------------------------------------------
# Include Exports
#------------------------------------------------------

INC += mpsCommon.h
INC += mpsError.h
INC += mpsDiagnostics.h
INC += mpsConstantsAndTypes.h
INC += mpsLinkProtocol.h
INC += mpsLinkProtocolV2.h
INC += mpsLinkCommunication.h
INC += mpsHistoryProtocol.h
INC += mpsAlgorithm.h


#------------------------------------------------------
# EPICS Cleanup
#------------------------------------------------------

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

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

