xref: /plan9/sys/src/ape/lib/fmt/mkfile (revision 781103c4074deb8af160e8a0da2742ba6b29dc2b)
1APE=/sys/src/ape
2<$APE/config
3
4LIB=/$objtype/lib/ape/libfmt.a
5
6NUM=\
7	charstod.$O\
8	pow10.$O\
9
10OFILES=\
11	dofmt.$O\
12	errfmt.$O\
13	fltfmt.$O\
14	fmt.$O\
15	fmtfd.$O\
16	fmtfdflush.$O\
17	fmtlock.$O\
18	fmtprint.$O\
19	fmtquote.$O\
20	fmtrune.$O\
21	fmtstr.$O\
22	fmtvprint.$O\
23	fprint.$O\
24	nan64.$O\
25	print.$O\
26	runefmtstr.$O\
27	runeseprint.$O\
28	runesmprint.$O\
29	runesnprint.$O\
30	runesprint.$O\
31	runevseprint.$O\
32	runevsmprint.$O\
33	runevsnprint.$O\
34	seprint.$O\
35	smprint.$O\
36	snprint.$O\
37	sprint.$O\
38	strtod.$O\
39	vfprint.$O\
40	vseprint.$O\
41	vsmprint.$O\
42	vsnprint.$O\
43	werrstr.$O\
44	$NUM\
45
46HFILES=\
47	fmtdef.h\
48	/sys/include/ape/fmt.h\
49
50</sys/src/cmd/mksyslib
51
52$NAN.$O: nan.h
53strtod.$O: nan.h
54
55test: $LIB test.$O
56	$CC -o test test.$O $LIB -L$PLAN9/lib -lutf
57
58
59CFLAGS=$CFLAGS -c -D_POSIX_SOURCE -D_PLAN9_SOURCE -D_BSD_EXTENSION
60