diff options
| author | Alejandro W. Sior <aho@sior.be> | 2023-01-23 20:46:04 +0100 |
|---|---|---|
| committer | Alejandro W. Sior <aho@sior.be> | 2023-01-23 20:46:04 +0100 |
| commit | a339cff87fc98859e58df8dbc9f9c15a06ed3530 (patch) | |
| tree | 8a236d7425191c498c6213bca003859b574d9734 /test | |
| parent | 165cba8cf353647bfefaa81e035aedbd30c6c7f2 (diff) | |
Diffstat (limited to 'test')
| -rw-r--r-- | test/.build | 7 | ||||
| -rw-r--r-- | test/hai.c | 5 | ||||
| -rw-r--r-- | test/hai.h | 5 |
3 files changed, 7 insertions, 10 deletions
diff --git a/test/.build b/test/.build index b7c10e0..ded9352 100644 --- a/test/.build +++ b/test/.build @@ -1,5 +1,4 @@ -objects = this.c.cc( - 'hai.c' +this.objects = this.c.cc.gen( + 'hai.c', + include_dirs = this.include_dirs ) - -this.object = this.c.lib('test', objects) @@ -1,6 +1,5 @@ #include <stdio.h> -int main() { - printf("Hello world!\n"); - return 0; +int hai() { + return 42; } @@ -1,4 +1,3 @@ -void hai(); +int hai(); - -// test
\ No newline at end of file +// test |
