Fork me on GitHub

Changes in Makefile [71efbfe:17d0ab8] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r71efbfe r17d0ab8  
    3232endif
    3333
    34 
    35 # check consistency
    36 ifneq ($(PROMC),)
    37   ifneq ($(PROIO),)
    38   $(error Attention:  PROMC and PROIO env. variables are set simultaneously. You cannot compile ProMC and ProIO readers in one compilation process due to an inconsistency in protocol buffers libraries. The suggestion is to compile these two readers in two steps. First unset PROIO variable and then \"configure; make\". After this, unset PROMC, set PROIO,  and run \"configure; make\". During runs, make sure shared libraries are set correctly. )
    39   endif
    40 endif
    41 
    42 
    4334ifneq ($(PROMC),)
    4435HAS_PROMC = true
    45 $(info ProMC event reader is requested)
    4636CXXFLAGS += -I$(PROMC)/include -I$(PROMC)/src
    4737OPT_LIBS += -L$(PROMC)/lib -lpromc -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz
    48 endif
    49 
    50 ifneq ($(PROIO),)
    51 HAS_PROIO = true
    52 $(info ProIO reader is requested)
    53        ifeq ($(PROTOBUF),)
    54        $(error but PROTOBUF variable is not set.)
    55        endif
    56 
    57        PROTOBUF_FILE=$(PROTOBUF)/lib/libprotobuf.a
    58        ifeq ("$(wildcard $(PROTOBUF_FILE))","")
    59           $(error PROTOBUF variable is set, but it does not point to valid $(PROTOBUF_FILE))
    60        endif
    61 
    62        ifeq ($(LZ4),)
    63             $(error but LZ4 variable is not set.)                       
    64        endif
    65        LZ4_FILE=$(LZ4)/lib/liblz4.so
    66        ifeq ("$(wildcard $(LZ4_FILE))","")
    67             $(error LZ4 variable is set,  but it  does not point to valid $(LZ4_FILE))
    68        endif
    69 
    70 
    71 CXXFLAGS += -I$(PROIO)/include -I$(PROTOBUF)/include -I$(LZ4)/include -I$(PROIO)/src
    72 OPT_LIBS += -L$(PROTOBUF)/lib -lprotobuf -L$(PROIO)/lib -lproio -lproio.pb -lz -L$(LZ4)/lib -llz4
    7338endif
    7439
     
    319284EXECUTABLE_OBJ +=  \
    320285        tmp/readers/DelphesProMC.$(ObjSuf)
    321 
    322 endif
    323 
    324 ifeq ($(HAS_PROIO),true)
    325 DelphesProIO$(ExeSuf): \
    326         tmp/readers/DelphesProIO.$(ObjSuf)
    327 
    328 tmp/readers/DelphesProIO.$(ObjSuf): \
    329         readers/DelphesProIO.cpp \
    330         modules/Delphes.h \
    331         classes/DelphesStream.h \
    332         classes/DelphesClasses.h \
    333         classes/DelphesFactory.h \
    334         external/ExRootAnalysis/ExRootTreeWriter.h \
    335         external/ExRootAnalysis/ExRootTreeBranch.h \
    336         external/ExRootAnalysis/ExRootProgressBar.h
    337 EXECUTABLE +=  \
    338         DelphesProIO$(ExeSuf)
    339 
    340 EXECUTABLE_OBJ +=  \
    341         tmp/readers/DelphesProIO.$(ObjSuf)
    342286
    343287endif
Note: See TracChangeset for help on using the changeset viewer.