108615fc |
1 | ############################### TPC 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 = AliL3 |
9 | |
10 | # C++ sources |
11 | |
12 | |
13 | SRCS = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\ |
14 | AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\ |
15 | AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \ |
16 | AliL3Vertex.cxx AliL3VertexFinder.cxx AliL3HoughTrack.cxx\ |
17 | AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinder.cxx \ |
18 | AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \ |
19 | AliL3MemHandler.cxx AliL3FileHandler.cxx AliL3Evaluate.cxx \ |
20 | AliL3Benchmark.cxx AliL3Display.cxx |
21 | |
22 | |
23 | # C++ Headers |
24 | |
25 | HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h |
26 | # Library dictionary |
27 | |
28 | DICT = AliL3Cint.cxx |
29 | DICTH = $(DICT:.cxx=.h) |
30 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
31 | |
32 | # FORTRAN Objectrs |
33 | |
34 | FOBJS = $(FSRCS:.f=.o) |
35 | |
36 | # C Objects |
37 | |
38 | COBJS = $(CSRCS:.c=.o) |
39 | |
40 | # C++ Objects |
41 | |
42 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
43 | |
44 | # C++ compilation flags |
45 | |
46 | CXXFLAGS = $(CXXOPTS) -g -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS |
47 | |
48 | #CXXFLAGS = $(CXXOPTS) -g -Wall -I$(ROOTSYS)/include -I. -I $(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/include/ -DCOMPILING |
49 | |
50 | # FORTRAN compilation flags |
51 | |
52 | FFLAGS = $(FOPT) |
53 | |
54 | ##### TARGETS ##### |
55 | |
56 | # Target |
57 | |
8c2c792d |
58 | SLIBRARY = $(ALICE)/mylibs/libAliL3.$(SL) |
108615fc |
59 | |
60 | default: $(SLIBRARY) |
61 | |
8c2c792d |
62 | $(ALICE)/mylibs/libAliL3.$(SL): $(OBJS) |
108615fc |
63 | |
64 | $(DICT): $(HDRS) |
65 | |
66 | depend: $(SRCS) |
67 | |
68 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx |
69 | |
70 | ############################### General Macros ################################ |
71 | |
72 | include $(ALICE_ROOT)/conf/GeneralMacros |
73 | |
74 | ############################ Dependencies ##################################### |
75 | |
76 | include tgt_$(ALICE_TARGET)/Make-depend |
77 | |
78 | ########### |
79 | so: |
8c2c792d |
80 | rm -fr $(ALICE)/mylibs/libAliL3.so |
108615fc |
81 | clean: |
82 | rm -fr tgt_Linux/*.o |
8c2c792d |
83 | rm -fr $(ALICE)/mylibs/libAliL3.so |
108615fc |
84 | rm -fr $(DICT) $(DICTH) $(DICTO) |