summaryrefslogtreecommitdiff
blob: 349d068cd0bddc8f030cfd21707313e6f52870b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from machine_cfg import *

SConsignFile() # Tell Scons not to write data all over the file system.

Default("camfr")
import os

# Construct build environments.

env = Environment(CPPPATH = include_dirs,
 		  LIBPATH = library_dirs,	          
	          CC   = cc,   CCFLAGS   = flags,
		  CXX  = cxx,  CXXFLAGS  = flags,
	          F77  = f77,  F77FLAGS  = fflags,
		  LINK = link, LINKFLAGS = link_flags,
		  LIBS = libs, SHLIBPREFIX = "", 
		  ENV = {'PATH' : os.environ['PATH']})

env_noopt = env.Copy(CCFLAGS = flags_noopt, CXXFLAGS = flags_noopt)

Export("env", "env_noopt")
SConscript("camfr/SConscript")