|
root / reef.toml
reef.toml TOML 24 lines 762 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[package]
name = "zyginit"
version = "0.2.1"
author = "Chris Tusa <chris.tusa@leafscale.com>"
description = "Init system and service supervisor for Zygaena/Hammerhead"
license = "CDDL-1.0"

[build]
entry = "src/main.reef"
output = "zyginit"
output_dir = "build"
source_dirs = ["src"]
# helpers.c is portable (built on both platforms). contract_linux_stubs.c is
# ONLY for Linux dev builds — on Hammerhead, link with -lcontract instead.
#
# On Linux (dev):
#   clang -c src/helpers.c -o build/helpers.o
#   clang -c src/contract_linux_stubs.c -o build/contract_linux_stubs.o
#   reefc build --obj build/helpers.o --obj build/contract_linux_stubs.o
#
# On Hammerhead:
#   gcc -c src/helpers.c -o build/helpers.o
#   reefc build -l contract --obj build/helpers.o