aboutsummaryrefslogtreecommitdiff
path: root/unix/make/Makefile.bio
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-01 19:36:29 +0000
committerrsc <devnull@localhost>2004-03-01 19:36:29 +0000
commitaa738614530c1525b2337a3812d238b9776d51f0 (patch)
tree0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/make/Makefile.bio
parent63dd44c8ca13354de84c4da659454526ec6750db (diff)
downloadplan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/make/Makefile.bio')
-rw-r--r--unix/make/Makefile.bio38
1 files changed, 38 insertions, 0 deletions
diff --git a/unix/make/Makefile.bio b/unix/make/Makefile.bio
new file mode 100644
index 00000000..c27b7417
--- /dev/null
+++ b/unix/make/Makefile.bio
@@ -0,0 +1,38 @@
+LIB=libbio.a
+VERSION=2.0
+PORTPLACE=devel/libbio
+NAME=libbio
+
+OFILES=\
+ bbuffered.$O\
+ bfildes.$O\
+ bflush.$O\
+ bfmt.$O\
+ bgetc.$O\
+ bgetd.$O\
+ bgetrune.$O\
+ binit.$O\
+ boffset.$O\
+ bprint.$O\
+ bputc.$O\
+ bputrune.$O\
+ brdline.$O\
+ brdstr.$O\
+ bread.$O\
+ bseek.$O\
+ bwrite.$O\
+
+HFILES=\
+ bio.h\
+
+all: $(LIB)
+
+install: $(LIB)
+ test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
+ install -m 0644 bio.3 $(PREFIX)/man/man3/bio.3
+ install -m 0644 bio.h $(PREFIX)/include
+ install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
+
+bcat: bcat.$O $(LIB)
+ $(CC) -o bcat bcat.$O $(LIB) -L/usr/local/lib -lfmt -lutf
+