X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PDF%2Flibpdf.pkg;h=521dacef78870ca8db644e9fd00929679b17f359;hp=fe5a78096521581dec5712eab66d071fb568edd2;hb=169674cd2079c46c752099cad6cdb14454e36129;hpb=b934f19438b30bf24a709d2acb6fc5218ccd4e74 diff --git a/PDF/libpdf.pkg b/PDF/libpdf.pkg index fe5a7809652..521dacef788 100644 --- a/PDF/libpdf.pkg +++ b/PDF/libpdf.pkg @@ -10,7 +10,6 @@ spdf/afgin2.F \ spdf/afgint.F \ spdf/afpolin.F \ spdf/afratin.F \ -spdf/alphas2.F \ spdf/augetfv.F \ spdf/aurgam.F \ spdf/aurpi1.F \ @@ -145,8 +144,6 @@ spdf/mrseb.F \ spdf/mrsebp.F \ spdf/newdo1.F \ spdf/pdf_beta.F \ -spdf/pdfset.F \ -spdf/pdfsta.F \ spdf/pdfvers.F \ spdf/pdxmt.F \ spdf/pdzxmt.F \ @@ -369,8 +366,6 @@ spdf/strucb.F \ spdf/struce.F \ spdf/strucor.F \ spdf/structf.F \ -spdf/structm.F \ -spdf/structp.F \ spdf/v3.F \ spdf/valdis.F \ spdf/wate32.F \ @@ -388,8 +383,46 @@ spdf/whit6g.F \ spdf/whit6q.F \ npdf/eks98.F \ npdf/eksarp.F \ -npdf/sfeks98.F \ -npdf/structa.F +npdf/sfeks98.F + +ifeq (,$(findstring macosx,$(ALICE_TARGET))) + +FSRCS+=npdf/structa.F \ +spdf/alphas2.F \ +spdf/pdfset.F \ +spdf/pdfsta.F \ +spdf/structm.F \ +spdf/structp.F + +else + +FSRCS+=commons.F + +TCSRCS=ctmp/npdf/structa.c ctmp/spdf/alphas2.c ctmp/spdf/pdfset.c ctmp/spdf/pdfsta.c \ +ctmp/spdf/structm.c ctmp/spdf/structp.c + +CSRCS+=$(TCSRCS) + +.SECONDARY: $(TCSRCS) + +PACKCFLAGS:=$(CFLAGS) -w + +PDF/ctmp/%.c: PDF/%.F + [ -d $(dir $@) ] || mkdir -p $(dir $@) +ifeq (macosx,$(ALICE_TARGET)) + $(F77) -E $(pdfINC) $(pdfFFLAGS) $< | f2c -E | sed -e 's/\([0-9,a-z]*_[0-9,a-z]*\)__/\1_/g' > $@ +endif +ifeq (macosxgcc4,$(ALICE_TARGET)) + $(F77) -E $(pdfINC) $(pdfFFLAGS) $< | f2c -E | sed -e 's/\([0-9,a-z]*_[0-9,a-z]*\)__/\1_/g' > $@ +endif +ifeq (macosxxlc,$(ALICE_TARGET)) + $(F77) -d $(pdfINC) -c -o /dev/null $(pdfFFLAGS) $< ; \ + tmpf=F`basename $@ .c`.f ; export tmpf ; \ + cat $$tmpf | f2c -E | sed -e 's/\([0-9,a-z]*_[0-9,a-z]*\)__/\1_/g' > $@ ; \ + rm -f $$tmpf +endif + +endif PACKFFLAGS := $(FFLAGS) -IPDF/pdf