diff options
Diffstat (limited to 'src/cmd/snarfer')
-rw-r--r-- | src/cmd/snarfer/mkfile | 8 | ||||
-rw-r--r-- | src/cmd/snarfer/nowsys-snarfer.c | 9 | ||||
-rw-r--r-- | src/cmd/snarfer/x11-snarfer.c | 1 |
3 files changed, 15 insertions, 3 deletions
diff --git a/src/cmd/snarfer/mkfile b/src/cmd/snarfer/mkfile index aca345c5..e48f3a4f 100644 --- a/src/cmd/snarfer/mkfile +++ b/src/cmd/snarfer/mkfile @@ -1,9 +1,11 @@ <$PLAN9/src/mkhdr +<|sh ../devdraw/mkwsysrules.sh + TARG=snarfer -OFILES= +OFILES=$WSYSTYPE-snarfer.$O HFILES= -<|sh ../devdraw/mkwsysrules.sh -<$PLAN9/src/mkmany +<$PLAN9/src/mkone +x11-snarfer.$O: snarfer.c diff --git a/src/cmd/snarfer/nowsys-snarfer.c b/src/cmd/snarfer/nowsys-snarfer.c new file mode 100644 index 00000000..06e59d84 --- /dev/null +++ b/src/cmd/snarfer/nowsys-snarfer.c @@ -0,0 +1,9 @@ +#include <u.h> +#include <libc.h> + +void +main(void) +{ + fprint(2, "no window system\n"); + exits("nowsys"); +} diff --git a/src/cmd/snarfer/x11-snarfer.c b/src/cmd/snarfer/x11-snarfer.c new file mode 100644 index 00000000..613a8cc5 --- /dev/null +++ b/src/cmd/snarfer/x11-snarfer.c @@ -0,0 +1 @@ +#include "snarfer.c" |