]>
Commit | Line | Data |
---|---|---|
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 | ||
1578254f | 12 | SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx \ |
fe4da5cc | 13 | AliDigit.cxx AliHit.cxx AliPoints.cxx \ |
14 | AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \ | |
8494b010 | 15 | AliLego.cxx AliModule.cxx |
fe4da5cc | 16 | |
17 | ||
18 | # C++ Headers | |
19 | ||
c5970876 | 20 | HDRS = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h |
fe4da5cc | 21 | |
22 | # Library dictionary | |
23 | ||
24 | DICT = STEERCint.cxx | |
25 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 26 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 27 | |
28 | # FORTRAN Objectrs | |
29 | ||
4adb943a | 30 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 31 | |
32 | # C Objects | |
33 | ||
4adb943a | 34 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 35 | |
36 | # C++ Objects | |
37 | ||
4adb943a | 38 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 39 | |
40 | # C++ compilation flags | |
41 | ||
42 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
43 | ||
44 | # FORTRAN compilation flags | |
45 | ||
46 | FFLAGS = $(FOPT) | |
47 | ||
48 | ##### TARGETS ##### | |
49 | ||
50 | # Target | |
51 | ||
cb342460 | 52 | SLIBRARY = $(LIBDIR)/libSTEER.$(SL) |
53 | ALIBRARY = $(LIBDIR)/lib/libSTEER.a | |
fe4da5cc | 54 | |
31ccd13b | 55 | default: $(SLIBRARY) |
fe4da5cc | 56 | |
cb342460 | 57 | $(LIBDIR)/libSTEER.$(SL): $(OBJS) |
fe4da5cc | 58 | |
59 | $(DICT): $(HDRS) | |
60 | ||
61 | depend: $(SRCS) | |
62 | ||
63 | HEADERS = $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h) | |
64 | ||
65 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
66 | ||
67 | ############################### General Macros ################################ | |
68 | ||
69 | include $(ALICE_ROOT)/conf/GeneralMacros | |
70 | ||
71 | ############################ Dependencies ##################################### | |
72 | ||
9f84158c | 73 | -include Make-depend |