]>
Commit | Line | Data |
---|---|---|
da32329d AM |
1 | |
2 | # | |
3 | # The PROGRAM macro defines the name of the program or project. It | |
4 | # allows the program name to be changed by editing in only one | |
5 | # location | |
6 | # | |
7 | ||
8 | PROGRAM = starlight | |
9 | ||
10 | # The INCLUDEDIRS macro contains a list of include directories | |
11 | # to pass to the compiler so it can find necessary header files. | |
12 | # | |
13 | # The LIBDIRS macro contains a list of library directories | |
14 | # to pass to the linker so it can find necessary libraries. | |
15 | # | |
16 | # The LIBS macro contains a list of libraries that the the | |
17 | # executable must be linked against. | |
18 | # | |
19 | ||
20 | INCLUDEDIRS = \ | |
21 | -I/home/gorbunov/pythia/pythia8120/include \ | |
22 | -I/usr/local/root/include \ | |
23 | -I../include | |
24 | ||
25 | ||
26 | LIBDIRS = \ | |
45d54d9a | 27 | -L${ROOTSYS}/lib \ |
28 | -L${ALICE_ROOT}/PYTHIA8/pythia8170/lib | |
29 | ||
da32329d AM |
30 | |
31 | ||
32 | LIBS = -lCore -lCint -lRIO -lGpad -lRint -lGui -lPhysics -lMathCore\ | |
33 | -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMinuit -lNet \ | |
34 | -lPostscript -lProof -lTree -lThread -lVMC -lGeom \ | |
35 | -lEG -ldl -lpthread -lTreePlayer -lProofPlayer -lpythia8 -llhapdfdummy | |
36 | ||
37 | ||
38 | # | |
39 | # The CXXSOURCES macro contains a list of source files. | |
40 | # | |
41 | # The CXXOBJECTS macro converts the CXXSOURCES macro into a list | |
42 | # of object files. | |
43 | # | |
44 | # The CXXFLAGS macro contains a list of options to be passed to | |
45 | # the compiler. Adding "-g" to this line will cause the compiler | |
46 | # to add debugging information to the executable. | |
47 | # | |
48 | # The CXX macro defines the C++ compiler. | |
49 | # | |
50 | # The LDFLAGS macro contains all of the library and library | |
51 | # directory information to be passed to the linker. | |
52 | # | |
53 | OTHERDIR= ../src | |
45d54d9a | 54 | CXXSOURCES = $(OTHERDIR)/main.cpp \ |
55 | $(OTHERDIR)/inputParameters.cpp \ | |
56 | $(OTHERDIR)/inputParser.cpp \ | |
57 | $(OTHERDIR)/nucleus.cpp \ | |
58 | $(OTHERDIR)/bessel.cpp \ | |
59 | $(OTHERDIR)/beam.cpp \ | |
60 | $(OTHERDIR)/beambeamsystem.cpp \ | |
61 | $(OTHERDIR)/twophotonluminosity.cpp \ | |
62 | $(OTHERDIR)/upcevent.cpp \ | |
63 | $(OTHERDIR)/vector3.cpp \ | |
64 | $(OTHERDIR)/lorentzvector.cpp \ | |
65 | $(OTHERDIR)/eventfilewriter.cpp \ | |
66 | $(OTHERDIR)/filewriter.cpp \ | |
67 | $(OTHERDIR)/eventchannel.cpp \ | |
68 | $(OTHERDIR)/nBodyPhaseSpaceGen.cpp \ | |
69 | $(OTHERDIR)/wideResonanceCrossSection.cpp \ | |
70 | $(OTHERDIR)/photonNucleusCrossSection.cpp \ | |
71 | $(OTHERDIR)/incoherentVMCrossSection.cpp \ | |
72 | $(OTHERDIR)/narrowResonanceCrossSection.cpp \ | |
73 | $(OTHERDIR)/incoherentPhotonNucleusLuminosity.cpp \ | |
74 | $(OTHERDIR)/gammagammaleptonpair.cpp \ | |
75 | $(OTHERDIR)/readinluminosity.cpp \ | |
76 | $(OTHERDIR)/randomgenerator.cpp \ | |
77 | $(OTHERDIR)/gammagammasingle.cpp \ | |
78 | $(OTHERDIR)/gammaavm.cpp \ | |
79 | $(OTHERDIR)/gammaaluminosity.cpp \ | |
80 | $(OTHERDIR)/psifamily.cpp \ | |
81 | $(OTHERDIR)/starlightparticle.cpp \ | |
82 | $(OTHERDIR)/starlightparticlecodes.cpp \ | |
83 | $(OTHERDIR)/starlight.cpp \ | |
84 | $(OTHERDIR)/starlightStandalone.cpp # list of source files | |
da32329d AM |
85 | CXXOBJECTS = $(CXXSOURCES:.cpp=.o) # expands to list of object files |
86 | CXXFLAGS = $(INCLUDEDIRS) | |
87 | CXX = g++ | |
88 | ||
89 | LDFLAGS = $(LIBDIRS) $(LIBS) | |
90 | ||
91 | # | |
92 | # Default target: the first target is the default target. | |
93 | # Just type "make -f Makefile.Linux" to build it. | |
94 | # | |
95 | ||
96 | all: $(PROGRAM) | |
97 | ||
98 | # | |
99 | # Link target: automatically builds its object dependencies before | |
100 | # executing its link command. | |
101 | # | |
102 | ||
103 | $(PROGRAM): $(CXXOBJECTS) | |
104 | $(CXX) -o $@ $(CXXOBJECTS) $(LDFLAGS) | |
105 | ||
106 | # | |
107 | # Object targets: rules that define objects, their dependencies, and | |
108 | # a list of commands for compilation. | |
109 | # | |
110 | # | |
111 | #basic_sample.o: basic_sample.cpp basic_sample.h | |
112 | # $(CXX) $(CXXFLAGS) -c -o basic_sample.o basic_sample.cpp | |
113 | # | |
114 | # | |
115 | # Clean target: "make -f Makefile.Linux clean" to remove unwanted objects and executables. | |
116 | # | |
117 | ||
118 | clean: | |
119 | $(RM) -f $(CXXOBJECTS) $(PROGRAM) | |
120 |