#==============================================================
#
#  Abs:  Makefile to build EPICS Magnet Application
#
#  Name: Makefile
#
#  Facility:  SLAC/LCLS
#
#  Auth: 09-Apr-2007, Bill Ross           (WCROSS)
#  Rev:  dd-mmm-yyyy, Reviewer's Name     (USERNAME)
#--------------------------------------------------------------
#  Mod:
#       dd-mmm-yyyy, First Lastname       (USERNAME):
#          comment
#
#==============================================================
#
TOP=../
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#========================================
# build an object
PROD_RTEMS = bpmd

DBD += bpmd.dbd
bpmd_DBD += base.dbd

# for gdb/ddd debugger:
USR_CFLAGS_DEFAULT += -DHOST_TEST -g
USR_CFLAGS_RTEMS   += -g -O4
TARGET_CFLAGS      += $(CFLAGS_$(OS_CLASS)) $(CFLAGS_$(T_A))

# add locally compiled object code
bpmd_SRCS          += bpmd_registerRecordDeviceDriver.cpp
bpmd_SRCS_DEFAULT  += bpmdMain.cpp
bpmd_SRCS_vxWorks  += -nil-
bpmd_SRCS_RTEMS    += -nil-
bpmd_SRCS          += bpmd.c
bpmd_SRCS          += bpmd2.c

# The following adds support from base/src/vxWorks
bpmd_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

bpmd_LIBS += $(EPICS_BASE_IOC_LIBS)

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

