Commits

Sebastien Binet  committed 49e4468

adding waf support

  • Participants
  • Parent commits cab056c

Comments (0)

Files changed (1)

+#
+
+top = '.'
+out = '__build__'
+
+def options(ctx):
+    ctx.load('compiler_c')
+    ctx.load('compiler_fc')
+    
+def configure(ctx):
+
+    ctx.load('compiler_fc')
+    ctx.env['FCFLAGS'] = [
+        '-Wall', '-W', '-O2',
+        '-fno-automatic', '-finit-local-zero',
+        '-fno-second-underscore',
+        ]
+    ctx.check_fortran()
+    ctx.check_fortran_verbose_flag()
+    ctx.check_fortran_clib()
+    #ctx.check_fortran_mangling()
+    
+def build(ctx):
+
+    ctx.env.append_unique(
+        'LIBPATH',
+        ['/usr/lib/root',
+         '/usr/lib/cernlib',
+         ]
+        )
+
+    ctx(features='fc fcstlib',
+        name ='acerdet',
+        source='acerdet_src/acerdet.f acerdet_src/acerdet_ntup.f',
+        target='acerdet',
+        includes=['.']
+        )