]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | # $Id$ |
2 | ||
3 | ############################### TGeant4 Makefile ############################### | |
4 | ||
5 | # Include Geant4 specific definitions | |
6 | ||
7 | include $(G4INSTALL)/config/architecture.gmk | |
8 | ||
9 | # Include machine specific definitions | |
10 | ||
11 | include $(ALICE_ROOT)/conf/GeneralDef | |
12 | include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) | |
13 | ||
14 | # Include Alice Geant4 specific definitions | |
15 | ||
16 | include $(ALICE_ROOT)/conf/Geant4.gmk | |
17 | ||
18 | PACKAGE = TGeant4 | |
19 | ||
20 | # C++ sources | |
21 | ||
22 | SRCS = $(wildcard *.cxx) | |
23 | ||
24 | # C++ Headers | |
25 | ||
26 | HDRS = $(wildcard *.icc) $(wildcard *.h) | |
27 | ||
28 | # Library Root dictionary | |
29 | # only for selected classes | |
30 | ||
31 | DICT = TGeant4Cint.cxx | |
32 | DICTH = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h | |
33 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
34 | ||
35 | # C++ Objects | |
36 | ||
37 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
38 | ||
39 | # C++ compilation flags | |
40 | ||
41 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
42 | ||
43 | ||
44 | ##### TARGETS ##### | |
45 | ||
46 | # Target | |
47 | ||
48 | SLIBRARY = $(LIBDIR)/libTGeant4.$(SL) | |
49 | ALIBRARY = $(LIBDIR)/lib/libTGeant4.a | |
50 | ||
51 | default: $(SLIBRARY) | |
52 | ||
53 | $(LIBDIR)/libTGeant4.$(SL): $(OBJS) | |
54 | ||
55 | $(DICT): $(DICTH) | |
56 | ||
57 | depend: $(SRCS) | |
58 | ||
2f5a2f2d | 59 | clean: macroclean |
60 | ||
2817d3e2 | 61 | #HEADERS = $(filter-out %LinkDef.h,$(HDRS)) |
62 | ||
63 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
64 | ||
65 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
66 | ||
67 | ############################### General Macros ################################ | |
68 | ||
69 | include $(ALICE_ROOT)/conf/GeneralMacros | |
70 | ||
71 | ||
72 | # Geant4 specific compiler flags | |
73 | ||
74 | CXXFLAGS += $(CPPFLAGS) | |
75 | ||
76 | ||
77 | ############################ Dependencies ##################################### | |
78 | ||
79 | -include tgt_$(ALICE_TARGET)/Make-depend |