loki.build.max_compiler
Functions
  | 
Cleans output from a previous build.  | 
  | 
Compiles given MaxJ kernel and manager, generates the max object file from it and compiles the corresponding SLiC interface.  | 
  | 
Compile .c to .o files.  | 
  | 
Generate .o object file from given max file.  | 
  | 
Compiles maxj-files to java binaries.  | 
  | 
Generate max-file (and matching header) using java binaries.  | 
  | 
Extract the CLASSPATH for Maxeler tools from the environment.  | 
Build the includes for Maxeler tools from the environment.  | 
|
Build the library include dirs for Maxeler tools from the environment.  | 
|
Build the libraries to be linked for Maxeler tools from the environment.  | 
|
  | 
Generates the (absolute) directory name in which output from maxJavaRun is stored.  | 
  | 
Links object files to build an executable or shared library.  | 
- clean_max(build_dir, package=None)
 Cleans output from a previous build.
- compile_all(maxj_src, c_src, build_dir, target, manager, package=None)
 Compiles given MaxJ kernel and manager, generates the max object file from it and compiles the corresponding SLiC interface.
- compile_c(src, build_dir, include_dirs=None)
 Compile .c to .o files.
- Parameters:
 src (str or
pathlib.Path) – Filename of C file or directory (will compilesrc/*.c).build_dir (str or
pathlib.Path) – Build dir where .o files are stored.include_dirs (list, optional) – Optional list of header include paths.
- compile_maxj(src, build_dir)
 Compiles maxj-files to java binaries.
- Parameters:
 src – Path to maxj source files.
target – Root build directory for class files.
- generate_max(manager, maxj_src, max_filename, build_dir, package=None)
 Generate max-file (and matching header) using java binaries.
- Parameters:
 manager – Name of manager to be run.
max_filename – Target filename.
build_dir – Root build directory for max file.
- get_max_includes()
 Build the includes for Maxeler tools from the environment.
- get_max_libdirs()
 Build the library include dirs for Maxeler tools from the environment.
- get_max_libs()
 Build the libraries to be linked for Maxeler tools from the environment.
- link_obj(objs, target, build_dir)
 Links object files to build an executable or shared library.
- Parameters:
 objs – List of object files.
target – Output filename of executable or shared library.