2include $(PHOTOSLOCATION)/make.inc
4ROOTLIB := $(shell root-config --glibs)
5ROOTINC := $(shell root-config --cflags)
6ROOTLIBPATH := $(shell root-config --libdir)
8# Keep in mind Makefile and examples are not prepared to automatically adapt
9# to different pythia versions: 8.170 (or lower), 8.180-8.185, 8.2
10# At present they are adapted to v8.2
11#PYTHIA_LIBS = -L$(PYTHIALOCATION)/lib/archive -lpythia8 -llhapdfdummy -lhepmcinterface
12#PYTHIA_LIBS = -L$(PYTHIALOCATION)/lib/archive -lpythia8 -llhapdfdummy -lpythia8tohepmc
13PYTHIA_LIBS = -L$(PYTHIALOCATION)/lib -lpythia8 -ldl
15MC_TESTER_LIBS = -L$(MCTESTERLOCATION)/lib -lHEPEvent -lHepMCEvent -lMCTester
16HEPMC_LIBS = -L$(HEPMCLOCATION)/lib -lHepMC
17TAUOLA_LIBS = -L$(TAUOLALOCATION)/lib -lTauolaCxxInterface -lTauolaFortran -lTauolaHepMC
18PHOTOS_LIBS = -L$(PHOTOSLOCATION)/lib -lPhotospp -lPhotosppHepMC -lPhotosppHEPEVT $(HEPMC_LIBS)
21ifneq ($(HEPMCLOCATION), )
22ifneq ($(PYTHIALOCATION), )
23ifneq ($(MCTESTERLOCATION), )
25ifneq ($(TAUOLALOCATION), )
26 @make photos_tauola_test.exe
31 @echo "##################################################################"
32 @echo " Available programs:"
33 @if test -e photos_test.exe; then \
34 echo " ./photos_test.exe"; else \
36 echo " WARNING: Main program used for tests - 'photos_test.exe' "; \
37 echo " requires HepMC, Pythia8 and MC-TESTER."; \
39 @if test -e photos_tauola_test.exe; then \
40 echo " ./photos_tauola_test.exe"; else \
42 echo " WARNING: Second program used for tests - 'photos_tauola_test.exe' "; \
43 echo " requires HepMC, Tauola++, Pythia8 and MC-TESTER."; \
46 @echo " To execute all available tests: 'make run',"
47 @echo " For single test: cd to chosen sub-directory and 'make' "
48 @echo "##################################################################"
51 $(CC) $(CFLAGS) -I$(PHOTOSLOCATION)/include -I$(HEPMCLOCATION)/include \
52 $(LDFLAGS) $(HEPMC_LIBS) $(PHOTOS_LIBS) $< -o $@ \
53 -Wl,-rpath,$(PHOTOSLOCATION)/lib \
54 -Wl,-rpath,$(HEPMCLOCATION)/lib
56photos_test.exe: photos_test.cxx
57 $(CC) $(CFLAGS) -I$(PHOTOSLOCATION)/include -I$(PYTHIALOCATION)/include -I$(MCTESTERLOCATION)/include -I$(HEPMCLOCATION)/include \
59 $(LDFLAGS) $(ROOTLIB) $(PYTHIA_LIBS) $(MC_TESTER_LIBS) $(HEPMC_LIBS) $(PHOTOS_LIBS) \
60 -Wl,-rpath,$(PHOTOSLOCATION)/lib \
61 -Wl,-rpath,$(ROOTLIBPATH) \
62 -Wl,-rpath,$(HEPMCLOCATION)/lib \
63 -Wl,-rpath,$(PYTHIALOCATION)/lib \
64 -Wl,-rpath,$(MCTESTERLOCATION)/lib
66photos_tauola_test.exe: photos_tauola_test.cxx
67 $(CC) $(CFLAGS) -I$(PHOTOSLOCATION)/include -I$(TAUOLALOCATION)/include -I$(PYTHIALOCATION)/include -I$(MCTESTERLOCATION)/include \
68 -I$(HEPMCLOCATION)/include $(ROOTINC) $< -o $@ \
69 $(LDFLAGS) $(ROOTLIB) $(PYTHIA_LIBS) $(MC_TESTER_LIBS) $(HEPMC_LIBS) $(TAUOLA_LIBS) $(PHOTOS_LIBS) \
70 -Wl,-rpath,$(PHOTOSLOCATION)/lib \
71 -Wl,-rpath,$(TAUOLALOCATION)/lib \
72 -Wl,-rpath,$(ROOTLIBPATH) \
73 -Wl,-rpath,$(HEPMCLOCATION)/lib \
74 -Wl,-rpath,$(PYTHIALOCATION)/lib \
75 -Wl,-rpath,$(MCTESTERLOCATION)/lib
79 @echo "Please execute ./configure in main examples directory first!"
83$(PHOTOSLOCATION)/make.inc:
85 @echo "Please compile the interface first!"
97ifneq ($(TAUOLALOCATION), )
109 make -C Zmumu clobber
110 make -C ZmumuNLO clobber
112 make -C Wmunu clobber
113 make -C WmunuNLO clobber
114 make -C ttbar clobber
115 make -C Htautau clobber
116 make -C Ztautau clobber
117 make -C ScalNLO clobber