fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / stdio64 / Makefile.am
blobf31614ae3dff563270fbf1d5d77a88d486d3b85d
1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
7 # need a dummy object so objectlist.awk.in will build every time
8 GENERAL_SOURCES = dummy.c local64.h
10 ## All interfaces are EL/IX level 2
11 if ELIX_LEVEL_1
12 LIB_OBJS =
13 else
14 LIB_OBJS = \
15         fdopen64.$(oext)        \
16         fgetpos64.$(oext)       \
17         fopen64.$(oext)         \
18         freopen64.$(oext)       \
19         fseeko64.$(oext)        \
20         fsetpos64.$(oext)       \
21         ftello64.$(oext)        \
22         stdio64.$(oext)         \
23         tmpfile64.$(oext)
24 endif
26 libstdio64_la_LDFLAGS = -Xcompiler -nostdlib
28 if USE_LIBTOOL
29 noinst_LTLIBRARIES = libstdio64.la
30 libstdio64_la_SOURCES = $(GENERAL_SOURCES)
31 libstdio64_la_LIBADD = $(LIB_OBJS)
32 libstdio64_la_DEPENDENCIES = $(LIB_OBJS)
33 LIB_COMPILE = $(LTCOMPILE)
34 noinst_DATA = objectlist.awk.in
35 else
36 noinst_LIBRARIES = lib.a
37 lib_a_SOURCES = $(GENERAL_SOURCES)
38 lib_a_LIBADD = $(LIB_OBJS)
39 lib_a_DEPENDENCIES = $(LIB_OBJS)
40 LIB_COMPILE = $(COMPILE)
41 noinst_DATA =
42 endif # USE_LIBTOOL
44 include $(srcdir)/../../Makefile.shared
46 AM_CFLAGS = -I $(srcdir)/../stdio
48 CHEWOUT_FILES = \
49         fgetpos64.def           \
50         fopen64.def             \
51         freopen64.def           \
52         fseeko64.def            \
53         fsetpos64.def           \
54         ftello64.def            \
55         tmpfile64.def
57 SUFFIXES = .def
59 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
61 .c.def:
62         $(CHEW) < $< > $*.def 2> $*.ref
63         touch stmp-def
65 TARGETDOC = ../tmp.texi
67 doc: $(CHEWOUT_FILES)
68         cat $(srcdir)/stdio64.tex >> $(TARGETDOC)
70 CLEANFILES = $(CHEWOUT_FILES) *.ref