aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/lp/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-31 02:18:29 +0000
committerrsc <devnull@localhost>2005-08-31 02:18:29 +0000
commit262ecfed9f7e39811f34517d82e848b8ec20f863 (patch)
treeb9947441be3e7b6a3d7c5e944854591e1b027bfb /src/cmd/lp/mkfile
parent2863ba101f0c9fec34756948e263cd534a3634ee (diff)
downloadplan9port-262ecfed9f7e39811f34517d82e848b8ec20f863.tar.gz
plan9port-262ecfed9f7e39811f34517d82e848b8ec20f863.tar.bz2
plan9port-262ecfed9f7e39811f34517d82e848b8ec20f863.zip
Initial lp.
Diffstat (limited to 'src/cmd/lp/mkfile')
-rw-r--r--src/cmd/lp/mkfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cmd/lp/mkfile b/src/cmd/lp/mkfile
new file mode 100644
index 00000000..7400e8d5
--- /dev/null
+++ b/src/cmd/lp/mkfile
@@ -0,0 +1,30 @@
+<$PLAN9/src/mkhdr
+
+TARG=\
+ lpdsend \
+ lpsend \
+ LOCK \
+ lpdaemon
+
+OFILES=
+
+HFILES=
+
+BIN=$PLAN9/lp/bin
+<$PLAN9/src/mkmany
+CFLAGS=-Dplan9
+
+install:V: $PLAN9/lp/bin/lpsend.rc $PLAN9/bin/lp
+
+$PLAN9/lp/bin/lpsend.rc: lpsend.rc
+ cp $prereq $target
+
+lpdsend.$O: lpdsend.c
+ $CC $CFLAGS -D_POSIX_SOURCE -D_BSD_EXTENSION -D_NET_EXTENSION -DPLAN9 -'DMAXHOSTNAMELEN=64' lpdsend.c
+
+lpdaemon.$O: lpdaemon.c
+ $CC $CFLAGS -D_POSIX_SOURCE -DPLAN9 lpdaemon.c
+
+$PLAN9/bin/lp: lp.rc
+ cp $prereq $target
+