]>
Commit | Line | Data |
---|---|---|
b521659f | 1 | # $Id$ |
2 | # Makefile template for the Alice HLT framework and components | |
3 | ||
4 | ||
7233bc62 | 5 | if HAVE_ALIROOT |
6 | ALIROOT_DEP=sim \ | |
7 | rec \ | |
27c9fa67 | 8 | QA \ |
ff4edcee | 9 | shuttle \ |
73c1ebf5 | 10 | pendolino |
7233bc62 | 11 | endif |
12 | ||
b521659f | 13 | if EN_HLT_SAMPLE |
14 | SAMPLE_DIR=SampleLib | |
15 | endif | |
16 | ||
17 | if EN_HLT_TPC | |
3daf4fbc | 18 | TPC_DIR=TPCLib |
b521659f | 19 | endif |
20 | ||
5e3820e2 | 21 | if EN_HLT_RCU |
22 | RCU_DIR=RCU | |
23 | endif | |
24 | ||
fe8738cf | 25 | if EN_HLT_CALO |
26 | CALO_DIR=CALO | |
27 | endif | |
28 | ||
c160eda8 | 29 | if EN_HLT_PHOS |
30 | PHOS_DIR=PHOS | |
31 | endif | |
32 | ||
fe8738cf | 33 | if EN_HLT_EMCAL |
34 | EMCAL_DIR=EMCAL | |
35 | endif | |
36 | ||
0f51f5b8 | 37 | if EN_HLT_TRD |
38 | TRD_DIR=TRD | |
39 | endif | |
40 | ||
50a3793d | 41 | if EN_HLT_FMD |
42 | FMD_DIR=FMD | |
43 | endif | |
44 | ||
57cd80a1 | 45 | if EN_HLT_ZDC |
46 | ZDC_DIR=ZDC | |
47 | endif | |
48 | ||
5c561c5b | 49 | if EN_HLT_MUON |
50 | MUON_DIR=MUON | |
51 | endif | |
52 | ||
e89e6b23 | 53 | if EN_HLT_COMP |
54 | COMP_DIR=comp | |
55 | endif | |
56 | ||
d6e2c707 | 57 | if EN_HLT_TRIGGER |
3daf4fbc | 58 | TRIGGER_DIR=trigger |
d6e2c707 | 59 | endif |
60 | ||
61 | if EN_HLT_ITS | |
62 | ITS_DIR=ITS | |
63 | endif | |
3daf4fbc | 64 | |
ec6160d5 | 65 | if EN_HLT_GLOBAL |
66 | GLOBAL_DIR=global | |
67 | endif | |
68 | ||
33daad3d | 69 | if EN_HLT_JET |
70 | JET_DIR=JET | |
71 | endif | |
72 | ||
aed3e6fc | 73 | if EN_HLT_VZERO |
74 | VZERO_DIR=VZERO | |
75 | endif | |
76 | ||
b521659f | 77 | SUBDIRS = BASE \ |
7233bc62 | 78 | $(ALIROOT_DEP) \ |
c3800c65 | 79 | $(RCU_DIR) \ |
b521659f | 80 | $(SAMPLE_DIR) \ |
81 | $(TPC_DIR) \ | |
fe8738cf | 82 | $(CALO_DIR) \ |
c160eda8 | 83 | $(PHOS_DIR) \ |
fe8738cf | 84 | $(EMCAL_DIR) \ |
0f51f5b8 | 85 | $(TRD_DIR) \ |
50a3793d | 86 | $(FMD_DIR) \ |
57cd80a1 | 87 | $(ZDC_DIR) \ |
5c561c5b | 88 | $(MUON_DIR) \ |
e89e6b23 | 89 | $(COMP_DIR) \ |
3daf4fbc | 90 | $(TRIGGER_DIR) \ |
d6e2c707 | 91 | $(ITS_DIR) \ |
ec6160d5 | 92 | $(GLOBAL_DIR) \ |
73c1ebf5 | 93 | $(JET_DIR) \ |
aed3e6fc | 94 | $(VZERO_DIR) \ |
73c1ebf5 | 95 | $(QA_DIR) \ |
b521659f | 96 | doc |
97 | ||
2d7ff710 | 98 | EXTRA_DIST = libHLTbase.pkg \ |
d098ebd4 | 99 | libHLTinterface.pkg \ |
4cbaf07b | 100 | libHLTsim.pkg \ |
101 | libHLTrec.pkg \ | |
8f471af0 | 102 | libHLTshuttle.pkg \ |
a3c9b745 | 103 | libHLTpendolino.pkg \ |
73c1ebf5 | 104 | libHLTqadm.pkg \ |
4cbaf07b | 105 | libAliHLTHOMER.pkg \ |
242bb794 | 106 | libAliHLTUtil.pkg \ |
2d7ff710 | 107 | libAliHLTSample.pkg \ |
3cde846d | 108 | libAliHLTPHOS.pkg \ |
dfaa582a | 109 | libAliHLTTPC.pkg \ |
0f51f5b8 | 110 | libAliHLTTRD.pkg \ |
5dded172 | 111 | libAliHLTFMD.pkg \ |
57cd80a1 | 112 | libAliHLTZDC.pkg \ |
5c561c5b | 113 | libAliHLTMUON.pkg \ |
e89e6b23 | 114 | libAliHLTComp.pkg \ |
3daf4fbc | 115 | libAliHLTTrigger.pkg \ |
8f471af0 | 116 | libAliHLTRCU.pkg \ |
117 | libAliHLTITS.pkg \ | |
5dded172 | 118 | libAliHLTEMCAL.pkg \ |
ec6160d5 | 119 | libAliHLTGlobal.pkg \ |
33daad3d | 120 | libAliHLTJet.pkg \ |
aed3e6fc | 121 | libAliHLTVZERO.pkg \ |
8f471af0 | 122 | exa/sample-component1.C \ |
123 | exa/monitoring.C \ | |
7233bc62 | 124 | hlt.conf \ |
125 | .revision | |
2d7ff710 | 126 | |
b521659f | 127 | DIST_SUBDIRS = $(SUBDIRS) |
128 | ||
242bb794 | 129 | # this is a special target to create a stand-alone package from the SampleLib |
2d7ff710 | 130 | SampleLibPkg: Makefile $(top_srcdir)/SampleLib/* |
131 | @tmpdir=/tmp/$(USER)/$@ ; \ | |
132 | if test -d $@ ; then \ | |
133 | cp -ruv $(top_srcdir)/SampleLib/* $@; \ | |
134 | cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \ | |
135 | cp -uv $(top_srcdir)/acinclude.m4 $@; \ | |
136 | else \ | |
137 | (test ! -d $$tmpdir || rm $$tmpdir); \ | |
138 | echo "creating package in tmp dir $$tmpdir" ; \ | |
139 | mkdir -p $$tmpdir && \ | |
140 | (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \ | |
141 | cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \ | |
142 | cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \ | |
143 | (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \ | |
144 | echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \ | |
145 | fi | |
146 | ||
147 | clean-local: | |
148 | (test ! -d SampleLibPkg || rm -rf SampleLibPkg) | |
149 | ||
7233bc62 | 150 | svn-update: |
151 | @cd $(top_srcdir) ;\ | |
152 | revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\ | |
153 | last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\ | |
154 | if test "x$$revision" != "x" && test $$last -gt $$revision; then \ | |
155 | echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \ | |
156 | exit -1; \ | |
157 | fi | |
158 | ||
159 | .revision: svn-update | |
160 | @cd $(top_srcdir) ;\ | |
161 | svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@ | |
b521659f | 162 | # |
163 | # EOF | |
164 | # |