]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TTherminator/Therminator/Makefile
Fix Coverity
[u/mrichter/AliRoot.git] / TTherminator / Therminator / Makefile
CommitLineData
2e967919 1CC = g++
2FF = g77
3LD = g++
4
5BINARIES = therm_events therm_tree
6HSOURCES = Parser.cxx ParticleType.cxx DecayChannel.cxx Integrator.cxx ParticleDB.cxx DecayTable.cxx Particle.cxx Event.cxx ParticleDecayer.cxx ReadPar.cxx Hypersurface.cxx
7HEADERS = $(HSOURCES:.cxx=.h)
8SOURCES = $(HSOURCES) therm_events.cxx
9OBJECTS = $(SOURCES:.cxx=.o)
10
11CPPOPT = -Wno-deprecated `root-config --cflags`
12COPTN = -c -O0 -g ${CPPOPT} -D_DEBUG_LEVEL_=1
13COPT = -c -O0 -g ${CPPOPT} -D_DEBUG_LEVEL_=1
14LLIB = `root-config --libs` -L$(ROOTSYS)/lib -lm -lgcc -g
15
16all: $(BINARIES)
17
18therm_events: $(OBJECTS)
19 $(LD) $(LLIB) -o $@ $(OBJECTS)
20
21therm_tree: therm_tree.o
22 $(LD) $(LLIB) -o $@ therm_tree.o
23
24therm_tree.o: therm_tree.C
25 $(CC) $(COPT) -o $@ $^
26
27%.o: %.cxx
28 $(CC) $(COPT) -o $@ $<
29
30%.d: %.cxx
31 $(SHELL) -ec '$(CC) -MM $(CPPOPT) $< | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; [ -s $@ ] || rm -f $@'
32
33include $(SOURCES:.cxx=.d)
34
35clean:
36 rm -f *.o therm_events therm_tree therm_events.exe therm_tree.exe *.d
37
38cleanod:
39 rm -f *.o *.d
40
41package: $(SOURCES) $(HEADERS) Makefile therminator.in therm_tree.C ./share/particles.data ./share/decays.data THGlobal.h figure*.C runevents.sh
42 tar zcvf therminator-2_0.tar.gz $^