From d0759d3282025f310ecd566c55dcf214b0cbb1b8 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Mon, 23 Jan 2023 18:19:48 +0100 Subject: cook: module reorganization --- test/.build | 13 +++++-------- test/hai.c | 9 ++++----- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/.build b/test/.build index 60aadcb..d313d01 100644 --- a/test/.build +++ b/test/.build @@ -1,8 +1,5 @@ -deps = CDependency(["Mrm", "Xm", "Xt", "libpcre"]) - -mod["link"] = mod.lib("test", mod.cc( - "main.c", - "hai.c", - deps = deps)) - -mod.deps += deps \ No newline at end of file +this.link = this.c.lib("test", + this.c.cc( + "hai.c" + ) +) diff --git a/test/hai.c b/test/hai.c index 25c25ae..7791fbb 100644 --- a/test/hai.c +++ b/test/hai.c @@ -1,7 +1,6 @@ -#include "hai.h" - #include -void hai() { - printf("lol\n"); -} \ No newline at end of file +int main() { + printf("Hello world!\n"); + return 0; +} -- cgit v1.2.3