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.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/advanced/ChargeExchangeMC/GNUmakefile (Version 11.3.0) and /examples/advanced/ChargeExchangeMC/GNUmakefile (Version 10.1)


  1 name := ChargeExchangeMC                            1 name := ChargeExchangeMC
  2 G4TARGET := $(name)                                 2 G4TARGET := $(name)
  3 G4EXLIB := true                                     3 G4EXLIB := true
  4                                                     4 
  5 CPPFLAGS += -DCEXMC_PROG_NAME=\"$(name)\"           5 CPPFLAGS += -DCEXMC_PROG_NAME=\"$(name)\"
  6                                                     6 
  7 # if CEXMC_USE_PERSISTENCY is 'yes' then run a      7 # if CEXMC_USE_PERSISTENCY is 'yes' then run and events data can be read and
  8 # written; requires boost::serialize headers a      8 # written; requires boost::serialize headers and library
  9 CEXMC_USE_PERSISTENCY := no                         9 CEXMC_USE_PERSISTENCY := no
 10 # if CEXMC_USE_CUSTOM_FILTER is 'yes' then Cus     10 # if CEXMC_USE_CUSTOM_FILTER is 'yes' then Custom filter can be used for
 11 # existing events data; requires boost::spirit     11 # existing events data; requires boost::spirit 2.x headers. Notice: if
 12 # CEXMC_USE_PERSISTENCY is not 'yes' then Cust     12 # CEXMC_USE_PERSISTENCY is not 'yes' then Custom Filter will not be used anyway
 13 CEXMC_USE_CUSTOM_FILTER := no                      13 CEXMC_USE_CUSTOM_FILTER := no
 14 # if CEXMC_DEBUG_CUSTOM_FILTER is 'yes' then A     14 # if CEXMC_DEBUG_CUSTOM_FILTER is 'yes' then AST trees will be printed out
 15 CEXMC_DEBUG_CUSTOM_FILTER := no                    15 CEXMC_DEBUG_CUSTOM_FILTER := no
 16 # if CEXMC_USE_HISTOGRAMING is 'yes' then ROOT     16 # if CEXMC_USE_HISTOGRAMING is 'yes' then ROOT histograming framework will be
 17 # compiled. Notice: if ROOT CERN is not instal     17 # compiled. Notice: if ROOT CERN is not installed in your system then the
 18 # histograming module won't compile anyway         18 # histograming module won't compile anyway
 19 CEXMC_USE_HISTOGRAMING := yes                      19 CEXMC_USE_HISTOGRAMING := yes
 20 # if CEXMC_USE_QGSP_BERT is 'yes' then QGSP_BE     20 # if CEXMC_USE_QGSP_BERT is 'yes' then QGSP_BERT will be used as basic physics,
 21 # otherwise - FTFP_BERT or QGSP_BIC_EMY            21 # otherwise - FTFP_BERT or QGSP_BIC_EMY
 22 CEXMC_USE_QGSP_BERT := no                          22 CEXMC_USE_QGSP_BERT := no
 23 # if CEXMC_USE_QGSP_BIC_EMY is 'yes' then QGSP     23 # if CEXMC_USE_QGSP_BIC_EMY is 'yes' then QGSP_BIC_EMY will be used as basic
 24 # physics, otherwise - FTFP_BERT or QGSP_BERT      24 # physics, otherwise - FTFP_BERT or QGSP_BERT
 25 CEXMC_USE_QGSP_BIC_EMY := no                       25 CEXMC_USE_QGSP_BIC_EMY := no
 26 # if CEXMC_USE_GENBOD is 'yes' then original F     26 # if CEXMC_USE_GENBOD is 'yes' then original FORTRAN routine GENBOD() will be
 27 # used as phase space generator                    27 # used as phase space generator
 28 CEXMC_USE_GENBOD := no                             28 CEXMC_USE_GENBOD := no
 29 # if CEXMC_DEBUG_TP is 'yes' then additional i     29 # if CEXMC_DEBUG_TP is 'yes' then additional info will be printed on track
 30 # points data                                      30 # points data
 31 CEXMC_DEBUG_TP := no                               31 CEXMC_DEBUG_TP := no
 32                                                    32 
 33                                                    33 
 34 ifndef G4INSTALL                                   34 ifndef G4INSTALL
 35   G4INSTALL = ../../..                             35   G4INSTALL = ../../..
 36 endif                                              36 endif
 37                                                    37 
 38 ifeq ($(CEXMC_USE_GENBOD),yes)                     38 ifeq ($(CEXMC_USE_GENBOD),yes)
 39   CPPFLAGS += -DCEXMC_USE_GENBOD                   39   CPPFLAGS += -DCEXMC_USE_GENBOD
 40   EXTRALIBS += `cernlib geant321 phtools packl     40   EXTRALIBS += `cernlib geant321 phtools packlib kernlib`
 41   GCC_VERSION := $(shell gcc --version | head      41   GCC_VERSION := $(shell gcc --version | head -1 | awk '{ printf $$3 }' | \
 42                          awk -F"." '{ printf $     42                          awk -F"." '{ printf $$1 }')
 43   ifdef CEXMC_FORTRAN_LIB                          43   ifdef CEXMC_FORTRAN_LIB
 44     EXTRALIBS += $(CEXMC_FORTRAN_LIB)              44     EXTRALIBS += $(CEXMC_FORTRAN_LIB)
 45   else                                             45   else
 46     # try to setup fortran lib automatically       46     # try to setup fortran lib automatically
 47     # WARNING: the following is not robust che     47     # WARNING: the following is not robust check because cernlib can be built
 48     # against libg2c even when using gcc-4 ser     48     # against libg2c even when using gcc-4 series
 49     # Please define CEXMC_FORTRAN_LIB if the c     49     # Please define CEXMC_FORTRAN_LIB if the check fails
 50     ifeq ($(GCC_VERSION),3)                        50     ifeq ($(GCC_VERSION),3)
 51       EXTRALIBS += -lg2c                           51       EXTRALIBS += -lg2c
 52     else                                           52     else
 53       EXTRALIBS += -lgfortran                      53       EXTRALIBS += -lgfortran
 54     endif                                          54     endif
 55   endif                                            55   endif
 56 endif                                              56 endif
 57                                                    57 
 58 ifdef BOOST_INCLUDE_PATH                           58 ifdef BOOST_INCLUDE_PATH
 59   CPPFLAGS += -I$(BOOST_INCLUDE_PATH)              59   CPPFLAGS += -I$(BOOST_INCLUDE_PATH)
 60 endif                                              60 endif
 61                                                    61 
 62 ifdef BOOST_LIBRARY_PATH                           62 ifdef BOOST_LIBRARY_PATH
 63   EXTRALIBS += -L$(BOOST_LIBRARY_PATH)             63   EXTRALIBS += -L$(BOOST_LIBRARY_PATH)
 64 endif                                              64 endif
 65                                                    65 
 66 ifeq ($(CEXMC_USE_PERSISTENCY),yes)                66 ifeq ($(CEXMC_USE_PERSISTENCY),yes)
 67   EXTRALIBS += -lboost_serialization               67   EXTRALIBS += -lboost_serialization
 68   CPPFLAGS += -DCEXMC_USE_PERSISTENCY              68   CPPFLAGS += -DCEXMC_USE_PERSISTENCY
 69   ifeq ($(CEXMC_USE_CUSTOM_FILTER),yes)            69   ifeq ($(CEXMC_USE_CUSTOM_FILTER),yes)
 70     CPPFLAGS += -DCEXMC_USE_CUSTOM_FILTER          70     CPPFLAGS += -DCEXMC_USE_CUSTOM_FILTER
 71     ifeq ($(CEXMC_DEBUG_CUSTOM_FILTER),yes)        71     ifeq ($(CEXMC_DEBUG_CUSTOM_FILTER),yes)
 72       CPPFLAGS += -DCEXMC_DEBUG_CF                 72       CPPFLAGS += -DCEXMC_DEBUG_CF
 73     endif                                          73     endif
 74   endif                                            74   endif
 75 endif                                              75 endif
 76                                                    76 
 77 ifeq ($(CEXMC_USE_HISTOGRAMING),yes)               77 ifeq ($(CEXMC_USE_HISTOGRAMING),yes)
 78   # try to determine if ROOT will be used auto     78   # try to determine if ROOT will be used automatically
 79   USE_ROOT := $(shell which root-config 2>/dev     79   USE_ROOT := $(shell which root-config 2>/dev/null)
 80   ifneq ($(USE_ROOT),)                             80   ifneq ($(USE_ROOT),)
 81     CPPFLAGS += -I`root-config --incdir`           81     CPPFLAGS += -I`root-config --incdir`
 82     EXTRALIBS += `root-config --libs`              82     EXTRALIBS += `root-config --libs`
 83     CPPFLAGS += -DCEXMC_USE_ROOT                   83     CPPFLAGS += -DCEXMC_USE_ROOT
 84     # try to determine if ROOT-Qt binding will     84     # try to determine if ROOT-Qt binding will be used automatically
 85     USE_ROOTQT := $(shell root-config --featur     85     USE_ROOTQT := $(shell root-config --features | grep qt)
 86     ifneq ($(USE_ROOTQT),)                         86     ifneq ($(USE_ROOTQT),)
 87       EXTRALIBS += -lGQt                           87       EXTRALIBS += -lGQt
 88       CPPFLAGS += -DCEXMC_USE_ROOTQT               88       CPPFLAGS += -DCEXMC_USE_ROOTQT
 89     endif                                          89     endif
 90   endif                                            90   endif
 91 endif                                              91 endif
 92                                                    92 
 93 ifeq ($(CEXMC_USE_QGSP_BERT),yes)                  93 ifeq ($(CEXMC_USE_QGSP_BERT),yes)
 94   CPPFLAGS += -DCEXMC_USE_QGSP_BERT                94   CPPFLAGS += -DCEXMC_USE_QGSP_BERT
 95 else                                               95 else
 96   ifeq ($(CEXMC_USE_QGSP_BIC_EMY),yes)             96   ifeq ($(CEXMC_USE_QGSP_BIC_EMY),yes)
 97     CPPFLAGS += -DCEXMC_USE_QGSP_BIC_EMY           97     CPPFLAGS += -DCEXMC_USE_QGSP_BIC_EMY
 98   endif                                            98   endif
 99 endif                                              99 endif
100                                                   100 
101 ifeq ($(CEXMC_DEBUG_TP),yes)                      101 ifeq ($(CEXMC_DEBUG_TP),yes)
102   CPPFLAGS += -DCEXMC_DEBUG_TP                    102   CPPFLAGS += -DCEXMC_DEBUG_TP
103 endif                                             103 endif
104                                                   104 
105 .PHONY: all                                       105 .PHONY: all
106 all: lib bin                                      106 all: lib bin
107                                                   107 
108 include $(G4INSTALL)/config/binmake.gmk           108 include $(G4INSTALL)/config/binmake.gmk
109                                                   109