@ALIROOT_LIBS@ \
-version-info $(LIBRARY_VERSION)
+# automatic generation of data and time of library build
+COMPILE_INFO = AliHLTSampleCompileInfo.cxx
+
# set the file name for the generated root dictionary
DICTCPP = AliHLTSample-DICT.cxx
-nodist_libAliHLTSample_la_SOURCES = $(DICTCPP)
+nodist_libAliHLTSample_la_SOURCES= $(COMPILE_INFO) \
+ $(DICTCPP)
-CLEANFILES =
+CLEANFILES = $(COMPILE_INFO)
###############################################################################
#
@$(foreach i, $(DICTHEADERS), \
echo "#pragma link C++ class `echo $(i) | sed -e "s|.*/||g" -e "s|\.h.*||"`;" >> $@ ;)
@echo '#endif' >> $@
+
+$(COMPILE_INFO): $(libAliHLTSample_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
+ @echo '//automatically generated compilation info' > $@
+ @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
+ @echo '//add changes in Makefile.am' >> $@
+ @echo 'extern "C" void CompileInfo( char*& date, char*& time)' >> $@
+ @echo '{date=__DATE__; time=__TIME__; return;}' >> $@