1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
7if HAVE_STDIO64_DIR
8STDIO64_OBJECTS = \
9	fstat64r.$(oext) \
10	lseek64r.$(oext) \
11	open64r.$(oext)
12
13STDIO64_DEFS = \
14	fstat64r.def \
15	lseek64r.def \
16	open64r.def
17endif
18
19ELIX_2_OBJS = $(STDIO64_OBJECTS)
20ELIX_3_OBJS = execr.$(oext)
21
22if ELIX_LEVEL_1
23LIB_OBJS =
24else
25if ELIX_LEVEL_2
26LIB_OBJS = $(ELIX_2_OBJS)
27else
28LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS)
29endif
30endif
31
32GENERAL_SOURCES = \
33	closer.c \
34	reent.c \
35	impure.c \
36	fcntlr.c \
37	fstatr.c \
38	getreent.c \
39	linkr.c \
40	lseekr.c \
41	openr.c \
42	readr.c \
43	signalr.c \
44	signgam.c \
45	sbrkr.c \
46	statr.c \
47	timer.c \
48	unlinkr.c \
49	writer.c
50
51libreent_la_LDFLAGS = -Xcompiler -nostdlib
52
53if USE_LIBTOOL
54noinst_LTLIBRARIES = libreent.la
55libreent_la_SOURCES = $(GENERAL_SOURCES)
56libreent_la_LIBADD = $(LIB_OBJS)
57libreent_la_DEPENDENCIES = $(LIB_OBJS)
58noinst_DATA = objectlist.awk.in
59else
60noinst_LIBRARIES = lib.a
61lib_a_SOURCES = $(GENERAL_SOURCES)
62lib_a_LIBADD = $(LIB_OBJS)
63lib_a_DEPENDENCIES = $(LIB_OBJS)
64noinst_DATA =
65endif # USE_LIBTOOL
66
67include $(srcdir)/../../Makefile.shared
68
69CHEWOUT_FILES = \
70	closer.def \
71	reent.def \
72	execr.def \
73	fcntlr.def \
74	fstatr.def \
75	linkr.def \
76	lseekr.def \
77	openr.def \
78	readr.def \
79	signalr.def \
80	sbrkr.def \
81	statr.def \
82	timer.def \
83	unlinkr.def \
84	$(STDIO64_DEFS) \
85	writer.def
86
87SUFFIXES = .def .h
88
89CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
90
91.c.def:
92	$(CHEW) < $< > $*.def 2> $*.ref
93	touch stmp-def
94
95TARGETDOC = ../tmp.texi
96
97doc: $(CHEWOUT_FILES)
98	cat $(srcdir)/reent.tex >> $(TARGETDOC)
99
100impure.$(oext): $(srcdir)/impure.c $(srcdir)/../include/sys/reent.h
101
102CLEANFILES = $(CHEWOUT_FILES) *.ref
103