# --------------------------------------------------------------------------- # # This Makefile represents the part of the general Makefile which sets # all the global definitions. # --------------------------------------------------------------------------- # System SYSTEM := $(shell uname -s) MACHINE := $(shell uname -m) PROCESSOR := $(shell uname -p) INSTALL := install MKDIR := mkdir -p INSTALL_MODE := -m 644 -p INSTALL_XMODE := -m 755 RM := rm -f DOXYGEN := doxygen # Jpp/ JPP_OUT = $(JPP_DIR)/out/ JPP_BIN = $(JPP_OUT)/$(SYSTEM)/bin/ JPP_LIB = $(JPP_OUT)/$(SYSTEM)/lib/ JPP_DOC = $(JPP_DIR)/doc/ JPP_INCLUDE = $(JPP_DIR)/software/ # antares-daq/ ANTRS_OUT = $(ANTRS_DAQ_ROOT)/out/$(SYSTEM) ANTRS_BIN = $(ANTRS_OUT)/bin ANTRS_LIB = $(ANTRS_OUT)/lib ANTRS_INCLUDE = $(ANTRS_DAQ_ROOT)/include ANTCC_LIBS = -lantccROOT # Oracle OTL_LIBS := -lclntsh # Root ROOTLIBS = `${ROOTSYS}/bin/root-config --libs` ROOTGLIBS = `${ROOTSYS}/bin/root-config --glibs` ROOTINCL = `${ROOTSYS}/bin/root-config --cflags` # CHSM #CHSM_DIR = $(CHSM_DIR) CHSM2CXX = $(CHSM_DIR)/bin/chsm2c++ CHSM_LIBS = $(CHSM_DIR)/lib/libchsm.a -lpthread CHSM_INCLUDE = $(CHSM_DIR)/include CHSM_CXXFLAGS = -DCHSM_MULTITHREADED -D_REENTRANT # Jpp JPPLIBS = -llang JDAQ_LIBS = -lKM3NeTDAQROOT JDAQ_CHSM = -lDAQ_CHSM JTRIGGER_LIBS = -ltriggerROOT # PATH ifeq ($(origin PATH), undefined) PATH := . endif ifneq ($(findstring $(ROOTSYS)/bin, $(PATH)), $(ROOTSYS)/bin) PATH := $(ROOTSYS)/bin:$(PATH) endif # LD_LIBRARY_PATH ifeq ($(origin LD_LIBRARY_PATH), undefined) LD_LIBRARY_PATH := . endif ifneq ($(findstring $(ROOTSYS)/lib, $(LD_LIBRARY_PATH)), $(ROOTSYS)/lib) LD_LIBRARY_PATH := $(ROOTSYS)/lib:$(LD_LIBRARY_PATH) endif ifneq ($(findstring $(ANTRS_LIB), $(LD_LIBRARY_PATH)), $(ANTRS_LIB)) LD_LIBRARY_PATH := $(ANTRS_LIB):$(LD_LIBRARY_PATH) endif ifneq ($(findstring $(JPP_LIB), $(LD_LIBRARY_PATH)), $(JPP_LIB)) LD_LIBRARY_PATH := $(JPP_LIB):$(LD_LIBRARY_PATH) endif # compiler CXX = g++ CXXFLAGS = -Wall -ansi -fPIC CXXFLAGS += -O3 CXXFLAGS += -I$(JPP_INCLUDE) CXXFLAGS += $(ROOTINCL) ARFLAGS = crus SOFLAGS = -O -shared -Wl LDFLAGS += -L$(JPP_LIB)