]>
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 | |
56a00aec | 30 | # (temporarily excluded for OSF1 due to compilation errors) |
2817d3e2 | 31 | |
56a00aec | 32 | ifneq ($(ALICE_TARGET),OSF1) |
2817d3e2 | 33 | DICT = TGeant4Cint.cxx |
34 | DICTH = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h | |
35 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
56a00aec | 36 | endif |
2817d3e2 | 37 | |
38 | # C++ Objects | |
39 | ||
40 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
41 | ||
42 | # C++ compilation flags | |
43 | ||
44 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
45 | ||
46 | ||
47 | ##### TARGETS ##### | |
48 | ||
49 | # Target | |
50 | ||
51 | SLIBRARY = $(LIBDIR)/libTGeant4.$(SL) | |
56a00aec | 52 | ALIBRARY = $(LIBDIR)/libTGeant4.a |
2817d3e2 | 53 | |
54 | default: $(SLIBRARY) | |
55 | ||
56 | $(LIBDIR)/libTGeant4.$(SL): $(OBJS) | |
56a00aec | 57 | $(LIBDIR)/libTGeant4.a: $(OBJS) |
2817d3e2 | 58 | |
59 | $(DICT): $(DICTH) | |
60 | ||
61 | depend: $(SRCS) | |
62 | ||
2f5a2f2d | 63 | clean: macroclean |
64 | ||
2817d3e2 | 65 | #HEADERS = $(filter-out %LinkDef.h,$(HDRS)) |
66 | ||
67 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
68 | ||
69 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
70 | ||
71 | ############################### General Macros ################################ | |
72 | ||
73 | include $(ALICE_ROOT)/conf/GeneralMacros | |
74 | ||
75 | ||
76 | # Geant4 specific compiler flags | |
77 | ||
78 | CXXFLAGS += $(CPPFLAGS) | |
79 | ||
80 | ||
81 | ############################ Dependencies ##################################### | |
82 | ||
83 | -include tgt_$(ALICE_TARGET)/Make-depend |