]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/shuttle/Makefile.am
moved HLT preprocessor to libHLTshuttle; added HLT module preprocessor framework...
[u/mrichter/AliRoot.git] / HLT / shuttle / Makefile.am
1 # $Id: Makefile.am 21852 2007-10-29 18:45:22Z richterm $
2 # Makefile template for the Alice HLT shuttle
3
4 MODULE                          = HLTshuttle
5
6 SUBDIRS                         = 
7
8 EXTRA_DIST                      = 
9
10 # library definition
11 lib_LTLIBRARIES                 =  libHLTshuttle.la
12
13 # version info for the library
14 LIBRARY_VERSION                 = "$(LIBHLTSHUTTLE_VERSION):0:0"
15
16 # MODDIR is set by the AliRoot build system and denotes the topdir
17 # of the module, we must set it since the package definition libHLTshuttle.pkg
18 # includes another common configuration file
19 MODDIR                          = $(top_srcdir)
20 PKGDEF                          = $(MODDIR)/libHLTshuttle.pkg
21 include $(top_srcdir)/libHLTshuttle.pkg
22
23 # compiler flags
24 AM_CPPFLAGS                     = -DMODULE=$(MODULE) \
25                                   $(PACKCXXFLAGS) \
26                                   $(foreach i, $(EINCLUDE),  \
27                                         $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
28                                   $(foreach i, $(EINCLUDE),  \
29                                         $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
30 # library sources
31 libHLTshuttle_la_SOURCES        = $(MODULE_SRCS)
32
33 # library headers
34 pkginclude_HEADERS              = $(MODULE_HDRS)
35
36 # linker flags
37 libHLTshuttle_la_LDFLAGS        = -L@ROOTLIBDIR@ \
38                                   @ROOTLIBS@ \
39                                   @ALIROOT_LDFLAGS@ \
40                                   @ALIROOT_LIBS@ \
41                                   -version-info $(LIBRARY_VERSION)
42
43 # automatic generation of data and time of library build
44 COMPILE_INFO                    =  HLTshuttleCompileInfo.cxx
45
46 # set the file name for the generated root dictionary
47 DICTCPP                         =  HLTshuttle-DICT.cxx
48 nodist_libHLTshuttle_la_SOURCES =  $(COMPILE_INFO) \
49                                    $(DICTCPP)
50
51 CLEANFILES                      =  $(COMPILE_INFO)
52
53 include $(top_srcdir)/make.dict
54
55 $(COMPILE_INFO): $(libHLTshuttle_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
56         @echo '//automatically generated compilation info' > $@
57         @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
58         @echo '//add changes in Makefile.am' >> $@
59         @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
60         @echo '{date=__DATE__; time=__TIME__; return;}' >> $@