Fork me on GitHub

Changeset 1148 in svn for trunk/examples/DelphesProMC.sh


Ignore:
Timestamp:
Jun 25, 2013, 9:41:18 PM (11 years ago)
Author:
Pavel Demin
Message:

fix ProMC includes and check PROMC variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/DelphesProMC.sh

    r1146 r1148  
     1#!/bin/sh
    12
    2 INC="-I$PROMC/include -I$PROMC/src"
     3if [ -z "$PROMC" ]
     4then
     5  echo "** ERROR: PROMC variable is not set. Is ProMC installed?"
     6else
     7  echo ">> PROMC is set to $PROMC"
     8  echo ">> Building DelphesProMC";
    39
    4 LIB="$PROMC/src/*.cc -L$PROMC/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz"
     10  INC="-I$PROMC/include -I$PROMC/src"
    511
    6 g++ -I. -Iexternal $INC `root-config --cflags --ldflags --libs` -lEG -L. -lDelphes $LIB -o DelphesProMC examples/DelphesProMC.cpp
     12  LIB="$PROMC/src/*.cc -L$PROMC/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz"
    713
     14  g++ -I. -Iexternal $INC `root-config --cflags --ldflags --libs` -lEG -L. -lDelphes $LIB -o DelphesProMC examples/DelphesProMC.cpp
     15fi
Note: See TracChangeset for help on using the changeset viewer.