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:
sneeker committed 2022-06-26 15:32:31 +00:00
1 parent f751ccbde9
commit 776f5315d4
4 files changed
+65

No files matched your search

+19
View File
@@ -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"
}