forked from royalosyin/fortran-ls-svm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSconstruct
executable file
·57 lines (43 loc) · 1.38 KB
/
Sconstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/python invoke_using_scons
# -*- coding: utf-8 -*-
# This is a build script for use with flssvm.
import sys, os, platform
# version number for this flssvm build:
version = "0.5"
# version number for python, useful on Windows
pyversion = "%d.%d" % (sys.version_info[0],sys.version_info[1])
env = DefaultEnvironment()
#env.BuildDir('build/','src/')
FC='gfortran'
env['FORTRANMODDIRPREFIX']='-J'
env['FORTRANMODDIR']='include/'
env['FORTRANPATH']='include/'
env['F90PATH']='include/'
env['F95PATH']='include/'
env['BuildDir']='include/'
env['TargetDir']='include/'
if ARGUMENTS.get('FC','0') != '0':
FC=ARGUMENTS.get('FC','0')
env['FORTRAN']=FC
env['link']=FC
env['F90']=FC
env['F95']=FC
env['F77']=FC
if FC == 'gfortran':
env['FORTRANMODDIRPREFIX']='-J'
if FC == 'g95':
env['FORTRANMODDIRPREFIX']='-fmod='
if ARGUMENTS.get('CF','0') != '0':
CF=ARGUMENTS.get('CF','0')
env['F95FLAGS']=CF
env['F90FLAGS']=CF
env['FORTRANFLAGS']=CF
src_files = ['src/flssvm_utilities.f90',
'src/flssvm_predict.f90',
'src/flssvm_train.f90',
'src/flssvm_main.f90']
flssvm = env.Program('bin/flssvm',src_files)
#if ARGUMENTS.get('install','0') != ' ':
#print ARGUMENTS.get('install','0')
regression = env.Program('bin/svm_r_datagen','extra/svm_r_datagen.f90')
clasification = env.Program('bin/svm_c_datagen','extra/svm_c_datagen.f90')