Coding convention correction and warning removal
[u/mrichter/AliRoot.git] / STEER / Makefile
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
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 \
16                 AliGeometry.cxx AliRecPoint.cxx AliSegmentation.cxx \
17                 AliHitMap.cxx   AliMagFC.cxx    AliMagFCM.cxx \
18                 AliMagFDM.cxx   AliLegoGenerator.cxx
19
20 # C++ Headers
21
22 HDRS          = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h
23
24 # Library dictionary
25
26 DICT          = STEERCint.cxx
27 DICTH         = $(DICT:.cxx=.h)
28 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
29
30 # FORTRAN Objectrs
31
32 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
33
34 # C Objects
35
36 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
37
38 # C++ Objects
39
40 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42 # C++ compilation flags
43
44 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
45  
46 # FORTRAN compilation flags
47
48 FFLAGS      = $(FOPT)
49
50 ##### TARGETS #####
51  
52 # Target
53
54 SLIBRARY        = $(LIBDIR)/libSTEER.$(SL)
55 ALIBRARY        = $(LIBDIR)/lib/libSTEER.a
56
57 default:        $(SLIBRARY)
58
59 $(LIBDIR)/libSTEER.$(SL):               $(OBJS)
60
61 $(DICT):                                $(HDRS)
62
63 depend:                                 $(SRCS)
64
65 HEADERS =       $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h \
66                   Copyright.h)
67
68 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
69
70 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
71
72 ############################### General Macros ################################
73
74 include $(ALICE_ROOT)/conf/GeneralMacros
75
76 ############################ Dependencies #####################################
77
78 -include tgt_$(ALICE_TARGET)/Make-depend 
79
80
81
82
83
84
85