]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/Makefile
Simplification for Fast Simulator
[u/mrichter/AliRoot.git] / FMD / Makefile
1 ############################### FMD 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 = FMD
9
10 # C++ sources
11
12 SRCS          = AliFMD.cxx AliFMDv0.cxx AliFMDv1.cxx AliFMDhit.cxx\
13                 AliFMDdigit.cxx AliFMDSDigitizer.cxx
14
15 # C++ Headers
16
17 HDRS          = $(SRCS:.cxx=.h) FMDLinkDef.h
18
19 # Library dictionary
20
21 DICT          = FMDCint.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)/libFMD.$(SL)
50 ALIBRARY        = $(LIBDIR)/libFMD.a
51
52 default:        $(SLIBRARY)
53
54 $(LIBDIR)/libFMD.$(SL):         $(OBJS)
55
56 $(DICT):                        $(HDRS)
57
58 depend:                         $(SRCS)
59
60 TOCLEAN          = $(OBJS) *Cint.cxx *Cint.h
61
62 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
63
64 ############################### General Macros ################################
65
66 include $(ALICE_ROOT)/conf/GeneralMacros
67
68 ############################ Dependencies #####################################
69
70 -include tgt_$(ALICE_TARGET)/Make-depend 
71
72
73
74
75
76
77