xref: /titanic_41/usr/src/lib/libast/Makefile.com (revision bdf0047c9427cca40961a023475891c898579c37)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27SHELL=/usr/bin/ksh93
28
29LIBRARY=	libast.a
30VERS=		.1
31
32# platform-independent sources are in common/
33OBJECTS += \
34	common/cdt/dtclose.o \
35	common/cdt/dtdisc.o \
36	common/cdt/dtextract.o \
37	common/cdt/dtflatten.o \
38	common/cdt/dthash.o \
39	common/cdt/dtlist.o \
40	common/cdt/dtmethod.o \
41	common/cdt/dtnew.o \
42	common/cdt/dtopen.o \
43	common/cdt/dtrenew.o \
44	common/cdt/dtrestore.o \
45	common/cdt/dtsize.o \
46	common/cdt/dtstat.o \
47	common/cdt/dtstrhash.o \
48	common/cdt/dttree.o \
49	common/cdt/dttreeset.o \
50	common/cdt/dtview.o \
51	common/cdt/dtwalk.o \
52	common/comp/atexit.o \
53	common/comp/basename.o \
54	common/comp/catopen.o \
55	common/comp/closelog.o \
56	common/comp/creat64.o \
57	common/comp/dirname.o \
58	common/comp/dup2.o \
59	common/comp/eaccess.o \
60	common/comp/errno.o \
61	common/comp/execlp.o \
62	common/comp/execve.o \
63	common/comp/execvp.o \
64	common/comp/execvpe.o \
65	common/comp/fcntl.o \
66	common/comp/fmtmsglib.o \
67	common/comp/fnmatch.o \
68	common/comp/frexp.o \
69	common/comp/frexpl.o \
70	common/comp/fsync.o \
71	common/comp/ftw.o \
72	common/comp/getdate.o \
73	common/comp/getgroups.o \
74	common/comp/getlogin.o \
75	common/comp/getopt.o \
76	common/comp/getoptl.o \
77	common/comp/getpgrp.o \
78	common/comp/getsubopt.o \
79	common/comp/getwd.o \
80	common/comp/gross.o \
81	common/comp/hsearch.o \
82	common/comp/iconv.o \
83	common/comp/killpg.o \
84	common/comp/link.o \
85	common/comp/localeconv.o \
86	common/comp/lstat.o \
87	common/comp/memccpy.o \
88	common/comp/memchr.o \
89	common/comp/memcmp.o \
90	common/comp/memcpy.o \
91	common/comp/memmove.o \
92	common/comp/memset.o \
93	common/comp/mkdir.o \
94	common/comp/mkfifo.o \
95	common/comp/mknod.o \
96	common/comp/mktemp.o \
97	common/comp/mktime.o \
98	common/comp/mount.o \
99	common/comp/nftw.o \
100	common/comp/omitted.o \
101	common/comp/open.o \
102	common/comp/openlog.o \
103	common/comp/putenv.o \
104	common/comp/re_comp.o \
105	common/comp/readlink.o \
106	common/comp/realpath.o \
107	common/comp/regcmp.o \
108	common/comp/regexp.o \
109	common/comp/remove.o \
110	common/comp/rename.o \
111	common/comp/resolvepath.o \
112	common/comp/rmdir.o \
113	common/comp/setenv.o \
114	common/comp/setlocale.o \
115	common/comp/setlogmask.o \
116	common/comp/setpgid.o \
117	common/comp/setsid.o \
118	common/comp/sigunblock.o \
119	common/comp/spawnveg.o \
120	common/comp/statvfs.o \
121	common/comp/strcasecmp.o \
122	common/comp/strchr.o \
123	common/comp/strftime.o \
124	common/comp/strncasecmp.o \
125	common/comp/strptime.o \
126	common/comp/strrchr.o \
127	common/comp/strstr.o \
128	common/comp/strtod.o \
129	common/comp/strtol.o \
130	common/comp/strtold.o \
131	common/comp/strtoll.o \
132	common/comp/strtoul.o \
133	common/comp/strtoull.o \
134	common/comp/swab.o \
135	common/comp/symlink.o \
136	common/comp/syslog.o \
137	common/comp/system.o \
138	common/comp/tempnam.o \
139	common/comp/tmpnam.o \
140	common/comp/transition.o \
141	common/comp/tsearch.o \
142	common/comp/unlink.o \
143	common/comp/unsetenv.o \
144	common/comp/vfork.o \
145	common/comp/waitpid.o \
146	common/comp/wc.o \
147	common/comp/wordexp.o \
148	common/dir/getdents.o \
149	common/dir/opendir.o \
150	common/dir/readdir.o \
151	common/dir/rewinddir.o \
152	common/dir/seekdir.o \
153	common/dir/telldir.o \
154	common/disc/memfatal.o \
155	common/disc/sfdcdio.o \
156	common/disc/sfdcdos.o \
157	common/disc/sfdcfilter.o \
158	common/disc/sfdcmore.o \
159	common/disc/sfdcprefix.o \
160	common/disc/sfdcseekable.o \
161	common/disc/sfdcslow.o \
162	common/disc/sfdcsubstr.o \
163	common/disc/sfdctee.o \
164	common/disc/sfdcunion.o \
165	common/disc/sfkeyprintf.o \
166	common/disc/sfstrtmp.o \
167	common/hash/hashalloc.o \
168	common/hash/hashdump.o \
169	common/hash/hashfree.o \
170	common/hash/hashlast.o \
171	common/hash/hashlook.o \
172	common/hash/hashscan.o \
173	common/hash/hashsize.o \
174	common/hash/hashview.o \
175	common/hash/hashwalk.o \
176	common/hash/memhash.o \
177	common/hash/memsum.o \
178	common/hash/strhash.o \
179	common/hash/strkey.o \
180	common/hash/strsum.o \
181	common/misc/astintercept.o \
182	common/misc/debug.o \
183	common/misc/cmdarg.o \
184	common/misc/error.o \
185	common/misc/errorf.o \
186	common/misc/errormsg.o \
187	common/misc/errorx.o \
188	common/misc/fastfind.o \
189	common/misc/fmtrec.o \
190	common/misc/fs3d.o \
191	common/misc/fts.o \
192	common/misc/ftwalk.o \
193	common/misc/ftwflags.o \
194	common/misc/getcwd.o \
195	common/misc/getenv.o \
196	common/misc/glob.o \
197	common/misc/liberror.o \
198	common/misc/libevent.o \
199	common/misc/magic.o \
200	common/misc/mime.o \
201	common/misc/mimetype.o \
202	common/misc/optesc.o \
203	common/misc/optget.o \
204	common/misc/optjoin.o \
205	common/misc/optctx.o \
206	common/misc/procclose.o \
207	common/misc/procfree.o \
208	common/misc/procopen.o \
209	common/misc/procrun.o \
210	common/misc/recfmt.o \
211	common/misc/reclen.o \
212	common/misc/recstr.o \
213	common/misc/setenviron.o \
214	common/misc/sigcrit.o \
215	common/misc/sigdata.o \
216	common/misc/signal.o \
217	common/misc/stack.o \
218	common/misc/state.o \
219	common/misc/stk.o \
220	common/misc/systrace.o \
221	common/misc/translate.o \
222	common/misc/univdata.o \
223	common/obsolete/spawn.o \
224	common/path/pathaccess.o \
225	common/path/pathbin.o \
226	common/path/pathcanon.o \
227	common/path/pathcat.o \
228	common/path/pathcd.o \
229	common/path/pathcheck.o \
230	common/path/pathexists.o \
231	common/path/pathfind.o \
232	common/path/pathgetlink.o \
233	common/path/pathkey.o \
234	common/path/pathnative.o \
235	common/path/pathpath.o \
236	common/path/pathposix.o \
237	common/path/pathprobe.o \
238	common/path/pathprog.o \
239	common/path/pathrepl.o \
240	common/path/pathsetlink.o \
241	common/path/pathshell.o \
242	common/path/pathstat.o \
243	common/path/pathtemp.o \
244	common/path/pathtmp.o \
245	common/port/astconf.o \
246	common/port/astcopy.o \
247	common/port/astdynamic.o \
248	common/port/astlicense.o \
249	common/port/astquery.o \
250	common/port/aststatic.o \
251	common/port/astwinsize.o \
252	common/port/iblocks.o \
253	common/port/lc.o \
254	common/port/mc.o \
255	common/port/mnt.o \
256	common/port/touch.o \
257	common/preroot/getpreroot.o \
258	common/preroot/ispreroot.o \
259	common/preroot/realopen.o \
260	common/preroot/setpreroot.o \
261	common/regex/regalloc.o \
262	common/regex/regcache.o \
263	common/regex/regclass.o \
264	common/regex/regcoll.o \
265	common/regex/regcomp.o \
266	common/regex/regdecomp.o \
267	common/regex/regerror.o \
268	common/regex/regexec.o \
269	common/regex/regfatal.o \
270	common/regex/reginit.o \
271	common/regex/regnexec.o \
272	common/regex/regrecord.o \
273	common/regex/regrexec.o \
274	common/regex/regstat.o \
275	common/regex/regsub.o \
276	common/regex/regsubcomp.o \
277	common/regex/regsubexec.o \
278	common/sfio/_sfclrerr.o \
279	common/sfio/_sfdlen.o \
280	common/sfio/_sfeof.o \
281	common/sfio/_sferror.o \
282	common/sfio/_sffileno.o \
283	common/sfio/_sfgetc.o \
284	common/sfio/_sfgetl.o \
285	common/sfio/_sfgetl2.o \
286	common/sfio/_sfgetu.o \
287	common/sfio/_sfgetu2.o \
288	common/sfio/_sfllen.o \
289	common/sfio/_sfopen.o \
290	common/sfio/_sfputc.o \
291	common/sfio/_sfputd.o \
292	common/sfio/_sfputl.o \
293	common/sfio/_sfputm.o \
294	common/sfio/_sfputu.o \
295	common/sfio/_sfslen.o \
296	common/sfio/_sfstacked.o \
297	common/sfio/_sfulen.o \
298	common/sfio/_sfvalue.o \
299	common/sfio/sfclose.o \
300	common/sfio/sfclrlock.o \
301	common/sfio/sfcvt.o \
302	common/sfio/sfdisc.o \
303	common/sfio/sfdlen.o \
304	common/sfio/sfecvt.o \
305	common/sfio/sfexcept.o \
306	common/sfio/sfextern.o \
307	common/sfio/sffcvt.o \
308	common/sfio/sffilbuf.o \
309	common/sfio/sfflsbuf.o \
310	common/sfio/sfgetd.o \
311	common/sfio/sfgetl.o \
312	common/sfio/sfgetm.o \
313	common/sfio/sfgetr.o \
314	common/sfio/sfgetu.o \
315	common/sfio/sfllen.o \
316	common/sfio/sfmode.o \
317	common/sfio/sfmove.o \
318	common/sfio/sfmutex.o \
319	common/sfio/sfnew.o \
320	common/sfio/sfnotify.o \
321	common/sfio/sfnputc.o \
322	common/sfio/sfopen.o \
323	common/sfio/sfpeek.o \
324	common/sfio/sfpkrd.o \
325	common/sfio/sfpoll.o \
326	common/sfio/sfpool.o \
327	common/sfio/sfpopen.o \
328	common/sfio/sfprintf.o \
329	common/sfio/sfprints.o \
330	common/sfio/sfpurge.o \
331	common/sfio/sfputd.o \
332	common/sfio/sfputl.o \
333	common/sfio/sfputm.o \
334	common/sfio/sfputr.o \
335	common/sfio/sfputu.o \
336	common/sfio/sfraise.o \
337	common/sfio/sfrd.o \
338	common/sfio/sfread.o \
339	common/sfio/sfreserve.o \
340	common/sfio/sfresize.o \
341	common/sfio/sfscanf.o \
342	common/sfio/sfseek.o \
343	common/sfio/sfset.o \
344	common/sfio/sfsetbuf.o \
345	common/sfio/sfsetfd.o \
346	common/sfio/sfsize.o \
347	common/sfio/sfsk.o \
348	common/sfio/sfstack.o \
349	common/sfio/sfstrtod.o \
350	common/sfio/sfswap.o \
351	common/sfio/sfsync.o \
352	common/sfio/sftable.o \
353	common/sfio/sftell.o \
354	common/sfio/sftmp.o \
355	common/sfio/sfungetc.o \
356	common/sfio/sfvprintf.o \
357	common/sfio/sfvscanf.o \
358	common/sfio/sfwalk.o \
359	common/sfio/sfwr.o \
360	common/sfio/sfwrite.o \
361	common/stdio/_doprnt.o \
362	common/stdio/_doscan.o \
363	common/stdio/_filbuf.o \
364	common/stdio/_flsbuf.o \
365	common/stdio/_stdfun.o \
366	common/stdio/_stdopen.o \
367	common/stdio/_stdprintf.o \
368	common/stdio/_stdscanf.o \
369	common/stdio/_stdsprnt.o \
370	common/stdio/_stdvbuf.o \
371	common/stdio/_stdvsnprnt.o \
372	common/stdio/_stdvsprnt.o \
373	common/stdio/_stdvsscn.o \
374	common/stdio/asprintf.o \
375	common/stdio/clearerr.o \
376	common/stdio/fclose.o \
377	common/stdio/fcloseall.o \
378	common/stdio/fdopen.o \
379	common/stdio/feof.o \
380	common/stdio/ferror.o \
381	common/stdio/fflush.o \
382	common/stdio/fgetc.o \
383	common/stdio/fgetpos.o \
384	common/stdio/fgets.o \
385	common/stdio/fgetwc.o \
386	common/stdio/fgetws.o \
387	common/stdio/fileno.o \
388	common/stdio/flockfile.o \
389	common/stdio/fmemopen.o \
390	common/stdio/fopen.o \
391	common/stdio/fprintf.o \
392	common/stdio/fpurge.o \
393	common/stdio/fputc.o \
394	common/stdio/fputs.o \
395	common/stdio/fputwc.o \
396	common/stdio/fputws.o \
397	common/stdio/funlockfile.o \
398	common/stdio/fread.o \
399	common/stdio/freopen.o \
400	common/stdio/fscanf.o \
401	common/stdio/fseek.o \
402	common/stdio/fseeko.o \
403	common/stdio/fsetpos.o \
404	common/stdio/ftell.o \
405	common/stdio/ftello.o \
406	common/stdio/ftrylockfile.o \
407	common/stdio/fwide.o \
408	common/stdio/fwprintf.o \
409	common/stdio/fwrite.o \
410	common/stdio/fwscanf.o \
411	common/stdio/getc.o \
412	common/stdio/getchar.o \
413	common/stdio/getdelim.o \
414	common/stdio/getline.o \
415	common/stdio/getw.o \
416	common/stdio/getwc.o \
417	common/stdio/getwchar.o \
418	common/stdio/pclose.o \
419	common/stdio/popen.o \
420	common/stdio/printf.o \
421	common/stdio/putc.o \
422	common/stdio/putchar.o \
423	common/stdio/puts.o \
424	common/stdio/putw.o \
425	common/stdio/putwc.o \
426	common/stdio/putwchar.o \
427	common/stdio/rewind.o \
428	common/stdio/scanf.o \
429	common/stdio/setbuf.o \
430	common/stdio/setbuffer.o \
431	common/stdio/setlinebuf.o \
432	common/stdio/setvbuf.o \
433	common/stdio/snprintf.o \
434	common/stdio/sprintf.o \
435	common/stdio/sscanf.o \
436	common/stdio/stdio_c99.o \
437	common/stdio/swprintf.o \
438	common/stdio/swscanf.o \
439	common/stdio/tmpfile.o \
440	common/stdio/ungetc.o \
441	common/stdio/ungetwc.o \
442	common/stdio/vasprintf.o \
443	common/stdio/vfprintf.o \
444	common/stdio/vfscanf.o \
445	common/stdio/vfwprintf.o \
446	common/stdio/vfwscanf.o \
447	common/stdio/vprintf.o \
448	common/stdio/vscanf.o \
449	common/stdio/vsnprintf.o \
450	common/stdio/vsprintf.o \
451	common/stdio/vsscanf.o \
452	common/stdio/vswprintf.o \
453	common/stdio/vswscanf.o \
454	common/stdio/vwprintf.o \
455	common/stdio/vwscanf.o \
456	common/stdio/wprintf.o \
457	common/stdio/wscanf.o \
458	common/string/base64.o \
459	common/string/ccmap.o \
460	common/string/ccmapid.o \
461	common/string/ccnative.o \
462	common/string/chresc.o \
463	common/string/chrtoi.o \
464	common/string/fmtbase.o \
465	common/string/fmtbuf.o \
466	common/string/fmtclock.o \
467	common/string/fmtdev.o \
468	common/string/fmtelapsed.o \
469	common/string/fmterror.o \
470	common/string/fmtesc.o \
471	common/string/fmtfmt.o \
472	common/string/fmtfs.o \
473	common/string/fmtgid.o \
474	common/string/fmtident.o \
475	common/string/fmtip4.o \
476	common/string/fmtip6.o \
477	common/string/fmtls.o \
478	common/string/fmtmatch.o \
479	common/string/fmtmode.o \
480	common/string/fmtnum.o \
481	common/string/fmtperm.o \
482	common/string/fmtre.o \
483	common/string/fmtscale.o \
484	common/string/fmtsignal.o \
485	common/string/fmttime.o \
486	common/string/fmttmx.o \
487	common/string/fmttv.o \
488	common/string/fmtuid.o \
489	common/string/fmtversion.o \
490	common/string/memdup.o \
491	common/string/modedata.o \
492	common/string/modei.o \
493	common/string/modex.o \
494	common/string/stracmp.o \
495	common/string/strcopy.o \
496	common/string/strdup.o \
497	common/string/strelapsed.o \
498	common/string/strerror.o \
499	common/string/stresc.o \
500	common/string/streval.o \
501	common/string/strexpr.o \
502	common/string/strgid.o \
503	common/string/strlcat.o \
504	common/string/strlcpy.o \
505	common/string/strlook.o \
506	common/string/strmatch.o \
507	common/string/strmode.o \
508	common/string/strnacmp.o \
509	common/string/strncopy.o \
510	common/string/strnpcmp.o \
511	common/string/strntod.o \
512	common/string/strntol.o \
513	common/string/strntold.o \
514	common/string/strntoll.o \
515	common/string/strnton.o \
516	common/string/strntoul.o \
517	common/string/strntonll.o \
518	common/string/strntoull.o \
519	common/string/strnvcmp.o \
520	common/string/stropt.o \
521	common/string/strpcmp.o \
522	common/string/strperm.o \
523	common/string/strpsearch.o \
524	common/string/strsearch.o \
525	common/string/strsort.o \
526	common/string/strtape.o \
527	common/string/strtoip4.o \
528	common/string/strtoip6.o \
529	common/string/strton.o \
530	common/string/strtonll.o \
531	common/string/struid.o \
532	common/string/struniq.o \
533	common/string/strvcmp.o \
534	common/string/swapget.o \
535	common/string/swapmem.o \
536	common/string/swapop.o \
537	common/string/swapput.o \
538	common/string/tok.o \
539	common/string/tokline.o \
540	common/string/tokscan.o \
541	common/tm/tmdata.o \
542	common/tm/tmdate.o \
543	common/tm/tmequiv.o \
544	common/tm/tmfix.o \
545	common/tm/tmfmt.o \
546	common/tm/tmform.o \
547	common/tm/tmgoff.o \
548	common/tm/tminit.o \
549	common/tm/tmleap.o \
550	common/tm/tmlex.o \
551	common/tm/tmlocale.o \
552	common/tm/tmmake.o \
553	common/tm/tmpoff.o \
554	common/tm/tmscan.o \
555	common/tm/tmsleep.o \
556	common/tm/tmtime.o \
557	common/tm/tmtype.o \
558	common/tm/tmweek.o \
559	common/tm/tmword.o \
560	common/tm/tmxdate.o \
561	common/tm/tmxduration.o \
562	common/tm/tmxfmt.o \
563	common/tm/tmxgettime.o \
564	common/tm/tmxleap.o \
565	common/tm/tmxmake.o \
566	common/tm/tmxscan.o \
567	common/tm/tmxsettime.o \
568	common/tm/tmxsleep.o \
569	common/tm/tmxtime.o \
570	common/tm/tmxtouch.o \
571	common/tm/tmzone.o \
572	common/tm/tvcmp.o \
573	common/tm/tvgettime.o \
574	common/tm/tvsettime.o \
575	common/tm/tvsleep.o \
576	common/tm/tvtouch.o \
577	common/uwin/a64l.o \
578	common/uwin/acosh.o \
579	common/uwin/asinh.o \
580	common/uwin/atanh.o \
581	common/uwin/cbrt.o \
582	common/uwin/crypt.o \
583	common/uwin/erf.o \
584	common/uwin/err.o \
585	common/uwin/exp.o \
586	common/uwin/exp__E.o \
587	common/uwin/expm1.o \
588	common/uwin/gamma.o \
589	common/uwin/getpass.o \
590	common/uwin/lgamma.o \
591	common/uwin/log.o \
592	common/uwin/log1p.o \
593	common/uwin/log__L.o \
594	common/uwin/rand48.o \
595	common/uwin/random.o \
596	common/uwin/rcmd.o \
597	common/uwin/rint.o \
598	common/uwin/support.o \
599	common/vec/vecargs.o \
600	common/vec/vecfile.o \
601	common/vec/vecfree.o \
602	common/vec/vecload.o \
603	common/vec/vecstring.o \
604	common/vmalloc/malloc.o \
605	common/vmalloc/vmbest.o \
606	common/vmalloc/vmclear.o \
607	common/vmalloc/vmclose.o \
608	common/vmalloc/vmdcheap.o \
609	common/vmalloc/vmdebug.o \
610	common/vmalloc/vmdisc.o \
611	common/vmalloc/vmexit.o \
612	common/vmalloc/vmgetmem.o \
613	common/vmalloc/vmlast.o \
614	common/vmalloc/vmmopen.o \
615	common/vmalloc/vmopen.o \
616	common/vmalloc/vmpool.o \
617	common/vmalloc/vmprivate.o \
618	common/vmalloc/vmprofile.o \
619	common/vmalloc/vmregion.o \
620	common/vmalloc/vmsegment.o \
621	common/vmalloc/vmset.o \
622	common/vmalloc/vmstat.o \
623	common/vmalloc/vmstrdup.o \
624	common/vmalloc/vmtrace.o \
625	common/vmalloc/vmwalk.o
626
627# We are storing the object files into subdirs avoid the
628# confusion with having 550+ object files in the toplevel pics/
629# directory (this matches the way how the original AST build system
630# deals with this "logistic" issue) - the rules below ensure that
631# the destination directory is available.
632OBJDIRS += \
633	common/cdt \
634	common/comp \
635	common/dir \
636	common/disc \
637	common/hash \
638	common/misc \
639	common/obsolete \
640	common/path \
641	common/port \
642	common/preroot \
643	common/regex \
644	common/sfio \
645	common/stdio \
646	common/string \
647	common/tm \
648	common/uwin \
649	common/vec \
650	common/vmalloc
651PICSDIRS= $(OBJDIRS:%=pics/%)
652mkpicdirs:
653	@mkdir -p $(PICSDIRS)
654
655# We need our own rules here since some source files come from
656# the plaftorm-specific directories and the default rules do
657# not cover this
658pics/%.o: ../%.c
659	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
660	$(POST_PROCESS_O)
661
662include ../../Makefile.astmsg
663
664include ../../Makefile.lib
665
666# mapfile-vers does not live with the sources in in common/ to make
667# automated code updates easier.
668MAPFILES=       ../mapfile-vers
669
670# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
671include ../../../Makefile.ast
672
673# special rule because sources live both ../common (normal)
674# and $(TRANSMACH) (generated)
675SRCS=		$(OBJECTS:%.o=../%.c)
676
677LIBS =		$(DYNLIB) $(LINTLIB)
678
679LDLIBS += \
680	-lsocket \
681	-lm \
682	-lc
683
684$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
685
686SRCDIR =	../common
687
688# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
689# case - it MUST come as the last element but future changes in -D options
690# may then cause silent breakage in the AST sources because the last -D
691# option specified overrides previous -D options so we prefer the current
692# way to explicitly list each single flag.
693# Notes:
694#   - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
695#   - Be careful with "-D__OBSOLETE__=xxx". Make sure this is in sync with
696#     upstream (see Mamfile) and do not change the |__OBSOLETE__| value
697#     without examining the symbols that will be removed, and evaluating
698#     whether that breaks compatibility with upstream binaries.
699CPPFLAGS = \
700	$(DTEXTDOM) $(DTS_ERRNO) \
701	$(ASTPLATFORMCPPFLAGS) \
702	-Isrc/lib/libast \
703	-I$(SRCDIR) \
704	-I$(SRCDIR)/comp \
705	-I$(SRCDIR)/include \
706	-I$(SRCDIR)/std \
707	-I$(SRCDIR)/dir \
708	-I$(SRCDIR)/port \
709	-I$(SRCDIR)/sfio \
710	-I$(SRCDIR)/astsa \
711	-I$(SRCDIR)/misc \
712	-I$(SRCDIR)/string \
713	-Iinclude/ast \
714	-I$(ROOT)/usr/include \
715	'-DCONF_LIBSUFFIX=".so"' \
716	'-DCONF_LIBPREFIX="lib"' \
717	-DERROR_CATALOG=\""libast"\" \
718	-D__OBSOLETE__=20090101 \
719	-D_BLD_ast \
720	-D_PACKAGE_ast \
721	-D_BLD_DLL
722
723CFLAGS += \
724	$(ASTCFLAGS)
725CFLAGS64 += \
726	$(ASTCFLAGS64)
727
728pics/$(MACH)/src/lib/libast/conftab.o \
729pics/$(MACH64)/src/lib/libast/conftab.o	:= CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
730pics/common/comp/setlocale.o		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
731pics/common/comp/setlocale.o		:= CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
732pics/common/hash/hashlook.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
733pics/common/hash/memhash.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
734pics/common/hash/memsum.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
735pics/common/hash/strhash.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
736pics/common/hash/strsum.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
737pics/common/misc/recstr.o 		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
738pics/common/misc/translate.o 		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
739pics/common/path/pathkey.o		:= CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
740pics/common/port/astconf.o		:= CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
741pics/common/stdio/fflush.o 		:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
742pics/common/stdio/getline.o 		:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
743pics/common/sfio/sfmove.o 		:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
744pics/common/sfio/sfrd.o 		:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
745pics/common/sfio/sfvscanf.o 		:= CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
746pics/common/tm/tmxduration.o 		:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
747
748.KEEP_STATE:
749
750all: mkpicdirs .WAIT $(LIBS)
751
752#
753# libast is not lint-clean yet; fake up a target.  (You can use
754# "make lintcheck" to actually run lint; please send all lint fixes
755# upstream (to AT&T) so the next update will pull them into ON.)
756#
757lint:
758	@ print "usr/src/lib/libast is not lint-clean: skipping"
759
760include ../../Makefile.targ
761