blob: 4bbd0f8b57a3cf4a5dd4214962fd60a833e7b5a0 [file] [log] [blame]
rscfd04aac2003-11-23 18:12:54 +00001<$PLAN9/src/mkhdr
2
3LIB=lib9.a
4
rsc5a8e63b2004-02-29 22:10:26 +00005NUM=\
6 charstod.$O\
7 pow10.$O\
8
9# Could add errfmt, but we want to pick it up from lib9 instead.
10FMTOFILES=\
11 dofmt.$O\
rsc5a8e63b2004-02-29 22:10:26 +000012 fltfmt.$O\
13 fmt.$O\
14 fmtfd.$O\
15 fmtfdflush.$O\
rsc4b65e432006-05-22 14:56:13 +000016 fmtlocale.$O\
rsca3add392004-12-26 23:17:03 +000017 fmtlock2.$O\
rsc4b65e432006-05-22 14:56:13 +000018 fmtnull.$O\
rsc5a8e63b2004-02-29 22:10:26 +000019 fmtprint.$O\
20 fmtquote.$O\
21 fmtrune.$O\
22 fmtstr.$O\
23 fmtvprint.$O\
24 fprint.$O\
25 nan64.$O\
26 print.$O\
27 runefmtstr.$O\
28 runeseprint.$O\
29 runesmprint.$O\
30 runesnprint.$O\
31 runesprint.$O\
32 runevseprint.$O\
33 runevsmprint.$O\
34 runevsnprint.$O\
35 seprint.$O\
36 smprint.$O\
37 snprint.$O\
38 sprint.$O\
39 strtod.$O\
40 vfprint.$O\
41 vseprint.$O\
42 vsmprint.$O\
43 vsnprint.$O\
44 $NUM\
45
46UTFOFILES=\
47 rune.$O\
48 runestrcat.$O\
49 runestrchr.$O\
50 runestrcmp.$O\
51 runestrcpy.$O\
52 runestrdup.$O\
53 runestrlen.$O\
54 runestrecpy.$O\
55 runestrncat.$O\
56 runestrncmp.$O\
57 runestrncpy.$O\
58 runestrrchr.$O\
59 runestrstr.$O\
60 runetype.$O\
61 utfecpy.$O\
62 utflen.$O\
63 utfnlen.$O\
64 utfrrune.$O\
65 utfrune.$O\
66 utfutf.$O\
67
rscd6df6c12004-02-29 22:49:59 +000068LIB9OFILES=\
rscfd04aac2003-11-23 18:12:54 +000069 _exits.$O\
70 _p9dialparse.$O\
71 _p9dir.$O\
rscfd04aac2003-11-23 18:12:54 +000072 announce.$O\
73 argv0.$O\
74 atexit.$O\
rsc3a9dccd2004-04-02 22:57:49 +000075 atoi.$O\
76 atol.$O\
77 atoll.$O\
rscfd04aac2003-11-23 18:12:54 +000078 atnotify.$O\
79 await.$O\
80 cistrcmp.$O\
81 cistrncmp.$O\
82 cistrstr.$O\
83 cleanname.$O\
rsce97cead2003-12-06 18:05:27 +000084 convD2M.$O\
85 convM2D.$O\
86 convM2S.$O\
87 convS2M.$O\
rscfd04aac2003-11-23 18:12:54 +000088 create.$O\
rsc64140532005-02-08 21:02:40 +000089 crypt.$O\
rscfd04aac2003-11-23 18:12:54 +000090 ctime.$O\
rscfd04aac2003-11-23 18:12:54 +000091 dial.$O\
92 dirfstat.$O\
93 dirfwstat.$O\
94 dirmodefmt.$O\
95 dirread.$O\
96 dirstat.$O\
97 dirwstat.$O\
98 dup.$O\
99 encodefmt.$O\
100 errstr.$O\
101 exec.$O\
rsca1d42882005-01-04 22:19:18 +0000102 execl.$O\
rscd0d15c12006-02-12 19:05:12 +0000103 exitcode.$O\
rsce97cead2003-12-06 18:05:27 +0000104 fcallfmt.$O\
rsc8ad51792004-03-25 23:03:57 +0000105 get9root.$O\
rscfd04aac2003-11-23 18:12:54 +0000106 getcallerpc-$OBJTYPE.$O\
107 getenv.$O\
108 getfields.$O\
rsc06f4d922005-02-13 19:25:44 +0000109 getnetconn.$O\
rsc32f69c32003-12-11 17:48:38 +0000110 getns.$O\
rscfd04aac2003-11-23 18:12:54 +0000111 getuser.$O\
112 getwd.$O\
113 jmp.$O\
rsc2277c5d2004-03-21 04:33:13 +0000114 lrand.$O\
115 lnrand.$O\
rscfd04aac2003-11-23 18:12:54 +0000116 main.$O\
rsc32f69c32003-12-11 17:48:38 +0000117 malloc.$O\
rscfd04aac2003-11-23 18:12:54 +0000118 malloctag.$O\
119 mallocz.$O\
rscdff7e272003-12-04 19:16:29 +0000120 nan.$O\
rscfd04aac2003-11-23 18:12:54 +0000121 needsrcquote.$O\
rsc06c4fd02004-04-21 22:44:37 +0000122 needstack.$O\
rscb589fce2005-02-11 16:58:23 +0000123 netcrypt.$O\
rscfd04aac2003-11-23 18:12:54 +0000124 netmkaddr.$O\
125 notify.$O\
126 nrand.$O\
127 nulldir.$O\
rsc32f69c32003-12-11 17:48:38 +0000128 open.$O\
rsc2277c5d2004-03-21 04:33:13 +0000129 opentemp.$O\
rscdf970452006-06-26 05:47:59 +0000130 pin.$O\
rsc32f69c32003-12-11 17:48:38 +0000131 pipe.$O\
132 post9p.$O\
rscfd04aac2003-11-23 18:12:54 +0000133 postnote.$O\
134 qlock.$O\
135 quote.$O\
rsca1d42882005-01-04 22:19:18 +0000136 rand.$O\
rsc32f69c32003-12-11 17:48:38 +0000137 read9pmsg.$O\
rscb589fce2005-02-11 16:58:23 +0000138 readcons.$O\
rscfd04aac2003-11-23 18:12:54 +0000139 readn.$O\
rscfd04aac2003-11-23 18:12:54 +0000140 rfork.$O\
rsc4a623712005-01-23 22:33:59 +0000141 searchpath.$O\
rscfd04aac2003-11-23 18:12:54 +0000142 seek.$O\
rsc32f69c32003-12-11 17:48:38 +0000143 sendfd.$O\
rscfd04aac2003-11-23 18:12:54 +0000144 sleep.$O\
rscf437e562004-06-09 14:15:47 +0000145 strdup.$O\
rscfd04aac2003-11-23 18:12:54 +0000146 strecpy.$O\
147 sysfatal.$O\
rscb589fce2005-02-11 16:58:23 +0000148 syslog.$O\
rscd72054a2004-04-23 03:50:19 +0000149 sysname.$O\
rscfd04aac2003-11-23 18:12:54 +0000150 time.$O\
Michael Teichgräberf35a0482008-07-09 08:27:22 -0400151 tm2sec.$O\
rscfd04aac2003-11-23 18:12:54 +0000152 tokenize.$O\
rsc0b424d72004-04-21 07:47:50 +0000153 truerand.$O\
rscfd04aac2003-11-23 18:12:54 +0000154 u16.$O\
155 u32.$O\
156 u64.$O\
rsc8ad51792004-03-25 23:03:57 +0000157 unsharp.$O\
rscfd04aac2003-11-23 18:12:54 +0000158 wait.$O\
159 waitpid.$O\
Russ Coxcab935a2008-07-04 12:38:26 -0400160 write.$O\
Michael Teichgräberf35a0482008-07-09 08:27:22 -0400161 zoneinfo.$O\
rscfd04aac2003-11-23 18:12:54 +0000162
rscd6df6c12004-02-29 22:49:59 +0000163OFILES=\
164 $LIB9OFILES\
165 $FMTOFILES\
166 $UTFOFILES\
167
rscfd04aac2003-11-23 18:12:54 +0000168HFILES=\
169 $PLAN9/include/lib9.h\
170
171<$PLAN9/src/mksyslib
rsc5a8e63b2004-02-29 22:10:26 +0000172
173%.$O: fmt/%.c
174 $CC $CFLAGS -Ifmt fmt/$stem.c
175
176%.$O: utf/%.c
177 $CC $CFLAGS utf/$stem.c
rsc4b65e432006-05-22 14:56:13 +0000178
179XLIB=$PLAN9/lib/$LIB
180
181testfmt: testfmt.$O $XLIB
182 $LD -o $target testfmt.$O
183
184testfltfmt: testfltfmt.$O $XLIB
185 $LD -o $target testfltfmt.$O
186
187testprint: testprint.$O $XLIB
188 $LD -o $target testprint.$O
189
190# debugging only - should go away (5/22/2006)
191testgoogfmt: testfltfmt.$O googfmt.$O $XLIB
192 $LD -o $target testfltfmt.$O googfmt.$O
193
194testgoogprint: testprint.$O googfmt.$O $XLIB
195 $LD -o $target testprint.$O googfmt.$O
196
Michael Teichgräberf35a0482008-07-09 08:27:22 -0400197ctime.$O tm2sec.$O zoneinfo.$O: zoneinfo.h