]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- added the PHOS library to the autotools configuration
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Oct 2006 22:59:18 +0000 (22:59 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Oct 2006 22:59:18 +0000 (22:59 +0000)
- minor corrections in TPCLib/OnlineDisplay/Makefile.am to get distcheck target working

HLT/ChangeLog
HLT/Makefile.am
HLT/PHOS/Makefile.am [new file with mode: 0644]
HLT/README
HLT/TPCLib/OnlineDisplay/Makefile.am
HLT/configure.ac

index 9b804df3ebe3eae2dfef6e808cd57a94a391e0dc..27aef1ed24bac5d34e5c35f6afb2d7146b8e87e3 100644 (file)
@@ -1,3 +1,4 @@
+2006-10-12 added the PHOS library to the package
 2006-10-05 extensions in AliHLTTPCDisplay
        - handling of new include directory structure of the HOMER header files
        - default geometry file introduced
index 5fb0a7e5ac3b696dab89e654077c8d89734b59e3..ec77a090f78a6e70a27e6f0b32afd0f213c153e0 100644 (file)
@@ -10,9 +10,14 @@ if EN_HLT_TPC
 TPC_DIR=TPCLib 
 endif
 
+if EN_HLT_PHOS
+PHOS_DIR=PHOS
+endif
+
 SUBDIRS                = BASE \
                          $(SAMPLE_DIR) \
                          $(TPC_DIR) \
+                         $(PHOS_DIR) \
                          doc
 
 DIST_SUBDIRS           = $(SUBDIRS)
diff --git a/HLT/PHOS/Makefile.am b/HLT/PHOS/Makefile.am
new file mode 100644 (file)
index 0000000..3adf99e
--- /dev/null
@@ -0,0 +1,55 @@
+# $Id$
+# Makefile template for the Alice HLT PHOS library
+
+MODULE                                 = AliHLTPHOS
+
+AM_CPPFLAGS                    = @ALIROOT_CPPFLAGS@ \
+                                 -I$(top_srcdir)/BASE
+
+# library definition
+lib_LTLIBRARIES                        =  libAliHLTPHOS.la
+
+# library sources
+libAliHLTPHOS_la_SOURCES       = AliPHOSPulseGenerator.cxx \
+                                 AliPHOSFitter.cxx
+
+# class header files, the link definition for the root dictionary
+# will be created from the names of the header files
+CLASS_HDRS                     = AliPHOSPulseGenerator.h \
+                                 AliPHOSFitter.h
+
+pkginclude_HEADERS             = $(CLASS_HDRS)
+
+# version info and linking flags for the library
+libAliHLTPHOS_la_LDFLAGS       = -L@ROOTLIBDIR@ \
+                                 @ROOTLIBS@ \
+                                 @ALIROOT_LDFLAGS@ \
+                                 @ALIROOT_LIBS@ \
+                                 -version-info 0:0:0
+
+# automatic generation of data and time of library build
+COMPILE_INFO                   =  AliHLTPHOSCompileInfo.cxx
+
+# set the file name for the generated root dictionary
+DICTCPP                                =  AliHLTPHOS-DICT.cxx
+# add additional include files which are necessary for the compilation of the 
+# dictionary files and which are not part of the CLASS_HDRS
+DICTINCLUDE                    = 
+
+nodist_libAliHLTPHOS_la_SOURCES = $(COMPILE_INFO) \
+                                 $(DICTCPP)
+
+CLEANFILES                     = $(COMPILE_INFO)
+
+include $(top_srcdir)/make.dict
+
+$(COMPILE_INFO): $(libAliHLTPHOS_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 '#include <iostream>' >> $@
+       @echo 'void $(MODULE)CompileInfo( char*& date, char*& time)' >> $@
+       @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
+       @echo >> $@
+       @echo 'void __init()'>> $@
+       @echo '{std::cout << "lib$(MODULE) build on " << __DATE__ << " - " << __TIME__ << std::endl;}'>> $@
index c1364a65502b18911cef3d6c093a1c3902f9b083..8336e4f0362fb489c69db4b4e5b9fe9985777e65 100644 (file)
@@ -8,8 +8,20 @@ Foundation. Also see files AUTHORS and THANKS.
 This packages is maintained by Matthias.Richter@ift.uib.no
 Comments, bug reports, suggestions welcome! 
 
-Overview
-========
+TOC
+===
+1. Overview
+2. Requirements
+3. Setting up a version retrieved from CVS
+4. Modifying a distributed package
+5. Installation
+6. Documentation
+7. Further information
+8. Reporting bugs/Asking for support
+9. Committing to the AliRoot CVS
+
+1. Overview
+===========
 This package provides a compilation of shared libraries of the ALICE
 HLT project and is intended for stand-alone compilation, i.e. not as part 
 of the AliRoot compilation. 
@@ -31,8 +43,8 @@ compilation, but will be part of it.
 The old stand-alone build system is still available. Check the README
 file in the doc folder.
 
-Requirements
-============
+2. Requirements
+===============
 The package needs both ROOT and AliRoot. Both must be set up in the
 usual way (ROOTSYS, ALICE_ROOT, library locations evtl. specified in
 LD_LIBRARY_PATH, ...). Actually, the BASE and SampleLib modules are
@@ -46,8 +58,8 @@ you want to change the Makefiles.
 If your GNU build tools are too old, ask the maintainers for a distributed
 package.  
 
-Setting up a version retrieved from CVS
-=======================================
+3. Setting up a version retrieved from CVS
+==========================================
 Skip this section if you have started from the tar ball.
 
 A version checked out from CVS requires a few steps to set up the Makefiles.
@@ -57,8 +69,8 @@ autoreconf -i -f
 Then continue with the package configuration described in the 'Installation'
 section.
 
-Modifying a distributed package
-===============================
+4. Modifying a distributed package
+==================================
 If you are going the modify a distributed package you might need to re-make 
 the GNU build system by running
  autoreconf -f -i
@@ -69,8 +81,8 @@ you consider them worth to be merged into the project.
 Then continue with the package configuration described in the 'Installation'
 section.
 
-Installation
-============
+5. Installation
+===============
 NOTE: The Makefiles which are in repository are part of the old build system.
 Now, the Makefile.am templates are valid.
 
@@ -103,19 +115,19 @@ top directory:
 ./configure --help | less
 
 
-Documentation
-=============
+6. Documentation
+================
 Documentation is generated from the source code at compile time if 
 doxygen is installed on the machine. From the build directory, open
 doc/html/index.html with a web browser.
 
-Further information
-===================
+7. Further information
+======================
 A wiki with detailed information is set up at
 http://www.kip.uni-heidelberg.de/wiki/HLT
 
-Reporting bugs/Asking for support
-=================================
+8. Reporting bugs/Asking for support
+====================================
 Please include the following information into your request:
 - config.log from your build directory
 - output of the make process. Note: Redirect BOTH the stdout and stderr
@@ -123,3 +135,18 @@ Please include the following information into your request:
     bash: make 2>&1 | tee make.log 
     csh: make |& tee make.log
   The 'tee' command just duplicates the output.
+- history of the commands you are using for compilation
+  history > history.log
+
+9. Committing to the AliRoot CVS
+================================
+For development of HLT analysis code check out a HEAD version from the 
+repository and implement your code. For committing do:
+1. cvs update
+2. correct merging conflicts
+3. compile and test your code again
+4. send the whole HLT module except the build sub-directories to
+   Matthias.Richter@ift.uib.no
+5. you will get a notification when the code is committed, right after that you
+   must either do another cvs update or check out the complete module again in
+   order to have the right CVS information
index 079ccb5987a10927b68218794e9484d7752261d3..6460184ae440307f0e0a693e92f7c7dc02b11151 100644 (file)
@@ -22,7 +22,7 @@ libAliHLTTPCDisplay_la_SOURCES        = AliHLTTPCDisplayMain.cxx \
                                  AliHLTTPCDisplayResiduals.cxx
 
 DEFAULT_GEOMETRY               = alice.geom
-libAliHLTTPCDisplay_la_DATA    = $(DEFAULT_GEOMETRY)
+libAliHLTTPCDisplay_la_DATA    = $(srcdir)/$(DEFAULT_GEOMETRY)
 libAliHLTTPCDisplay_ladir      = $(pkgdatadir)
 AM_CPPFLAGS                    += -DDEFAULT_GEOMETRY=\"$(libAliHLTTPCDisplay_ladir)/$(DEFAULT_GEOMETRY)\"
 
@@ -61,7 +61,8 @@ DICTINCLUDE                   = AliHLTTPCSpacePointData.h \
 nodist_libAliHLTTPCDisplay_la_SOURCES  =  $(COMPILE_INFO) \
                                          $(DICTCPP)
 
-CLEANFILES                     = 
+EXTRA_DIST                     = $(libAliHLTTPCDisplay_la_DATA)
+CLEANFILES                     = $(COMPILE_INFO)
 
 include $(top_srcdir)/make.dict
 
index 6833bb85131043b8695363717eeb9f66ae69efce..0593ee2731ecb8bef5c67d50de8f625af34d32e5 100644 (file)
@@ -320,6 +320,22 @@ fi
 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
 AC_MSG_RESULT([$enable_tpc])
 
+dnl ------------------------------------------------------------------
+AC_MSG_CHECKING([whether to compile phos library])
+AH_TEMPLATE([HLT_PHOS],[hlt phos library])
+AC_ARG_ENABLE(phos,
+  [AC_HELP_STRING([--enable-phos],
+      [compile the phos library ])],
+  [],[enable_phos=yes])
+if test "x$have_aliroot" = "xno" ; then
+   enable_phos="no...requires.AliRoot"
+fi
+if test "x$enable_phos" = "xyes" ; then 
+  AC_DEFINE(HLT_PHOS)
+fi
+AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
+AC_MSG_RESULT([$enable_phos])
+
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to enable HLT logging])
 AH_TEMPLATE([NOLOGGING],[disable hlt logging])
@@ -401,6 +417,7 @@ AC_CONFIG_FILES([Makefile
                 TPCLib/Makefile
                 TPCLib/mapping2array.cxx
                 TPCLib/OnlineDisplay/Makefile
+                PHOS/Makefile
                 doc/Makefile
                 doc/doxygen.conf])