]>
Commit | Line | Data |
---|---|---|
ef51244a | 1 | |
6ca40650 | 2 | ###############################START Makefile################################## |
3 | ||
4 | # Include machine specific definitions | |
5 | ||
6 | include $(ALICE_ROOT)/conf/GeneralDef | |
7 | include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) | |
8 | ||
9 | PACKAGE = START | |
10 | ||
11 | # C++ sources | |
12 | ||
7115262b | 13 | SRCS = AliSTART.cxx AliSTARTv0.cxx AliSTARTv1.cxx AliSTARThit.cxx AliSTARTdigit.cxx AliSTARTvertex.cxx AliSTARTDigitizer.cxx |
6ca40650 | 14 | |
15 | # C++ Headers | |
16 | ||
17 | HDRS = $(SRCS:.cxx=.h) STARTLinkDef.h | |
18 | ||
19 | # Library dictionary | |
20 | ||
21 | DICT = STARTCint.cxx | |
22 | DICTH = $(DICT:.cxx=.h) | |
23 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
24 | ||
25 | # FORTRAN Objectrs | |
26 | ||
27 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) | |
28 | ||
29 | # C Objects | |
30 | ||
31 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) | |
32 | ||
33 | # C++ Objects | |
34 | ||
35 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
36 | ||
37 | # C++ compilation flags | |
38 | ||
39 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
40 | ||
41 | # FORTRAN compilation flags | |
42 | ||
43 | FFLAGS = $(FOPT) | |
44 | ||
45 | ##### TARGETS ##### | |
46 | ||
47 | # Target | |
48 | ||
49 | SLIBRARY = $(LIBDIR)/libSTART.$(SL) | |
50 | ALIBRARY = $(LIBDIR)/libSTART.a | |
51 | ||
52 | default: $(SLIBRARY) | |
53 | ||
54 | $(LIBDIR)/libSTART.$(SL): $(OBJS) | |
55 | ||
56 | $(DICT): $(HDRS) | |
57 | ||
58 | depend: $(SRCS) | |
59 | ||
60 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
61 | ||
e2fe4c02 | 62 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
63 | ||
6ca40650 | 64 | ############################### General Macros ################################ |
65 | ||
66 | include $(ALICE_ROOT)/conf/GeneralMacros | |
67 | ||
68 | ############################ Dependencies ##################################### | |
69 | ||
70 | -include tgt_$(ALICE_TARGET)/Make-depend | |
6ca40650 | 71 |