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