]>
Commit | Line | Data |
---|---|---|
65a39007 | 1 | ############################### ALIFAST 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 = ALIFAST | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = AliFast.cxx AliFMaker.cxx AliFDet.cxx AliFTrackMaker.cxx \ | |
13 | AliFTrack.cxx AliFHistBrowser.cxx AliFBigBang.cxx \ | |
14 | AliFBrowsable.cxx AliFVirtualDisplay.cxx | |
15 | ||
16 | # C++ Headers | |
17 | ||
18 | HDRS = $(SRCS:.cxx=.h) ALIFASTLinkDef.h | |
19 | ||
20 | # Library dictionary | |
21 | ||
22 | DICT = ALIFASTCint.cxx | |
23 | DICTH = $(DICT:.cxx=.h) | |
24 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
25 | ||
26 | # FORTRAN Objectrs | |
27 | ||
28 | FOBJS = $(FSRCS:.f=.o) | |
29 | ||
30 | # C Objects | |
31 | ||
32 | COBJS = $(CSRCS:.c=.o) | |
33 | ||
34 | # C++ Objects | |
35 | ||
36 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
37 | ||
38 | # C++ compilation flags | |
39 | ||
40 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
41 | ||
42 | # FORTRAN compilation flags | |
43 | ||
44 | FFLAGS = $(FOPT) | |
45 | ||
46 | ##### TARGETS ##### | |
47 | ||
48 | # Target | |
49 | ||
50 | SLIBRARY = $(LIBDIR)/libALIFAST.$(SL) | |
51 | ||
52 | default: $(SLIBRARY) | |
53 | ||
54 | $(LIBDIR)/libALIFAST.$(SL): $(OBJS) | |
55 | ||
56 | $(DICT): $(HDRS) | |
57 | ||
58 | depend: $(SRCS) | |
59 | ||
60 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
61 | ||
e2fe4c02 | 62 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
63 | ||
65a39007 | 64 | ############################### General Macros ################################ |
65 | ||
66 | include $(ALICE_ROOT)/conf/GeneralMacros | |
67 | ||
71c8ffe8 | 68 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
69 | ||
65a39007 | 70 | ############################ Dependencies ##################################### |
71 | ||
72 | -include tgt_$(ALICE_TARGET)/Make-depend | |
73 | ||
74 |