Files
mlpack/fastlib/u/example/build.py
T
2008-01-21 02:24:39 +00:00

26 lines
938 B
Python

librule(
name = "example", # this line can be safely omitted
sources = ["helper.cc"], # files that must be compiled
headers = ["helper.h"], # include files part of the 'lib'
deplibs = ["fastlib:fastlib_int"] # depends on fastlib core
)
binrule(
name = "main", # the executable name
sources = ["main.cc"], # compile main.cc
headers = [], # no extra headers
deplibs = [":example"] # depends on example in this folder
)
# to build:
# 1. make sure have environment variables set up:
# $ source /full/path/to/fastlib/script/fl-env /full/path/to/fastlib
# (you might want to put this in bashrc)
# 2. fl-build main
# - this automatically will assume --mode=check, the default
# - type fl-build --help for help
# 3. ./main
# - to build same target again, type: make
# - to force recompilation, type: make clean