TOP=../.. include $(TOP)/configure/CONFIG #---------------------------------------- # ADD MACRO DEFINITIONS AFTER THIS LINE # Build 64-bit application EPICS_HOST_ARCH = linux-x86_64 # Setup ROOT ROOT = /gapps/root/${EPICS_OSNAME}/${EPICS_ROOT_VERSION} USR_INCLUDES += -I$(shell $(ROOT)/bin/root-config --incdir) USR_CXXFLAGS += -D_REENTRANT -Wall # USR_LDFLAGS += -Bstatic # Because of the PCM files of ROOT, we intall the executables and the PCM files into a subdirectory in bin, # then we make the links to the executable. #INSTALL_BIN_HARDCOPY = $(INSTALL_LOCATION_BIN)/$(EPICS_HOST_ARCH)/RadiatorMotion #INSTALL_BIN = $(INSTALL_BIN_HARDCOPY) #INSTALL_LINK_LOCATION = $(INSTALL_LOCATION_BIN)/$(EPICS_HOST_ARCH) ROOT_LIBRIRIES = $(filter -l%, $(shell $(ROOT)/bin/root-config --glibs) ) ROOT_LIBS_ONLY = $(subst -l, , $(ROOT_LIBRIRIES) ) #============================= # Build the IOC support library LOADABLE_LIBRARY_Linux += RootEzca INC += ezcaRoot.h ezcaRootTypes.h # Link locally-provided code into the support library, # rather than directly into the IOC application. RootEzca_SRCS += ezcaRoot.cc #RootEzca_SRCS += ezcaRootDict.cc #LIB_INSTALLS += ezcaRootDict_rdict.pcm #ROOT_LIBRIRIES = $(filter -l%, $(shell $(ROOT)/bin/root-config --glibs) ) #ROOT_LIBS_ONLY = $(subst -l, , $(ROOT_LIBRIRIES) ) RootEzca_SYS_LIBS_Linux += $(ROOT_LIBS_ONLY) RootEzca_SYS_LIBS_Linux += GX11TTF GX11 Minuit RootEzca_LDFLAGS += $(shell $(ROOT)/bin/root-config --cflags) RootEzca_LDFLAGS += -L$(shell $(ROOT)/bin/root-config --libdir) -Wl,-rpath=$(shell $(ROOT)/bin/root-config --libdir) -Wl,-R$(shell $(ROOT)/bin/root-config --libdir) RootEzca_LIBS += $(EPICS_BASE_IOC_LIBS) #==================================== PROD_Linux += makeEnhancement makeEnhancement_SRC_Default += makeEnhancement.cc makeEnhancement_SYS_LIBS_Linux += $(ROOT_LIBS_ONLY) makeEnhancement_SYS_LIBS_Linux += GX11TTF GX11 Minuit makeEnhancement_LDFLAGS += $(shell $(ROOT)/bin/root-config --cflags) makeEnhancement_LDFLAGS += -L$(shell $(ROOT)/bin/root-config --libdir) -Wl,-rpath=$(shell $(ROOT)/bin/root-config --libdir) -Wl,-R$(shell $(ROOT)/bin/root-config --libdir) makeEnhancement_LIBS += ezca RootEzca makeEnhancement_LIBS += $(EPICS_BASE_IOC_LIBS) #============================= # Build the IOC application PROD_IOC_Linux = cbrem # cbrem.dbd will be created and installed DBD += cbrem.dbd # cbrem.dbd will be made up from these files: cbrem_DBD += base.dbd cbrem_DBD += asSupport.dbd cbrem_DBD += devIocStats.dbd # cbrem_registerRecordDeviceDriver.cpp derives from cbrem.dbd cbrem_SRCS += cbrem_registerRecordDeviceDriver.cpp # Build the main IOC entry point on workstation OSs. cbrem_SRCS_DEFAULT += cbremMain.cpp cbrem_SRCS_vxWorks += -nil- # Add support from base/src/vxWorks if needed #cbrem_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary # Link in the code from the support library #cbrem_LIBS += cbremSupport cbrem_LIBS += devIocStats cbrem_LIBS += autosave # NOTE: To build SNL programs, SNCSEQ must be defined # in the /configure/RELEASE file #ifneq ($(SNCSEQ),) # # Build sncExample into cbremSupport # sncExample_SNCFLAGS += +r # cbrem_DBD += sncExample.dbd # cbremSupport_SRCS += sncExample.stt # cbremSupport_LIBS += seq pv # cbrem_LIBS += seq pv # # Build sncProgram as a standalone program # PROD_HOST += sncProgram # sncProgram_SNCFLAGS += +m # sncProgram_SRCS += sncProgram.st # sncProgram_LIBS += seq pv # sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS) #endif # Finally link to the EPICS Base libraries cbrem_LIBS += $(EPICS_BASE_IOC_LIBS) #============================= include $(TOP)/configure/RULES #---------------------------------------- # ADD RULES AFTER THIS LINE #%Dict.cpp : ../%.h ../%LinkDef.h # tcsh -c "source $(ROOT)/bin/thisroot.csh $(ROOT); $(ROOT)/bin/rootcint -I=$(EPICS_BASE)/include -I=$(EPICS_BASE)/include/compiler/gcc -I=$(EPICS_BASE)/include/os/Linux -I=$(EPICS_EXTENSIONS)/include -f $@ -c $<" #%Dict_rdict.pcm : ../%.h ../%LinkDef.h # tcsh -c "source $(ROOT)/bin/thisroot.csh $(ROOT); $(ROOT)/bin/rootcint -I=$(EPICS_BASE)/include -I=$(EPICS_BASE)/include/compiler/gcc -I=$(EPICS_BASE)/include/os/Linux -I=$(EPICS_EXTENSIONS)/include -f $@ -c $<"