Fix from rev. 33763
[u/mrichter/AliRoot.git] / LHAPDF / liblhapdf.pkg
index 75f94e0..3cc7685 100644 (file)
@@ -1,79 +1,66 @@
-SRCS:=AliStructFuncType.cxx
+SRCS:=AliStructFuncType.cxx lhapdf5.5.1/src/version.cxx  lhapdf5.5.1/src/getdatapath.cxx
 
-HDRS= $(SRCS:.cxx=.h) 
-DHDR:=LHAPDFLinkDef.h
+HDRS:= $(SRCS:.cxx=.h) 
+HDRS:= $(filter-out lhapdf5.5.1/src/version.h,$(HDRS)) 
+HDRS:= $(filter-out lhapdf5.5.1/src/getdatapath.h,$(HDRS)) 
 
-EINCLUDE:= LHAPDF/lhapdf5.2.2
+DHDR:=lhapdfLinkDef.h
 
-FSRCS:= \
-lhapdf5.2.2/alphas.f \
-lhapdf5.2.2/description.f \
-lhapdf5.2.2/eks98.f \
-lhapdf5.2.2/eksarp.f \
-lhapdf5.2.2/EVLCTEQ.f \
-lhapdf5.2.2/evolution.f \
-lhapdf5.2.2/inputPDF.f \
-lhapdf5.2.2/LHpdflib.f \
-lhapdf5.2.2/parameter.f \
-lhapdf5.2.2/QCDNUM.f \
-lhapdf5.2.2/QCDparams.f \
-lhapdf5.2.2/Sqcdnum.f \
-lhapdf5.2.2/wrapa02.f \
-lhapdf5.2.2/wrapa02m.f \
-lhapdf5.2.2/wrapabfkwpi.f \
-lhapdf5.2.2/wrapacfgpg.f \
-lhapdf5.2.2/wrapcteq5.f \
-lhapdf5.2.2/wrapcteq6.f \
-lhapdf5.2.2/wrapdgg.f \
-lhapdf5.2.2/wrapdog.f \
-lhapdf5.2.2/wrapEVLCTEQ.f \
-lhapdf5.2.2/wrapevolve.f \
-lhapdf5.2.2/wrapgrv.f \
-lhapdf5.2.2/wrapgrvg.f \
-lhapdf5.2.2/wrapgrvpi.f \
-lhapdf5.2.2/wrapgsg96.f \
-lhapdf5.2.2/wrapgsg.f \
-lhapdf5.2.2/wraph1.f \
-lhapdf5.2.2/wraplacg.f \
-lhapdf5.2.2/wrapmrst98.f \
-lhapdf5.2.2/wrapmrst.f \
-lhapdf5.2.2/wrapowpi.f \
-lhapdf5.2.2/wrapQCDNUM3.f \
-lhapdf5.2.2/wrapQCDNUM4.f \
-lhapdf5.2.2/wrapQCDNUM.f \
-lhapdf5.2.2/wrapsasg.f \
-lhapdf5.2.2/wrapsmrspi.f \
-lhapdf5.2.2/wrapwhitg.f \
-lhapdf5.2.2/wrapzeus.f \
-lhapdf5.2.2/commons.f
-
-
-
-EXPORT:=AliStructFuncType.h
-
-
-ifeq (,$(findstring macosx,$(ALICE_TARGET)))
-
-FSRCS += lhapdf5.2.2/lhaglue.f
+EINCLUDE:= LHAPDF/lhapdf5.5.1 LHAPDF/lhapdf5.5.1/include
 
+FSRCS:= \
+lhapdf5.5.1/src/alphas.f \
+lhapdf5.5.1/src/commoninit.f \
+lhapdf5.5.1/src/description.f \
+lhapdf5.5.1/src/eks98.f \
+lhapdf5.5.1/src/eksarp.f \
+lhapdf5.5.1/src/eps08.f \
+lhapdf5.5.1/src/EVLCTEQ.f \
+lhapdf5.5.1/src/evolution.f \
+lhapdf5.5.1/src/inputPDF.f \
+lhapdf5.5.1/src/LHpdflib.f \
+lhapdf5.5.1/src/parameter.f \
+lhapdf5.5.1/src/QCDNUM.f \
+lhapdf5.5.1/src/QCDparams.f \
+lhapdf5.5.1/src/Sqcdnum.f \
+lhapdf5.5.1/src/wrapa02.f \
+lhapdf5.5.1/src/wrapa02m.f \
+lhapdf5.5.1/src/wrapabfkwpi.f \
+lhapdf5.5.1/src/wrapacfgpg.f \
+lhapdf5.5.1/src/wrapcteq5.f \
+lhapdf5.5.1/src/wrapcteq6.f \
+lhapdf5.5.1/src/wrapcteq6lg.f \
+lhapdf5.5.1/src/wrapdgg.f \
+lhapdf5.5.1/src/wrapdog.f \
+lhapdf5.5.1/src/wrapEVLCTEQ.f \
+lhapdf5.5.1/src/wrapevolve.f \
+lhapdf5.5.1/src/wrapgrv.f \
+lhapdf5.5.1/src/wrapgrvg.f \
+lhapdf5.5.1/src/wrapgrvpi.f \
+lhapdf5.5.1/src/wrapgsg96.f \
+lhapdf5.5.1/src/wrapgsg.f \
+lhapdf5.5.1/src/wraph1.f \
+lhapdf5.5.1/src/wraplacg.f \
+lhapdf5.5.1/src/wrapowpi.f \
+lhapdf5.5.1/src/wrapQCDNUM3.f \
+lhapdf5.5.1/src/wrapQCDNUM4.f \
+lhapdf5.5.1/src/wrapQCDNUM.f \
+lhapdf5.5.1/src/wrapsasg.f \
+lhapdf5.5.1/src/wrapsmrspi.f \
+lhapdf5.5.1/src/wrapwhitg.f \
+lhapdf5.5.1/src/wrapzeus.f \
+lhapdf5.5.1/src/lhaglue.f\
+lhapdf5.5.1/src/wrapUSER.f
+
+ifeq (solarisCC5,$(ALICE_TARGET))
+PACKFFLAGS = $(FFLAGS) -free
+else 
+ifeq (linuxicc,$(ALICE_TARGET))
+PACKFFLAGS = $(FFLAGS) -nofixed
 else
-
-
-TCSRCS=ctmp/lhapdf5.2.2/lhaglue.c
-
-CSRCS+=$(TCSRCS)
-
-.SECONDARY: $(TCSRCS)
-
-PACKCFLAGS:=$(CFLAGS) -w
-
-LHAPDF/ctmp/%.c: LHAPDF/%.f
-       [ -d $(dir $@) ] || mkdir -p $(dir $@)
-ifeq (macosx,$(ALICE_TARGET))
-       $(F77) -E $(lhapdfINC) $(lhapdfFFLAGS) $< | f2c -E | sed -e 's/___/__/g' > $@
+PACKFFLAGS = $(FFLAGS) -ffree-form
 endif
-ifeq (macosxgcc4,$(ALICE_TARGET))
-       $(F77) -E $(lhapdfINC) $(lhapdfFFLAGS) $< | f2c -E | sed -e 's/\___/__/g' > $@
 endif
+PACKCXXFLAGS = $(CXXFLAGS) -DDEFAULTPREFIXPATH=\"NONE\" -DDEFAULTLHAPATH=\"$(ALICE_ROOT)/LHAPDF/PDFsets\"
+EXPORT:=AliStructFuncType.h
 
-endif