From 58611a1bbf601c7f38c76421d3a3ece58bc56efb Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 18:16:24 +0000 Subject: make -> mk change %u from verb to flag. --- src/libfmt/Makefile | 57 ----------------------------------------------------- src/libfmt/fmt.c | 2 +- src/libfmt/mkfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 src/libfmt/Makefile create mode 100644 src/libfmt/mkfile (limited to 'src') diff --git a/src/libfmt/Makefile b/src/libfmt/Makefile deleted file mode 100644 index 9e48a596..00000000 --- a/src/libfmt/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -PLAN9=../.. -include $(PLAN9)/src/Makehdr - -LIB=libfmt.a - -NUM=\ - charstod.$O\ - pow10.$O\ - -# Could add errfmt, but we want to pick it up from lib9 instead. -OFILES=\ - dofmt.$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\ - $(PLAN9)/include/fmt.h\ - -include $(PLAN9)/src/Makesyslib - -$(NAN).$O: nan.h -strtod.$O: nan.h - -test: $(LIB) test.$O - $(CC) -o test test.$O $(LIB) -L$(PLAN9)/lib -lutf - diff --git a/src/libfmt/fmt.c b/src/libfmt/fmt.c index 06f6c950..976bf7ca 100644 --- a/src/libfmt/fmt.c +++ b/src/libfmt/fmt.c @@ -64,7 +64,7 @@ static Convfmt knownfmt[] = { 'p', __ifmt, 'r', __errfmt, 's', __strfmt, - 'u', __ifmt, /* in Plan 9, __flagfmt */ + 'u', __flagfmt, /* in Unix, __ifmt */ 'x', __ifmt, 0, nil, }; diff --git a/src/libfmt/mkfile b/src/libfmt/mkfile new file mode 100644 index 00000000..4a03a338 --- /dev/null +++ b/src/libfmt/mkfile @@ -0,0 +1,57 @@ +PLAN9=../.. +<$PLAN9/src/mkhdr + +LIB=libfmt.a + +NUM=\ + charstod.$O\ + pow10.$O\ + +# Could add errfmt, but we want to pick it up from lib9 instead. +OFILES=\ + dofmt.$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\ + $PLAN9/include/fmt.h\ + +<$PLAN9/src/mksyslib + +$NAN.$O: nan.h +strtod.$O: nan.h + +test: $LIB test.$O + $CC -o test test.$O $LIB -L$PLAN9/lib -lutf + -- cgit v1.2.3