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