2 # Makefile for the Alice HLT ZDC library
6 ###################################################################
10 MODDIR = $(top_srcdir)
11 PKGDEF = $(MODDIR)/libAliHLTZDC.pkg
12 include $(top_srcdir)/libAliHLTZDC.pkg
14 ###################################################################
17 lib_LTLIBRARIES = libAliHLTZDC.la
19 # version info for the library
20 LIBRARY_VERSION = '0:0:0'
23 # The source files are specified in libAliHLTZDC.pkg
24 libAliHLTZDC_la_SOURCES = $(MODULE_SRCS)
27 # The header files are specified in libAliHLTZDC.pkg
28 noinst_HEADERS = $(MODULE_HDRS)
30 ###################################################################
32 # compilation flags of the library
33 AM_CPPFLAGS = -DMODULE=$(MODULE) \
37 $(foreach i, $(EINCLUDE), \
38 $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
39 $(foreach i, $(EINCLUDE), \
40 $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
42 # linking flags of the library# linker flags
43 #libAliHLTZDC_la_LIBADD = $(top_builddir)/BASE/util/libAliHLTUtil.la
44 libAliHLTZDC_la_LDFLAGS = -L@ROOTLIBDIR@ \
49 -version-info $(LIBRARY_VERSION)
51 ###############################################################################
53 # automatic generation of data and time of library build
54 COMPILE_INFO = AliHLTZDCCompileInfo.cxx
56 # set the file name for the generated root dictionary
57 DICTCPP = AliHLTZDC-DICT.cxx
58 nodist_libAliHLTZDC_la_SOURCES = $(COMPILE_INFO) \
61 CLEANFILES = $(COMPILE_INFO)
63 ###############################################################################
65 include $(top_srcdir)/make.dict
67 ###################################################################
69 $(COMPILE_INFO): $(libAliHLTZDC_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
70 @echo '//automatically generated compilation info' > $@
71 @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
72 @echo '//add changes in Makefile.am' >> $@
73 @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
74 @echo '{date=__DATE__; time=__TIME__; return;}' >> $@