TOP=../.. include $(TOP)/configure/CONFIG #---------------------------------------- # ADD MACRO DEFINITIONS AFTER THIS LINE #============================= # Build 64-bit application EPICS_HOST_ARCH = linux-x86_64 # Accelerator divisions notation for 64-bit ACCEL_ARCH = rhel-7-x86_64 # Setup ROOT ROOT = /gapps/root/${EPICS_OSNAME}/${EPICS_ROOT_VERSION} USR_INCLUDES += -I$(shell $(ROOT)/bin/root-config --incdir) # ELOG stuff ELOG = /cs/certified/apps/eloglib/2.4.1 CPPLIB = /cs/certified/apps/cpplib/3.19.1 CURLPP = /usr/csite/pubtools/curlpp LIBXMLPP = /usr/csite/pubtools/libxml++ USR_INCLUDES += -I$(ELOG)/inc -I$(CPPLIB)/inc USR_CXXFLAGS += -D$(subst -,_,$(ACCEL_ARCH) ) -D_REENTRANT -Wall UST_LDDFLAGS += -Bstatic #============================= # Build the IOC application PROD_IOC = radiatorMotion # radiatorMotion.dbd will be created and installed DBD += radiatorMotion.dbd ## Add all the support libraries needed by this IOC radiatorMotion_LIBS += motorNewportSupport radiatorMotion_LIBS += std radiatorMotion_LIBS += busy radiatorMotion_LIBS += calc autosave radiatorMotion_LIBS += sscan radiatorMotion_LIBS += scanProgress radiatorMotion_LIBS += asyn radiatorMotion_LIBS += devIocStats radiatorMotion_LIBS += motor radiatorMotion_LIBS += Newport # radiatorMotion_registerRecordDeviceDriver.cpp derives from radiatorMotion.dbd radiatorMotion_SRCS += radiatorMotion_registerRecordDeviceDriver.cpp # Build the main IOC entry point on workstation OSs. radiatorMotion_SRCS_DEFAULT += radiatorMotionMain.cpp radiatorMotion_SRCS_vxWorks += -nil- # NOTE: To build SNL programs, SNCSEQ must be defined # in the /configure/RELEASE file ifneq ($(SNCSEQ),) # Build sncExample into motorNewportSupport radiatorMotion_SNCFLAGS += +r radiatorMotion_LIBS += seq pv endif # Finally link to the EPICS Base libraries radiatorMotion_LIBS += $(EPICS_BASE_IOC_LIBS) #=========================== # #============================= # Build the analysis application #=========================== # PROD_IOC_Linux = analyzeRadiatorScan analyzeRadiatorScan_SRCS_DEFAULT += analyzeRadiatorScan.cpp analyzeRadiatorScan_SRCS += FileNameFinder.cpp analyzeRadiatorScan_SRCS += LogableMainFrame.cpp analyzeRadiatorScan_SRCS += LogEntryFrame.cpp analyzeRadiatorScan_SRCS += ScanMainFrame.cpp analyzeRadiatorScan_SRCS += ScanStream.cpp analyzeRadiatorScan_SRCS += Scan.cpp analyzeRadiatorScan_SRCS += ScanCombo.cpp analyzeRadiatorScan_SRCS += OverviewMainFrame.cpp analyzeRadiatorScan_SRCS += OverviewFrame.cpp analyzeRadiatorScan_SRCS += AnalysisMainFrame.cpp analyzeRadiatorScan_SRCS += AnalysisFrame.cpp analyzeRadiatorScan_SRCS += GraphAnalyzer.cpp analyzeRadiatorScan_SRCS += ScanDetector.cpp analyzeRadiatorScan_SRCS += ScanFile.cpp analyzeRadiatorScan_SRCS += ScanPlot.cpp analyzeRadiatorScan_SRCS += ScanCorrection.cpp analyzeRadiatorScan_SRCS += ScanPositioner.cpp analyzeRadiatorScan_SRCS += TwoWireGraphAnalyzer.cpp analyzeRadiatorScan_SRCS += ThreeWireGraphAnalyzer.cpp analyzeRadiatorScan_SRCS += AnalysisFrameDict.cpp analyzeRadiatorScan_SRCS += AnalysisMainFrameDict.cpp analyzeRadiatorScan_SRCS += GraphAnalyzerDict.cpp analyzeRadiatorScan_SRCS += LogableMainFrameDict.cpp analyzeRadiatorScan_SRCS += LogEntryFrameDict.cpp analyzeRadiatorScan_SRCS += OverviewFrameDict.cpp analyzeRadiatorScan_SRCS += OverviewMainFrameDict.cpp analyzeRadiatorScan_SRCS += ScanDetectorDict.cpp analyzeRadiatorScan_SRCS += ScanStreamDict.cpp analyzeRadiatorScan_SRCS += ScanDict.cpp analyzeRadiatorScan_SRCS += ScanComboDict.cpp analyzeRadiatorScan_SRCS += ScanFileDict.cpp analyzeRadiatorScan_SRCS += ScanMainFrameDict.cpp analyzeRadiatorScan_SRCS += ScanPositionerDict.cpp analyzeRadiatorScan_SRCS += ScanCorrectionDict.cpp ROOT_LIBRIRIES = $(filter -l%, $(shell $(ROOT)/bin/root-config --glibs) ) ROOT_LIBS_ONLY = $(subst -l, , $(ROOT_LIBRIRIES) ) analyzeRadiatorScan_SYS_LIBS_Linux += $(ROOT_LIBS_ONLY) analyzeRadiatorScan_SYS_LIBS_Linux += GX11TTF GX11 analyzeRadiatorScan_SYS_LIBS_Linux += boost_iostreams boost_filesystem boost_system boost_program_options analyzeRadiatorScan_SYS_LIBS_Linux += cpp elog xml++-2.6 analyzeRadiatorScan_CFLAGS += -D$(ACCEL_ARCH) analyzeRadiatorScan_CXXFLAGS += -D$(ACCEL_ARCH) analyzeRadiatorScan_CPPFLAGS += -D$(ACCEL_ARCH) analyzeRadiatorScan_LDFLAGS += $(shell $(ROOT)/bin/root-config --cflags) analyzeRadiatorScan_LDFLAGS += -L$(shell $(ROOT)/bin/root-config --libdir) -Wl,-rpath=$(shell $(ROOT)/bin/root-config --libdir) -Wl,-R$(shell $(ROOT)/bin/root-config --libdir) analyzeRadiatorScan_LDFLAGS += -L$(ELOG)/lib/$(ACCEL_ARCH) -L$(CPPLIB)/lib/$(ACCEL_ARCH) -L$(CURLPP)/lib -L$(LIBXMLPP)/lib analyzeRadiatorScan_LDFLAGS += -Wl,-s -Wl,--rpath=$(ELOG)/lib/$(ACCEL_ARCH) analyzeRadiatorScan_LDFLAGS += -Wl,--rpath=$(CPPLIB)/lib/$(ACCEL_ARCH) analyzeRadiatorScan_LDFLAGS += -Wl,--rpath=$(CURLPP)/lib analyzeRadiatorScan_LDFLAGS += -Wl,--rpath=$(LIBXMLPP)/lib #=========================== include $(TOP)/configure/RULES #---------------------------------------- # ADD RULES AFTER THIS LINE %Dict.cpp : ../%.hh ../%LinkDef.h tcsh -c "source $(ROOT)/bin/thisroot.csh $(ROOT); $(ROOT)/bin/rootcint -f $@ -c $<"