feat(examples): add a hello project with a library and a consumer
Smallest project that exercises the whole pipeline: one static library and one executable that links against it.
This commit is contained in:
4 files changed
+65
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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"
|
||||
}
|
||||
Reference in new issue
Block a user