Skip to content
Snippets Groups Projects
Makefile 5.15 KiB
Newer Older
Ron Sluiter's avatar
Ron Sluiter committed
TOP=../..
Ron Sluiter's avatar
Ron Sluiter committed
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

# For Kate Feng's implementation of devScaler.c, which uses Till
# Straumann's basicIoOps.h to bridge any mismatch between endianness
# of Joerger scaler hardware and endianness of processor.
#USR_CFLAGS += -DHAS_IOOPS_H
Ron Sluiter's avatar
Ron Sluiter committed

#==================================================
# build a support library that some other application can use
Ron Sluiter's avatar
Ron Sluiter committed

Ron Sluiter's avatar
Ron Sluiter committed

# xxxRecord.h will be created from xxxRecord.dbd
#DBDINC += xxxRecord
# install support-library .dbd into <top>/dbd
#DBD += xxxSupport.dbd
Ron Sluiter's avatar
Ron Sluiter committed

# The following are compiled and added to the Support library
#xxxSupport_SRCS += xxxRecord.c
Ron Sluiter's avatar
Ron Sluiter committed

#xxxSupport_LIBS += $(EPICS_BASE_IOC_LIBS)
Ron Sluiter's avatar
Ron Sluiter committed

#=============================
# build an ioc application
Ron Sluiter's avatar
Ron Sluiter committed

Ron Sluiter's avatar
Ron Sluiter committed

# <name>.dbd will be created from <name>Include.dbd
rivers's avatar
rivers committed
ifeq ($(OS_CLASS), WIN32)
DBD  += iocxxxWin32.dbd
else
ifeq ($(EPICS_HOST_ARCH), cygwin-x86)
DBD  += iocxxxCygwin.dbd
else
mooney's avatar
mooney committed
ifeq ($(OS_CLASS), vxWorks)
rivers's avatar
rivers committed
DBD  += iocxxxVX.dbd
mooney's avatar
mooney committed
else
ifeq ($(OS_CLASS), Linux)
rivers's avatar
rivers committed
DBD  += iocxxxLinux.dbd
mooney's avatar
mooney committed
else
ifeq ($(OS_CLASS), solaris)
rivers's avatar
rivers committed
DBD  += iocxxx_solaris.dbd
mooney's avatar
mooney committed
else
DBD  += iocxxx.dbd
endif
endif
endif
endif
endif

# If your host supports libpcap and libnet and you want to build Canberra network
# support, set LINUX_NET_INSTALLED to YES in <synApps>/configure/CONFIG_SITE.
iocxxxLinux_DBD += xxxCommonInclude.dbd
ifneq ($(OS_CLASS), Linux)
iocxxxLinux_DBD += mcaCanberraSupport.dbd
else
ifeq ($(LINUX_NET_INSTALLED), YES)
iocxxxLinux_DBD += mcaCanberraSupport.dbd
endif
endif
# If your host supports parallel port or USB interfaces to Saturn DXP, set
# LINUX_USB_INSTALLED to YES in <synApps>/configure/CONFIG_SITE.
ifneq ($(OS_CLASS), Linux)
iocxxxLinux_DBD += dxpSupport.dbd
else
ifeq ($(OS_CLASS), Linux)
ifeq ($(LINUX_USB_INSTALLED), YES)
iocxxxLinux_DBD += dxpSupport.dbd
endif
rivers's avatar
rivers committed
endif
endif
Ron Sluiter's avatar
Ron Sluiter committed

mooney's avatar
mooney committed

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
xxx_SRCS_DEFAULT  += iocxxx_registerRecordDeviceDriver.cpp          xxxMain.cpp
xxx_SRCS_vxWorks  += iocxxxVX_registerRecordDeviceDriver.cpp
xxx_SRCS_Linux    += iocxxxLinux_registerRecordDeviceDriver.cpp     xxxMain.cpp
rivers's avatar
rivers committed
xxx_SRCS_WIN32    += iocxxxWin32_registerRecordDeviceDriver.cpp     xxxMain.cpp
xxx_SRCS_cygwin32 += iocxxxCygwin_registerRecordDeviceDriver.cpp    xxxMain.cpp
xxx_SRCS_solaris  += iocxxx_solaris_registerRecordDeviceDriver.cppa xxxMain.cpp
xxx_SRCS_vxWorks  += -nil-
rivers's avatar
rivers committed
#xxx_Common_LIBS += xxxSupport
xxx_Common_LIBS += mca
xxx_Common_LIBS += calc
rivers's avatar
rivers committed
xxx_Common_LIBS += sscan
xxx_Common_LIBS += autosave
xxx_Common_LIBS += optics
xxx_Common_LIBS += vme
xxx_Common_LIBS += std
xxx_Common_LIBS += ip
mooney's avatar
mooney committed

