]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/Makefile
CRTv1, GenCRT modules added
[u/mrichter/AliRoot.git] / TPC / Makefile
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 = TPC
9
10 # C++ sources
11
12 SRCS          = AliTPCClusterFinder.cxx  AliTPC.cxx  AliTPCv0.cxx    AliTPCv1.cxx      AliTPCv2.cxx  \
13                 AliTPCv3.cxx AliDetectorParam.cxx AliTPCParam.cxx \
14                 AliTPCParamSR.cxx AliTPCParamCR.cxx  AliTPCPRF2D.cxx \
15                 AliTPCRF1D.cxx \
16                 AliSimDigits.cxx AliDigitsArray.cxx  AliTPCDigitsArray.cxx \
17                 AliComplexCluster.cxx AliClusters.cxx AliClustersArray.cxx \
18                  AliTPCClustersRow.cxx \
19                 AliTPCClustersArray.cxx AliH2F.cxx \
20                 AliTPCcluster.cxx AliTPCclusterer.cxx \
21                 AliTPCtrack.cxx AliTPCtracker.cxx \
22                 AliTPCTrackHits.cxx AliTPCDigitizer.cxx \
23                 AliTPCTrackHitsV2.cxx AliTPCtrackerParam.cxx \
24                 AliTPCkineGrid.cxx
25
26
27 # C++ Headers
28
29 HDRS          = $(SRCS:.cxx=.h) TPCLinkDef.h
30
31 # Library dictionary
32
33 DICT          = TPCCint.cxx
34 DICTH         = $(DICT:.cxx=.h)
35 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
36
37 # FORTRAN Objectrs
38
39 FOBJS         = $(FSRCS:.f=.o)
40
41 # C Objects
42
43 COBJS         = $(CSRCS:.c=.o)
44
45 # C++ Objects
46
47 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
48
49 # C++ compilation flags
50
51 CXXFLAGS      = $(CXXOPTS) -g -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
52                 -I$(ALICE_ROOT)/CONTAINERS
53  
54 # FORTRAN compilation flags
55
56 FFLAGS      = $(FOPT)
57  
58 ##### TARGETS #######
59  
60 # Target
61
62 SLIBRARY        = $(LIBDIR)/libTPC.$(SL)
63 ALIBRARY      = $(LIBDIR)/static/libTPC.a
64
65 default:        $(SLIBRARY) 
66
67 $(LIBDIR)/libTPC.$(SL):  $(OBJS)
68 $(LIBDIR)/static/libTPC.a:  $(OBJS)
69
70 $(DICT):                $(HDRS)
71
72 depend:                 $(SRCS)
73
74 TOCLEAN                 = $(OBJS) *Cint.h *Cint.cxx
75
76 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
77
78 ############################### General Macros ################################
79
80 include $(ALICE_ROOT)/conf/GeneralMacros
81
82 ############################ Dependencies #####################################
83
84 -include tgt_$(ALICE_TARGET)/Make-depend 
85
86 check : $(CHECKS)
87