Introducing Copyright include file
[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
16
17
18 # C++ Headers
19
20 HDRS          = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h
21
22 # Library dictionary
23
24 DICT          = STEERCint.cxx
25 DICTH         = $(DICT:.cxx=.h)
26 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
27
28 # FORTRAN Objectrs
29
30 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
31
32 # C Objects
33
34 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
35
36 # C++ Objects
37
38 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
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
52 SLIBRARY        = $(LIBDIR)/libSTEER.$(SL)
53 ALIBRARY        = $(LIBDIR)/lib/libSTEER.a
54
55 default:        $(SLIBRARY)
56
57 $(LIBDIR)/libSTEER.$(SL):               $(OBJS)
58
59 $(DICT):                                $(HDRS)
60
61 depend:                                 $(SRCS)
62
63 HEADERS =       $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h \
64                   Copyright.h)
65
66 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
67
68 ############################### General Macros ################################
69
70 include $(ALICE_ROOT)/conf/GeneralMacros
71
72 ############################ Dependencies #####################################
73
74 -include tgt_$(ALICE_TARGET)/Make-depend 
75
76
77
78
79
80
81
82
83 ### Target check creates violation reports (.viol), which depend on
84 ### stripped files (.ii), which in turn depend on preprocessed
85 ### files (.i). Dependences are in conf/GeneralDef.
86
87 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
88
89 check:          $(CHECKS)
90
91
92
93
94
95
96