1. binet
  2. f-acerdet

Commits

Sebastien Binet  committed 7777e70

harmonize libs

  • Participants
  • Parent commits d138011
  • Branches default

Comments (0)

Files changed (2)

File acerdet_src/acerdet.f

View file
       REAL YPAR
       DIMENSION YPAR(999),LPAR(99)
 
+      print *, '----- acerdet [', mode, ']...'
+
       CALL ACDINF(MODE)
       CALL ACDINI(MODE,LPAR,YPAR)
       CALL ACDCEL(MODE,LPAR,YPAR)

File wscript

View file
     
 def build(ctx):
 
-    ctx.env.append_unique(
-        'LIBPATH',
-        ['/usr/lib/root',
-         '/usr/lib/cernlib',
-         ]
+    # find a few fortran dependencies
+    cernlibs = [
+        'CERNLIB_packlib',
+        'CERNLIB_kernlib',
+        'CERNLIB_mathlib',
+        'CERNLIB_phtools',
+        'CERNLIB_pdflib804',
+        ]
+
+    obj = ctx(
+        features='fc fcshlib',
+        name ='f-acerdet',
+        source='acerdet_src/acerdet.f acerdet_src/acerdet_ntup.f',
+        target='f-acerdet',
+        includes=['.'],
+        use=cernlibs,
         )
-
-    obj = ctx(features='fc fcstlib',
-              name ='acerdet',
-              source='acerdet_src/acerdet.f acerdet_src/acerdet_ntup.f',
-              target='acerdet',
-              includes=['.']
-              )
     obj.env.FCFLAGS = [
         '-Wall', '-W', '-O2',
+        '-g',
+        '-fPIC',
         '-fno-automatic', '-finit-local-zero',
         '-fno-second-underscore',
         ]