Smallest project that exercises the whole pipeline: one static library and one executable that links against it.
20 lines
249 B
Plaintext
20 lines
249 B
Plaintext
project hello
|
|
|
|
toolchain {
|
|
cc clang
|
|
cflags -O2 -Wall -Wextra -std=c17
|
|
}
|
|
|
|
lib mathx {
|
|
srcs src/mathx/*.c
|
|
include include
|
|
ldflags -lm
|
|
}
|
|
|
|
bin hello {
|
|
srcs src/main.c
|
|
include include
|
|
use mathx
|
|
define GREETING="meow"
|
|
}
|