]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### MUON 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 = MUON | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = AliMUON.cxx AliMUONdisplay.cxx AliMUONpoints.cxx \ | |
13 | AliMUONsegmentv1.cxx AliMUONv0.cxx AliMUONv01.cxx | |
14 | ||
15 | # C++ Headers | |
16 | ||
17 | HDRS = $(SRCS:.cxx=.h) AliMUONConst.h MUONLinkDef.h | |
18 | ||
19 | # Library dictionary | |
20 | ||
21 | DICT = MUONCint.cxx | |
22 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 23 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 24 | |
25 | # Fortran sources | |
26 | ||
27 | FSRCS = algo.F | |
28 | ||
29 | # FORTRAN Objectrs | |
30 | ||
4adb943a | 31 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 32 | |
33 | # C Objects | |
34 | ||
4adb943a | 35 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 36 | |
37 | # C++ Objects | |
38 | ||
4adb943a | 39 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 40 | |
41 | # C++ compilation flags | |
42 | ||
43 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
44 | ||
45 | # FORTRAN compilation flags | |
46 | ||
47 | FFLAGS = $(FOPT) | |
48 | ||
49 | ##### TARGETS ##### | |
50 | ||
51 | # Target | |
52 | ||
cb342460 | 53 | SLIBRARY = $(LIBDIR)/libMUON.$(SL) |
54 | ALIBRARY = $(LIBDIR)/libMUON.a | |
fe4da5cc | 55 | |
56 | default: $(SLIBRARY) | |
57 | ||
cb342460 | 58 | $(LIBDIR)/libMUON.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc | 59 | |
60 | $(DICT): $(HDRS) | |
61 | ||
62 | depend: $(SRCS) | |
63 | ||
64 | TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h | |
65 | ||
66 | ############################### General Macros ################################ | |
67 | ||
68 | include $(ALICE_ROOT)/conf/GeneralMacros | |
69 | ||
70 | ############################ Dependencies ##################################### | |
71 | ||
1207d6f2 | 72 | -include tgt_$(ALICE_TARGET)/Make-depend |
fe4da5cc | 73 |