]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/Makefile
Correct problem with Make-depend due to the new location of objects
[u/mrichter/AliRoot.git] / ITS / Makefile
CommitLineData
fe4da5cc 1############################### ITS Makefile ##################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = ITS
9
10# C++ sources
11
766ac21b 12SRCS = AliITS.cxx AliITSv0.cxx AliITSv1.cxx AliITSv3.cxx AliITSv5.cxx
fe4da5cc 13
14# Fortran sources
15
766ac21b 16FSRCS =
fe4da5cc 17
18# C++ Headers
19
20HDRS = $(SRCS:.cxx=.h) ITSLinkDef.h
21
22# Library dictionary
23
24DICT = ITSCint.cxx
25DICTH = $(DICT:.cxx=.h)
4adb943a 26DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 27
28# FORTRAN Objectrs
29
4adb943a 30FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 31
32# C Objects
33
4adb943a 34COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 35
36# C++ Objects
37
4adb943a 38OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 39
40# C++ compilation flags
41
42CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
43
44# FORTRAN compilation flags
45
46FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
47
48##### TARGETS #####
49
50# Target
51
cb342460 52SLIBRARY = $(LIBDIR)/libITS.$(SL)
53ALIBRARY = $(LIBDIR)/libITS.a
fe4da5cc 54
55default: $(SLIBRARY)
56
cb342460 57$(LIBDIR)/libITS.$(SL): $(OBJS)
fe4da5cc 58
59$(DICT): $(HDRS)
60
61DEPINC += -I$(ALICE_ROOT)/GEANT321
62
63depend: $(SRCS) $(FSRCS)
64
65TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
66
67############################### General Macros ################################
68
69include $(ALICE_ROOT)/conf/GeneralMacros
70
71############################ Dependencies #####################################
72
1207d6f2 73-include tgt_$(ALICE_TARGET)/Make-depend