diff options
author | Rob Pike <r@golang.org> | 2008-06-12 13:26:16 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-06-12 13:26:16 -0700 |
commit | c348f82e29356fc95dcb6331b4860b2d76fa07aa (patch) | |
tree | f571b5448e5f72870de933c01d9a6dcf04879e85 /src/lib9/Makefile | |
parent | 4732d2a3518bda35334461950464d2dffcd008b2 (diff) | |
download | go-c348f82e29356fc95dcb6331b4860b2d76fa07aa.tar.gz |
import the plan 9 libraries libc (lib9) and libbio into the tree.
remove the dependency on /home/r.
SVN=122482
Diffstat (limited to 'src/lib9/Makefile')
-rw-r--r-- | src/lib9/Makefile | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/src/lib9/Makefile b/src/lib9/Makefile new file mode 100644 index 000000000..12b72f01e --- /dev/null +++ b/src/lib9/Makefile @@ -0,0 +1,126 @@ +# Copyright 2009 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +include ../Make.conf + +LIB=lib9.a + +NUM=\ + charstod.$O\ + pow10.$O\ + +# Could add fmt/errfmt, but we want to pick it up from ./errstr.c instead. +FMTOFILES=\ + dofmt.$O\ + fltfmt.$O\ + fmt.$O\ + fmtfd.$O\ + fmtfdflush.$O\ + fmtlocale.$O\ + fmtlock2.$O\ + fmtnull.$O\ + fmtprint.$O\ + fmtquote.$O\ + fmtrune.$O\ + fmtstr.$O\ + fmtvprint.$O\ + fprint.$O\ + nan64.$O\ + print.$O\ + seprint.$O\ + smprint.$O\ + snprint.$O\ + sprint.$O\ + strtod.$O\ + vfprint.$O\ + vseprint.$O\ + vsmprint.$O\ + vsnprint.$O\ + $(NUM)\ + +UTFOFILES=\ + rune.$O\ + utfecpy.$O\ + utflen.$O\ + utfnlen.$O\ + utfrrune.$O\ + utfrune.$O\ + utfutf.$O\ + runetype.$O\ + +LIB9OFILES=\ + _p9dir.$O\ + _exits.$O\ + argv0.$O\ + atoi.$O\ + await.$O\ + cleanname.$O\ + create.$O\ + dirfstat.$O\ + dirfwstat.$O\ + dirstat.$O\ + dirwstat.$O\ + dup.$O\ + errstr.$O\ + exec.$O\ + execl.$O\ + exitcode.$O\ + exits.$O\ + getenv.$O\ + getfields.$O\ + getuser.$O\ + getwd.$O\ + jmp.$O\ + main.$O\ + nan.$O\ + notify.$O\ + nulldir.$O\ + open.$O\ + pipe.$O\ + readn.$O\ + rfork.$O\ + seek.$O\ + strecpy.$O\ + sysfatal.$O\ + time.$O\ + tokenize.$O\ + +OFILES=\ + $(LIB9OFILES)\ + $(FMTOFILES)\ + $(UTFOFILES)\ + +HFILES=\ + $(GOROOT)/include/u.h\ + $(GOROOT)/include/libc.h\ + +install: $(LIB) + cp $(LIB) $(GOROOT)/lib + +$(LIB): $(OFILES) + ar rsc $(LIB) $(OFILES) + +%.$O: fmt/%.c + $(CC) -c $(CFLAGS) -DPLAN9PORT -Ifmt $< + +%.$O: utf/%.c + $(CC) -c $(CFLAGS) $< + +clean: + rm -f *.$O *.6 6.out $(LIB) + +nuke: clean + rm -f $(GOROOT)/lib/$(LIB) + +#XLIB=$PLAN9/lib/$LIB + +#testfmt: testfmt.$O $XLIB +# $LD -o $target testfmt.$O + +#testfltfmt: testfltfmt.$O $XLIB +# $LD -o $target testfltfmt.$O + +#testprint: testprint.$O $XLIB +# $LD -o $target testprint.$O + |