]> git.saurik.com Git - apple/libc.git/blame - stdio/Makefile.inc
Libc-391.2.10.tar.gz
[apple/libc.git] / stdio / Makefile.inc
CommitLineData
5b2abdfb 1# @(#)Makefile.inc 8.3 (Berkeley) 4/17/94
9385eb3d 2# $FreeBSD: src/lib/libc/stdio/Makefile.inc,v 1.32 2003/01/10 06:22:28 tjr Exp $
5b2abdfb
A
3
4# stdio sources
5.PATH: ${.CURDIR}/stdio
6
9385eb3d 7.include "Makefile.fbsd_begin"
59e0d9fe 8FBSDMISRCS= _flock_stub.c asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c \
9385eb3d
A
9 fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c fgetws.c \
10 fileno.c findfp.c flags.c fopen.c fprintf.c fpurge.c fputc.c fputs.c \
11 fputwc.c fputws.c fread.c freopen.c fscanf.c fseek.c fsetpos.c \
12 ftell.c funopen.c fvwrite.c fwalk.c fwide.c fwprintf.c fwscanf.c \
13 fwrite.c getc.c getchar.c gets.c getw.c getwc.c getwchar.c makebuf.c \
14 mktemp.c perror.c printf.c putc.c putchar.c puts.c putw.c putwc.c \
15 putwchar.c refill.c remove.c rewind.c rget.c scanf.c setbuf.c \
16 setbuffer.c setvbuf.c snprintf.c sprintf.c sscanf.c stdio.c \
17 swprintf.c swscanf.c tempnam.c tmpfile.c tmpnam.c ungetc.c ungetwc.c \
18 unlocked.c vasprintf.c vfprintf.c vfscanf.c vfwprintf.c vfwscanf.c \
19 vprintf.c vscanf.c vsnprintf.c vsprintf.c vsscanf.c vswprintf.c \
20 vswscanf.c vwprintf.c vwscanf.c wbuf.c wprintf.c wscanf.c wsetup.c
59e0d9fe 21FBSDHDRS= floatio.h fvwrite.h glue.h local.h
9385eb3d 22.include "Makefile.fbsd_end"
5b2abdfb 23
3d9156a7
A
24# also build 64-bit long double versions (ppc only)
25LDBLSRCS += asprintf.c fprintf.c fscanf.c fwprintf.c fwscanf.c printf.c \
26 scanf.c snprintf.c sprintf.c sscanf.c swprintf.c swscanf.c \
27 vasprintf.c vfprintf.c vfscanf.c vfwprintf.c vfwscanf.c \
28 vprintf.c vscanf.c vsnprintf.c vsprintf.c vsscanf.c vswprintf.c \
29 vswscanf.c vwprintf.c vwscanf.c wprintf.c wscanf.c
30
59e0d9fe 31.for _src in vfprintf-fbsd.c vfwprintf-fbsd.c
f74c7596
A
32CFLAGS-${_src} += -fshort-enums
33# add altivec options on per file basis, since it now disables inlining
34.if (${MACHINE_ARCH} == ppc) || (${MACHINE_ARCH} == ppc64)
35CFLAGS-${_src} += -faltivec -DALTIVEC
36.endif
59e0d9fe
A
37.endfor
38
3d9156a7
A
39UNIX03SRCS+= freopen.c fwrite.c
40
5b2abdfb 41.if ${LIB} == "c"
3d9156a7
A
42MAN3+= getwc_l.3 putwc_l.3 printf_l.3 scanf_l.3 wprintf_l.3 wscanf_l.3
43
9385eb3d
A
44.include "Makefile.fbsd_begin"
45FBSDMAN3= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetws.3 flockfile.3 \
46 fopen.3 fputs.3 fputws.3 fread.3 fseek.3 funopen.3 fwide.3 getc.3 \
47 getwc.3 mktemp.3 printf.3 putc.3 putwc.3 remove.3 scanf.3 setbuf.3 \
48 stdio.3 tmpnam.3 ungetc.3 ungetwc.3 wprintf.3 wscanf.3
49.include "Makefile.fbsd_end"
5b2abdfb 50
9385eb3d
A
51MLINKS+=ferror.3 ferror_unlocked.3 \
52 ferror.3 clearerr.3 ferror.3 clearerr_unlocked.3 \
53 ferror.3 feof.3 ferror.3 feof_unlocked.3 \
54 ferror.3 fileno.3 ferror.3 fileno_unlocked.3
5b2abdfb
A
55MLINKS+=fflush.3 fpurge.3
56MLINKS+=fgets.3 gets.3
3d9156a7 57MLINKS+=fgetws.3 fgetws_l.3
9385eb3d 58MLINKS+=flockfile.3 ftrylockfile.3 flockfile.3 funlockfile.3
5b2abdfb
A
59MLINKS+=fopen.3 fdopen.3 fopen.3 freopen.3
60MLINKS+=fputs.3 puts.3
3d9156a7 61MLINKS+=fputws.3 fputws_l.3
5b2abdfb
A
62MLINKS+=fread.3 fwrite.3
63MLINKS+=fseek.3 fgetpos.3 fseek.3 fseeko.3 fseek.3 fsetpos.3 fseek.3 ftell.3 \
64 fseek.3 ftello.3 fseek.3 rewind.3
65MLINKS+=funopen.3 fropen.3 funopen.3 fwopen.3
9385eb3d
A
66MLINKS+=getc.3 fgetc.3 getc.3 getc_unlocked.3 getc.3 getchar.3 \
67 getc.3 getchar_unlocked.3 getc.3 getw.3
68MLINKS+=getwc.3 fgetwc.3 getwc.3 getwchar.3
3d9156a7 69MLINKS+=getwc_l.3 fgetwc_l.3 getwc_l.3 getwchar_l.3
5b2abdfb
A
70MLINKS+=mktemp.3 mkdtemp.3 mktemp.3 mkstemp.3 mktemp.3 mkstemps.3
71MLINKS+=printf.3 asprintf.3 printf.3 fprintf.3 \
72 printf.3 snprintf.3 printf.3 sprintf.3 \
73 printf.3 vasprintf.3 \
74 printf.3 vfprintf.3 printf.3 vprintf.3 printf.3 vsnprintf.3 \
75 printf.3 vsprintf.3
3d9156a7
A
76MLINKS+=printf_l.3 asprintf_l.3 printf_l.3 fprintf_l.3 \
77 printf_l.3 snprintf_l.3 printf_l.3 sprintf_l.3 \
78 printf_l.3 vasprintf_l.3 \
79 printf_l.3 vfprintf_l.3 printf_l.3 vprintf_l.3 printf_l.3 vsnprintf_l.3 \
80 printf_l.3 vsprintf_l.3
9385eb3d
A
81MLINKS+=putc.3 fputc.3 putc.3 putc_unlocked.3 putc.3 putchar.3 \
82 putc.3 putchar_unlocked.3 putc.3 putw.3
83MLINKS+=putwc.3 fputwc.3 putwc.3 putwchar.3
3d9156a7 84MLINKS+=putwc_l.3 fputwc_l.3 putwc_l.3 putwchar_l.3
5b2abdfb
A
85MLINKS+=scanf.3 fscanf.3 scanf.3 sscanf.3 scanf.3 vfscanf.3 scanf.3 vscanf.3 \
86 scanf.3 vsscanf.3
3d9156a7
A
87MLINKS+=scanf_l.3 fscanf_l.3 scanf_l.3 sscanf_l.3 scanf_l.3 vfscanf_l.3 \
88 scanf_l.3 vscanf_l.3 scanf_l.3 vsscanf_l.3
5b2abdfb
A
89MLINKS+=setbuf.3 setbuffer.3 setbuf.3 setlinebuf.3 setbuf.3 setvbuf.3
90MLINKS+=tmpnam.3 tempnam.3 tmpnam.3 tmpfile.3
3d9156a7 91MLINKS+=ungetwc.3 ungetwc_l.3
9385eb3d
A
92MLINKS+=wprintf.3 fwprintf.3 wprintf.3 swprintf.3 \
93 wprintf.3 vwprintf.3 wprintf.3 vfwprintf.3 wprintf.3 vswprintf.3
3d9156a7
A
94MLINKS+=wprintf_l.3 fwprintf_l.3 wprintf_l.3 swprintf_l.3 \
95 wprintf_l.3 vwprintf_l.3 wprintf_l.3 vfwprintf_l.3 \
96 wprintf_l.3 vswprintf_l.3
9385eb3d
A
97MLINKS+=wscanf.3 fwscanf.3 wscanf.3 swscanf.3 wscanf.3 vwscanf.3 \
98 wscanf.3 vswscanf.3 wscanf.3 vfwscanf.3
3d9156a7
A
99MLINKS+=wscanf_l.3 fwscanf_l.3 wscanf_l.3 swscanf_l.3 wscanf_l.3 vwscanf_l.3 \
100 wscanf_l.3 vswscanf_l.3 wscanf_l.3 vfwscanf_l.3
5b2abdfb 101.endif