]>
Commit | Line | Data |
---|---|---|
2e967919 | 1 | CC = g++ |
2 | FF = g77 | |
3 | LD = g++ | |
4 | ||
5 | BINARIES = therm_events therm_tree | |
6 | HSOURCES = Parser.cxx ParticleType.cxx DecayChannel.cxx Integrator.cxx ParticleDB.cxx DecayTable.cxx Particle.cxx Event.cxx ParticleDecayer.cxx ReadPar.cxx Hypersurface.cxx | |
7 | HEADERS = $(HSOURCES:.cxx=.h) | |
8 | SOURCES = $(HSOURCES) therm_events.cxx | |
9 | OBJECTS = $(SOURCES:.cxx=.o) | |
10 | ||
11 | CPPOPT = -Wno-deprecated `root-config --cflags` | |
12 | COPTN = -c -O0 -g ${CPPOPT} -D_DEBUG_LEVEL_=1 | |
13 | COPT = -c -O0 -g ${CPPOPT} -D_DEBUG_LEVEL_=1 | |
14 | LLIB = `root-config --libs` -L$(ROOTSYS)/lib -lm -lgcc -g | |
15 | ||
16 | all: $(BINARIES) | |
17 | ||
18 | therm_events: $(OBJECTS) | |
19 | $(LD) $(LLIB) -o $@ $(OBJECTS) | |
20 | ||
21 | therm_tree: therm_tree.o | |
22 | $(LD) $(LLIB) -o $@ therm_tree.o | |
23 | ||
24 | therm_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 | ||
33 | include $(SOURCES:.cxx=.d) | |
34 | ||
35 | clean: | |
36 | rm -f *.o therm_events therm_tree therm_events.exe therm_tree.exe *.d | |
37 | ||
38 | cleanod: | |
39 | rm -f *.o *.d | |
40 | ||
41 | package: $(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 $^ |