diff options
author | rsc <devnull@localhost> | 2004-03-01 19:36:29 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-01 19:36:29 +0000 |
commit | aa738614530c1525b2337a3812d238b9776d51f0 (patch) | |
tree | 0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/make/Makefile.fmt | |
parent | 63dd44c8ca13354de84c4da659454526ec6750db (diff) | |
download | plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2 plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip |
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/make/Makefile.fmt')
-rw-r--r-- | unix/make/Makefile.fmt | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/unix/make/Makefile.fmt b/unix/make/Makefile.fmt new file mode 100644 index 00000000..85e9455f --- /dev/null +++ b/unix/make/Makefile.fmt @@ -0,0 +1,64 @@ +LIB=libfmt.a +VERSION=2.0 +PORTPLACE=devel/libfmt +NAME=libfmt + +NUM=\ + charstod.$O\ + pow10.$O\ + +OFILES=\ + dofmt.$O\ + dorfmt.$O\ + errfmt.$O\ + fltfmt.$O\ + fmt.$O\ + fmtfd.$O\ + fmtfdflush.$O\ + fmtlock.$O\ + fmtprint.$O\ + fmtquote.$O\ + fmtrune.$O\ + fmtstr.$O\ + fmtvprint.$O\ + fprint.$O\ + print.$O\ + runefmtstr.$O\ + runeseprint.$O\ + runesmprint.$O\ + runesnprint.$O\ + runesprint.$O\ + runevseprint.$O\ + runevsmprint.$O\ + runevsnprint.$O\ + seprint.$O\ + smprint.$O\ + snprint.$O\ + sprint.$O\ + strtod.$O\ + vfprint.$O\ + vseprint.$O\ + vsmprint.$O\ + vsnprint.$O\ + $(NUM)\ + $(NAN)\ + +HFILES=\ + fmtdef.h\ + fmt.h\ + +all: $(LIB) + +install: $(LIB) + test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3 + install -m 0644 print.3 $(PREFIX)/man/man3/print.3 + install -m 0644 fmtinstall.3 $(PREFIX)/man/man3/fmtinstall.3 + install -m 0644 fmt.h $(PREFIX)/include/fmt.h + install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB) + +$(NAN).$O: nan.h +strtod.$O: nan.h + +test: $(LIB) test.$O + $(CC) -o test test.$O $(LIB) -L$(PREFIX)/lib -lutf + |