xxx_Common_LIBS += Acs Faulhaber Ims Mclennan Micos MicroMo NewFocus
xxx_Common_LIBS += Newport PI Parker
xxx_Common_LIBS += softMotor motorSimSupport motor
#xxx_Common_LIBS += stream streamSynApps
xxx_Common_LIBS += seqDev seq pv
rivers's avatar
rivers committed
xxx_Common_LIBS += $(EPICS_BASE_IOC_LIBS)

xxx_vxWorks_LIBS += allenBradley
xxx_vxWorks_LIBS += mcaSIS
xxx_vxWorks_LIBS += mcaCanberra
rivers's avatar
rivers committed
xxx_vxWorks_LIBS += ip330
rivers's avatar
rivers committed
xxx_vxWorks_LIBS += ipUnidig
xxx_vxWorks_LIBS += dac128V
xxx_vxWorks_LIBS += quadEM
xxx_vxWorks_LIBS += camac devCamac
xxx_vxWorks_LIBS += dxp handel
#xxx_vxWorks_LIBS += love
rivers's avatar
rivers committed
xxx_vxWorks_LIBS += vxStats
rivers's avatar
rivers committed
xxx_vxWorks_LIBS += TyGSOctal Ipac
xxx_vxWorks_LIBS += oms DeltaTau

rivers's avatar
rivers committed
#The following adds support from base/src/vxWorks
xxx_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
mooney's avatar
mooney committed
ifeq ($(LINUX_USB_INSTALLED), YES)
xxx_Linux_LIBS  += dxp handel
endif
ifeq ($(LINUX_NET_INSTALLED), YES)
xxxLinux_LIBS += mcaCanberra
endif
mooney's avatar
mooney committed

xxx_cygwin_LIBS += dxp handel
rivers's avatar
rivers committed

xxx_WIN32_LIBS += dxp handel
rivers's avatar
rivers committed

#xxx_solaris_LIBS += mca
xxx_solaris_LIBS += calc
xxx_solaris_LIBS += sscan
xxx_solaris_LIBS += autosave
xxx_solaris_LIBS += optics
#xxx_solaris_LIBS += vme
xxx_solaris_LIBS += std
#xxx_solaris_LIBS += ip
xxx_solaris_LIBS += motor softMotor motorSimSupport
xxx_solaris_LIBS += seqDev seq pv
xxx_solaris_LIBS += $(EPICS_BASE_IOC_LIBS)


rivers's avatar
rivers committed
xxx_LIBS_DEFAULT = $(xxx_Common_LIBS)
xxx_LIBS_vxWorks = $(xxx_vxWorks_LIBS) $(xxx_Common_LIBS)
xxx_LIBS_Linux   = $(xxx_Linux_LIBS)   $(xxx_Common_LIBS)
xxx_LIBS_solaris = $(xxx_solaris_LIBS)
rivers's avatar
rivers committed
xxx_LIBS_cygwin32 = $(xxx_cygwin_LIBS) $(xxx_Common_LIBS)
rivers's avatar
rivers committed
xxx_LIBS_WIN32    = $(xxx_WIN32_LIBS)  $(xxx_Common_LIBS)
mooney's avatar
mooney committed

rivers's avatar
rivers committed
# If the host has libnet and libpcap for mca/Canberra support
# uncomment the following line.
#xxx_SYS_LIBS_Linux += net pcap
# For USB support on Saturn
rivers's avatar
rivers committed
xxx_SYS_LIBS_vxWorks += -nil-
rivers's avatar
rivers committed
# This is needed by areaDetector on Linux and WIN32
xxx_LIBS_WIN32        += PvAPI
mooney's avatar
mooney committed
ifeq ($(LINUX_TIFF_INSTALLED), YES)
xxx_LIBS_Linux        += PvAPI
endif
rivers's avatar
rivers committed

rivers's avatar
rivers committed
# This is needed by dxp on cygwin and WIN32
xxx_SYS_LIBS_cygwin32 += DLPORTIO PlxApi setupapi
xxx_LIBS_WIN32        += DLPORTIO PlxApi
xxx_SYS_LIBS_WIN32    += setupapi
rivers's avatar
rivers committed
# This is needed by saveData and asyn VXI-11 on cygwin
rivers's avatar
rivers committed
xxx_SYS_LIBS_cygwin32 += rpc


#===========================
Ron Sluiter's avatar
Ron Sluiter committed

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