1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
7GENERAL_SOURCES = \
8	clearerr.c 			\
9	fclose.c 			\
10	fdopen.c 			\
11	feof.c 				\
12	ferror.c 			\
13	fflush.c 			\
14	fgetc.c 			\
15	fgetpos.c 			\
16	fgets.c 			\
17	fileno.c			\
18	findfp.c 			\
19	fiprintf.c 			\
20	flags.c 			\
21	fopen.c 			\
22	fprintf.c 			\
23	fputc.c 			\
24	fputs.c 			\
25	fread.c 			\
26	freopen.c 			\
27	fscanf.c 			\
28	fseek.c 			\
29	fsetpos.c 			\
30	ftell.c 			\
31	fvwrite.c 			\
32	fwalk.c 			\
33	fwrite.c 			\
34	getc.c 				\
35	getchar.c 			\
36	getc_u.c			\
37	getchar_u.c			\
38	getdelim.c			\
39	getline.c			\
40	gets.c 				\
41	iprintf.c 			\
42	makebuf.c			\
43	perror.c 			\
44	printf.c 			\
45	putc.c 				\
46	putchar.c 			\
47	putc_u.c			\
48	putchar_u.c			\
49	puts.c 				\
50	refill.c 			\
51	remove.c 			\
52	rename.c 			\
53	rewind.c 			\
54	rget.c 				\
55	scanf.c 			\
56	setbuf.c 			\
57	setbuffer.c 			\
58	setlinebuf.c 			\
59	setvbuf.c 			\
60	siprintf.c 			\
61	snprintf.c			\
62	sprintf.c 			\
63	sscanf.c 			\
64	stdio.c 			\
65	tmpfile.c 			\
66	tmpnam.c 			\
67	ungetc.c 			\
68	vfscanf.c 			\
69	vprintf.c 			\
70	vscanf.c			\
71	vsnprintf.c			\
72	vsprintf.c 			\
73	vsscanf.c			\
74	wbuf.c 				\
75	wsetup.c
76
77## The following are EL/IX level 2 interfaces
78if ELIX_LEVEL_1
79LIB_OBJS =
80else
81LIB_OBJS = \
82	asprintf.$(oext)		\
83	fcloseall.$(oext)		\
84	fseeko.$(oext) 			\
85	ftello.$(oext) 			\
86	getw.$(oext)			\
87	mktemp.$(oext) 			\
88	putw.$(oext) 			\
89	vasprintf.$(oext)
90endif
91
92LIBADD_OBJS = vfiprintf.$(oext) vfprintf.$(oext)
93
94libstdio_la_LDFLAGS = -Xcompiler -nostdlib
95
96if USE_LIBTOOL
97noinst_LTLIBRARIES = libstdio.la
98libstdio_la_SOURCES = $(GENERAL_SOURCES)
99libstdio_la_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
100libstdio_la_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
101LIB_COMPILE = $(LTCOMPILE)
102noinst_DATA = objectlist.awk.in
103else
104noinst_LIBRARIES = lib.a
105lib_a_SOURCES = $(GENERAL_SOURCES)
106lib_a_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
107lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
108LIB_COMPILE = $(COMPILE)
109noinst_DATA =
110endif # USE_LIBTOOL
111
112include $(srcdir)/../../Makefile.shared
113
114# This rule is needed so that libtool compiles vfiprintf before vfprintf. Otherwise
115# libtool moves vfprintf.o and subsequently can't find it.
116
117vfprintf.$(oext): vfprintf.c
118	$(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c
119
120vfiprintf.$(oext): vfprintf.c
121	$(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
122
123CHEWOUT_FILES = \
124	clearerr.def		\
125	fclose.def		\
126	fcloseall.def		\
127	fdopen.def		\
128	feof.def		\
129	ferror.def		\
130	fflush.def		\
131	fgetc.def		\
132	fgetpos.def		\
133	fgets.def		\
134	fileno.def		\
135	fiprintf.def		\
136	fopen.def		\
137	fputc.def		\
138	fputs.def		\
139	fread.def		\
140	freopen.def		\
141	fseek.def		\
142	fsetpos.def		\
143	ftell.def		\
144	fwrite.def		\
145	getc.def		\
146	getchar.def		\
147	getc_u.def		\
148	getchar_u.def		\
149	getdelim.def		\
150	getline.def		\
151	gets.def		\
152	getw.def		\
153	iprintf.def		\
154	mktemp.def		\
155	perror.def		\
156	putc.def		\
157	putchar.def		\
158	putc_u.def		\
159	putchar_u.def		\
160	puts.def		\
161	putw.def		\
162	remove.def		\
163	rename.def		\
164	rewind.def		\
165	setbuf.def		\
166	setbuffer.def		\
167	setlinebuf.def		\
168	setvbuf.def		\
169	siprintf.def		\
170	sprintf.def		\
171	sscanf.def		\
172	tmpfile.def		\
173	tmpnam.def		\
174	vfprintf.def		\
175	vfscanf.def
176
177SUFFIXES = .def
178
179CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
180
181.c.def:
182	$(CHEW) < $< > $*.def 2> $*.ref
183	touch stmp-def
184
185TARGETDOC = ../tmp.texi
186
187doc: $(CHEWOUT_FILES)
188	cat $(srcdir)/stdio.tex >> $(TARGETDOC)
189
190CLEANFILES = $(CHEWOUT_FILES) *.ref
191
192fclose.$(oext): local.h
193fdopen.$(oext): local.h
194fflush.$(oext): local.h
195findfp.$(oext): local.h
196fopen.$(oext): local.h
197fputs.$(oext): fvwrite.h
198fread.$(oext): local.h
199freopen.$(oext): local.h
200fseek.$(oext): local.h
201ftell.$(oext): local.h
202fvwrite.$(oext): local.h fvwrite.h
203fwalk.$(oext): local.h
204fwrite.$(oext): local.h fvwrite.h
205makebuf.$(oext): local.h
206puts.$(oext): fvwrite.h
207refill.$(oext): local.h
208scanf.$(oext): local.h
209setbuf.$(oext): local.h
210setvbuf.$(oext): local.h
211siprintf.$(oext): local.h
212sprintf.$(oext): local.h
213sscanf.$(oext): local.h
214stdio.$(oext): local.h
215ungetc.$(oext): local.h
216vfiprintf.$(oext): local.h
217vfprintf.$(oext): local.h
218vfscanf.$(oext): local.h floatio.h
219vscanf.$(oext): local.h
220vsscanf.$(oext): local.h
221wbuf.$(oext): local.h fvwrite.h
222wsetup.$(oext): local.h
223