]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/SampleLib/Makefile.am
added compile info message for loaded component libraries
[u/mrichter/AliRoot.git] / HLT / SampleLib / Makefile.am
index 5ef7f7ab7dd91f39bad6506aa2118c54694134e3..cc20ff8b823a28c6bc5fc93c7070b75d27c44cd7 100644 (file)
@@ -74,11 +74,15 @@ libAliHLTSample_la_LDFLAGS  = -L@ROOTLIBDIR@ \
                                  @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)
 
 ###############################################################################
 #
@@ -107,3 +111,10 @@ $(DICTDEF): Makefile.am $(PKGDEF)
        @$(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;}' >> $@