]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### ALIROOT 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 = ALIROOT | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = | |
13 | ||
14 | # C++ Headers | |
15 | ||
16 | HDRS = | |
17 | ||
18 | # Library dictionary | |
19 | ||
20 | DICT = | |
21 | DICTH = $(DICT:.cxx=.h) | |
22 | DICTO = $(DICT:.cxx=.o) | |
23 | ||
24 | # FORTRAN Sources | |
25 | ||
26 | FSRCS = loadmod.F pydata.F ludata.F | |
27 | ||
28 | # FORTRAN Objectrs | |
29 | ||
4adb943a | 30 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 31 | |
32 | # C Sources | |
33 | ||
34 | CSRCS = dummies.c | |
35 | ||
36 | # C Objects | |
37 | ||
4adb943a | 38 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 39 | |
40 | # C++ Sources | |
41 | ||
42 | SRCS = aliroot.cxx | |
43 | ||
44 | # C++ Objects | |
45 | ||
4adb943a | 46 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 47 | |
48 | # Global Macros | |
49 | ||
50 | ALLSRCS = $(SRCS) $(FSRCS) $(CSRCS) | |
51 | ALLOBJS = $(OBJS) $(FOBJS) $(COBJS) | |
52 | ||
53 | # C++ compilation flags | |
54 | ||
55 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include | |
56 | ||
57 | # FORTRAN compilation flags | |
58 | ||
59 | FFLAGS = $(FOPT) | |
60 | ||
61 | ##### TARGETS ##### | |
62 | ||
63 | # Target | |
64 | ||
cb342460 | 65 | PROGRAM = $(BINDIR)/aliroot |
fe4da5cc | 66 | |
67 | default: $(PROGRAM) | |
68 | ||
69 | depend: $(ALLSRCS) | |
70 | ||
cb342460 | 71 | $(BINDIR)/aliroot: $(OBJS) $(COBJS) $(FOBJS) |
fe4da5cc | 72 | |
73 | LIBS = $(ALILIBS) $(G3LIBS) $(CLIBS) $(GLIBS) -lEG -lEGPythia -lpythia -lpdf | |
74 | ||
75 | TOCLEAN = $(PROGRAM) $(OBJS) $(COBJS) $(FOBJS) | |
76 | ||
77 | ############################### General Macros ################################ | |
78 | ||
79 | include $(ALICE_ROOT)/conf/GeneralMacros | |
80 | ||
81 | ############################ Dependencies ##################################### | |
82 | ||
1207d6f2 | 83 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 84 | |
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | ### Target check creates violation reports (.viol), which depend on | |
100 | ### stripped files (.ii), which in turn depend on preprocessed | |
101 | ### files (.i). Dependences are in conf/GeneralDef. | |
102 | ||
103 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
104 | ||
105 | check: $(CHECKS) | |
106 | ||
107 | ||
108 | ||
109 | ||
110 | ||
111 | ||
112 |