X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FlibAliHLTSample.pkg;h=6659c3835de04b069bf07666f5e118295bfbc53c;hb=58f0fd4790b4cc3ca26824f47420c44116e87b22;hp=8aa18282636b619e440a9f162fa2c88e46cf25ab;hpb=49f44941ac3891e7f375a8d6b35140326962c367;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/libAliHLTSample.pkg b/HLT/libAliHLTSample.pkg index 8aa18282636..6659c3835de 100644 --- a/HLT/libAliHLTSample.pkg +++ b/HLT/libAliHLTSample.pkg @@ -1,24 +1,26 @@ #-*- Mode: Makefile -*- -# $Id: - -include HLT/hlt.conf +# $Id$ # This files defines the source and header files for the # libAliHLTSample library and additional flags for the compilation # and linking process. For further information refer to the # README. -# library sources -MODULE_SRCS= AliHLTSampleComponent1.cxx \ - AliHLTSampleComponent2.cxx \ - AliHLTDummyComponent.cxx - # class header files, the link definition for the root dictionary # will be created from the names of the header files -CLASS_HDRS:= AliHLTSampleComponent1.h \ +CLASS_HDRS:= AliHLTSampleComponent1.h \ AliHLTSampleComponent2.h \ + AliHLTSampleCalibrationComponent.h \ + AliHLTSampleESDAnalysisComponent.h \ + AliHLTSampleMonitoringComponent.h \ + AliHLTAgentSample.h \ + AliHLTSamplePreprocessor.h \ + AliHLTSampleOfflineSinkComponent.h \ AliHLTDummyComponent.h +# library sources, generated from the class headers +MODULE_SRCS= $(CLASS_HDRS:.h=.cxx) + # library headers # in most cases you might have already added all the header files to # the CLASS_HDRS variable. So we just use the content of this. You @@ -26,31 +28,34 @@ CLASS_HDRS:= AliHLTSampleComponent1.h \ # ROOT dictionary support MODULE_HDRS:= $(CLASS_HDRS) -# The autotools-based stand-alone built system creates the LinkDef -# file required by the ROOT dictionary generation for the all header -# files specified in CLASS_HDRS. -# When creating a ROOT dictionary in AliRoot you must eventually -# provide a *LinkDef.h file which tells rootcint what to do with the -# classes. The *LinkDef.h must be added to DHDR in that case. -# There might be an extension also in ALIROOT which allows to -# generate the LinkDef automatically. -DHDR:= -CINTAUTOLINK:= - -# extra defines and flags for the AliRoot build system. NOTE: include -# directories and linking flags/options must be specified in -# Makefile.am (stand-alone build system) and here (AliRoot). -EDEFINE := ${HLTDEFS} -PACKCXXFLAGS := ${HLTCXXFLAGS} -PACKCFLAGS := ${HLTCLFAGS} -PACKDCXXFLAGS:= ${HLTDCXXFLAGS} +# The LinkDef file required by the ROOT dictionary generation can be +# generated automatically. For the all header files specified in +# CLASS_HDRS an entry will be generated +# pragma link C++ class +; +# +# If the default behavior is not enough, you can provide a custom +# *LinkDef.h to the MODULE_DHDR variable. Leave MODULE_DHDR empty to +# enable automatic generation. +MODULE_DHDR:= -EINCLUDE := HLT/BASE +EINCLUDE := HLT/BASE HLT/shuttle HLT/SampleLib STEER + +LIBRARY_DEP := -lHLTbase -lCDB -lSTEERBase ############################################################################### # # do not change anything below this line # +include $(MODDIR)/hlt.conf + SRCS:=$(patsubst %,SampleLib/%,$(MODULE_SRCS)) CINTHDRS:=$(patsubst %,SampleLib/%,$(CLASS_HDRS)) HDRS:=$(patsubst %,SampleLib/%,$(MODULE_HDRS)) +DHDR:=$(patsubst %,SampleLib/%,$(MODULE_DHDR)) +CINTAUTOLINK:= $(shell test "x$(MODULE_DHDR)" = "x" && echo 1) + +EDEFINE := ${HLTDEFS} +PACKCXXFLAGS := $(filter-out -ansi,$(filter-out -pedantic-errors, $(CXXFLAGS))) +PACKCFLAGS := $(filter-out -ansi, $(filter-out -pedantic-errors, $(CFLAGS))) +PACKDCXXFLAGS:= $(filter-out -pedantic-errors, $(CXXFLAGS)) +PACKSOFLAGS := $(HLTSOFLAGS)