fe4da5cc |
1 | ############################### STEER Makefile ################################ |
2 | |
3 | # Include machine specific definitions |
4 | |
5 | include $(ALICE_ROOT)/conf/GeneralDef |
6 | include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) |
7 | |
8 | PACKAGE = STEER |
9 | |
10 | # C++ sources |
11 | |
2a33668d |
12 | SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx \ |
13 | AliDigit.cxx AliHit.cxx AliPoints.cxx \ |
14 | AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \ |
15 | AliLego.cxx AliModule.cxx AliDigitNew.cxx \ |
d9d543ab |
16 | AliGeometry.cxx AliRecPoint.cxx AliSegmentation.cxx \ |
17 | AliHitMap.cxx |
fe4da5cc |
18 | |
19 | # C++ Headers |
20 | |
c5970876 |
21 | HDRS = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h |
fe4da5cc |
22 | |
23 | # Library dictionary |
24 | |
25 | DICT = STEERCint.cxx |
26 | DICTH = $(DICT:.cxx=.h) |
4adb943a |
27 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc |
28 | |
29 | # FORTRAN Objectrs |
30 | |
4adb943a |
31 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc |
32 | |
33 | # C Objects |
34 | |
4adb943a |
35 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc |
36 | |
37 | # C++ Objects |
38 | |
4adb943a |
39 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc |
40 | |
41 | # C++ compilation flags |
42 | |
43 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ |
44 | |
45 | # FORTRAN compilation flags |
46 | |
47 | FFLAGS = $(FOPT) |
48 | |
49 | ##### TARGETS ##### |
50 | |
51 | # Target |
52 | |
cb342460 |
53 | SLIBRARY = $(LIBDIR)/libSTEER.$(SL) |
54 | ALIBRARY = $(LIBDIR)/lib/libSTEER.a |
fe4da5cc |
55 | |
31ccd13b |
56 | default: $(SLIBRARY) |
fe4da5cc |
57 | |
cb342460 |
58 | $(LIBDIR)/libSTEER.$(SL): $(OBJS) |
fe4da5cc |
59 | |
60 | $(DICT): $(HDRS) |
61 | |
62 | depend: $(SRCS) |
63 | |
6f0fc79c |
64 | HEADERS = $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h \ |
65 | Copyright.h) |
fe4da5cc |
66 | |
67 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
68 | |
e2fe4c02 |
69 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
70 | |
fe4da5cc |
71 | ############################### General Macros ################################ |
72 | |
73 | include $(ALICE_ROOT)/conf/GeneralMacros |
74 | |
75 | ############################ Dependencies ##################################### |
76 | |
1207d6f2 |
77 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |