]> git.saurik.com Git - apple/libc.git/blob - stdio/Makefile.inc
910da4d401113191bc0b8491072cb6dc7baa19ea
[apple/libc.git] / stdio / Makefile.inc
1 # @(#)Makefile.inc 8.3 (Berkeley) 4/17/94
2 # $FreeBSD: src/lib/libc/stdio/Makefile.inc,v 1.32 2003/01/10 06:22:28 tjr Exp $
3
4 # stdio sources
5 .PATH: ${.CURDIR}/stdio
6 CWD := ${.CURDIR}/stdio
7
8 .include "Makefile.fbsd_begin"
9 FBSDMISRCS= _flock_stub.c asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c \
10 fflush.c fgetc.c fgetln.c fgetpos.c fgets.c fgetwc.c fgetws.c \
11 fileno.c findfp.c flags.c fopen.c fprintf.c fpurge.c fputc.c fputs.c \
12 fputwc.c fputws.c fread.c freopen.c fscanf.c fseek.c fsetpos.c \
13 ftell.c funopen.c fvwrite.c fwalk.c fwide.c fwprintf.c fwscanf.c \
14 fwrite.c getc.c getchar.c gets.c getw.c getwc.c getwchar.c makebuf.c \
15 mktemp.c perror.c printf.c putc.c putchar.c puts.c putw.c putwc.c \
16 putwchar.c refill.c remove.c rewind.c rget.c scanf.c setbuf.c \
17 setbuffer.c setvbuf.c snprintf.c sprintf.c sscanf.c stdio.c \
18 swprintf.c swscanf.c tempnam.c tmpfile.c tmpnam.c ungetc.c ungetwc.c \
19 unlocked.c vasprintf.c vfprintf.c vfscanf.c vfwprintf.c vfwscanf.c \
20 vprintf.c vscanf.c vsnprintf.c vsprintf.c vsscanf.c vswprintf.c \
21 vswscanf.c vwprintf.c vwscanf.c wbuf.c wprintf.c wscanf.c wsetup.c
22 FBSDHDRS= floatio.h fvwrite.h glue.h local.h
23 .include "Makefile.fbsd_end"
24
25 # also build 64-bit long double versions (ppc only)
26 LDBLSRCS += asprintf.c fprintf.c fscanf.c fwprintf.c fwscanf.c printf.c \
27 scanf.c snprintf.c sprintf.c sscanf.c swprintf.c swscanf.c \
28 vasprintf.c vfprintf.c vfscanf.c vfwprintf.c vfwscanf.c \
29 vprintf.c vscanf.c vsnprintf.c vsprintf.c vsscanf.c vswprintf.c \
30 vswscanf.c vwprintf.c vwscanf.c wprintf.c wscanf.c
31
32 .for _src in vfprintf-fbsd.c vfwprintf-fbsd.c
33 CFLAGS-${_src} += -fshort-enums -DVECTORS
34 .endfor
35
36 LEGACYSRCS+= fputs.c freopen.c fwrite.c tempnam.c
37
38 # set the LIBC_ALIAS_* macros so we can decorate the symbol independent
39 # of other macro settings
40 CFLAGS-fputs-fbsd.c += -DLIBC_ALIAS_FPUTS
41 CFLAGS-freopen-fbsd.c += -DLIBC_ALIAS_FREOPEN
42 CFLAGS-fwrite-fbsd.c += -DLIBC_ALIAS_FWRITE
43 CFLAGS-tempnam-fbsd.c += -DLIBC_ALIAS_TEMPNAM
44
45 .if ${LIB} == "c"
46 MAN3+= getwc_l.3 putwc_l.3 printf_l.3 scanf_l.3 wprintf_l.3 wscanf_l.3
47
48 .include "Makefile.fbsd_begin"
49 FBSDMAN3= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetws.3 flockfile.3 \
50 fopen.3 fputs.3 fputws.3 fread.3 fseek.3 funopen.3 fwide.3 getc.3 \
51 getwc.3 mktemp.3 printf.3 putc.3 putwc.3 remove.3 scanf.3 setbuf.3 \
52 stdio.3 tmpnam.3 ungetc.3 ungetwc.3 wprintf.3 wscanf.3
53 .include "Makefile.fbsd_end"
54
55 MLINKS+= ferror.3 clearerr.3 \
56 ferror.3 clearerr_unlocked.3 \
57 ferror.3 feof.3 \
58 ferror.3 feof_unlocked.3 \
59 ferror.3 ferror_unlocked.3 \
60 ferror.3 fileno.3 \
61 ferror.3 fileno_unlocked.3
62
63 MLINKS+= fflush.3 fpurge.3
64
65 MLINKS+= fgets.3 gets.3
66
67 MLINKS+= fgetws.3 fgetws_l.3
68
69 MLINKS+= flockfile.3 ftrylockfile.3 \
70 flockfile.3 funlockfile.3
71
72 MLINKS+= fopen.3 fdopen.3 \
73 fopen.3 freopen.3
74
75 MLINKS+= fputs.3 puts.3
76
77 MLINKS+= fputws.3 fputws_l.3
78
79 MLINKS+= fread.3 fwrite.3
80
81 MLINKS+= fseek.3 fgetpos.3 \
82 fseek.3 fseeko.3 \
83 fseek.3 fsetpos.3 \
84 fseek.3 ftell.3 \
85 fseek.3 ftello.3 \
86 fseek.3 rewind.3
87
88 MLINKS+= funopen.3 fropen.3 \
89 funopen.3 fwopen.3
90
91 MLINKS+= getc.3 fgetc.3 \
92 getc.3 getc_unlocked.3 \
93 getc.3 getchar.3 \
94 getc.3 getchar_unlocked.3 \
95 getc.3 getw.3
96
97 MLINKS+= getwc.3 fgetwc.3 \
98 getwc.3 getwchar.3
99
100 MLINKS+= getwc_l.3 fgetwc_l.3 \
101 getwc_l.3 getwchar_l.3
102
103 MLINKS+= mktemp.3 mkdtemp.3 \
104 mktemp.3 mkstemp.3 \
105 mktemp.3 mkstemps.3
106
107 MLINKS+= printf.3 asprintf.3 \
108 printf.3 fprintf.3 \
109 printf.3 snprintf.3 \
110 printf.3 sprintf.3 \
111 printf.3 vasprintf.3 \
112 printf.3 vfprintf.3 \
113 printf.3 vprintf.3 \
114 printf.3 vsnprintf.3 \
115 printf.3 vsprintf.3
116
117 MLINKS+= printf_l.3 asprintf_l.3 \
118 printf_l.3 fprintf_l.3 \
119 printf_l.3 snprintf_l.3 \
120 printf_l.3 sprintf_l.3 \
121 printf_l.3 vasprintf_l.3 \
122 printf_l.3 vfprintf_l.3 \
123 printf_l.3 vprintf_l.3 \
124 printf_l.3 vsnprintf_l.3 \
125 printf_l.3 vsprintf_l.3
126
127 MLINKS+= putc.3 fputc.3 \
128 putc.3 putc_unlocked.3 \
129 putc.3 putchar.3 \
130 putc.3 putchar_unlocked.3 \
131 putc.3 putw.3
132
133 MLINKS+= putwc.3 fputwc.3 \
134 putwc.3 putwchar.3
135
136 MLINKS+= putwc_l.3 fputwc_l.3 \
137 putwc_l.3 putwchar_l.3
138
139 MLINKS+= scanf.3 fscanf.3 \
140 scanf.3 sscanf.3 \
141 scanf.3 vfscanf.3 \
142 scanf.3 vscanf.3 \
143 scanf.3 vsscanf.3
144
145 MLINKS+= scanf_l.3 fscanf_l.3 \
146 scanf_l.3 sscanf_l.3 \
147 scanf_l.3 vfscanf_l.3 \
148 scanf_l.3 vscanf_l.3 \
149 scanf_l.3 vsscanf_l.3
150
151 MLINKS+= setbuf.3 setbuffer.3 \
152 setbuf.3 setlinebuf.3 \
153 setbuf.3 setvbuf.3
154
155 MLINKS+= tmpnam.3 tempnam.3 \
156 tmpnam.3 tmpfile.3
157
158 MLINKS+= ungetwc.3 ungetwc_l.3
159
160 MLINKS+= wprintf.3 fwprintf.3 \
161 wprintf.3 swprintf.3 \
162 wprintf.3 vwprintf.3 \
163 wprintf.3 vfwprintf.3 \
164 wprintf.3 vswprintf.3
165
166 MLINKS+= wprintf_l.3 fwprintf_l.3 \
167 wprintf_l.3 swprintf_l.3 \
168 wprintf_l.3 vwprintf_l.3 \
169 wprintf_l.3 vfwprintf_l.3 \
170 wprintf_l.3 vswprintf_l.3
171
172 MLINKS+= wscanf.3 fwscanf.3 \
173 wscanf.3 swscanf.3 \
174 wscanf.3 vfwscanf.3 \
175 wscanf.3 vswscanf.3 \
176 wscanf.3 vwscanf.3
177
178 MLINKS+= wscanf_l.3 fwscanf_l.3 \
179 wscanf_l.3 swscanf_l.3 \
180 wscanf_l.3 vfwscanf_l.3 \
181 wscanf_l.3 vswscanf_l.3 \
182 wscanf_l.3 vwscanf_l.3
183 .endif