test lib module

This commit is contained in:
jlamothe 2023-11-02 19:47:38 +00:00
parent 088e58ef11
commit 9282ff7194
4 changed files with 17 additions and 7 deletions

2
mkfile
View File

@ -3,6 +3,8 @@
qfmt: main.$O lib.$O qfmt: main.$O lib.$O
$LD $LDFLAGS -o qfmt main.$O lib.$O $LD $LDFLAGS -o qfmt main.$O lib.$O
test: qfmt
TEST=test TEST=test
</sys/src/cmd/mktest </sys/src/cmd/mktest

10
test/lib.c Normal file
View File

@ -0,0 +1,10 @@
#include <u.h>
#include <libc.h>
void
main()
{
exits(0);
}
//jl

View File

@ -1,6 +1,10 @@
</$objtype/mkfile </$objtype/mkfile
TEST=qfmt $O.%: ../%.$O
%.$O: ../%.h
TEST=lib
</sys/src/cmd/mktest </sys/src/cmd/mktest

View File

@ -1,6 +0,0 @@
#!/bin/rc
cd ..
mk qfmt
#jl