2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
GENERAL_SOURCES = \
|
2000-02-18 03:39:52 +08:00
|
|
|
clearerr.c \
|
|
|
|
fclose.c \
|
|
|
|
fdopen.c \
|
|
|
|
feof.c \
|
|
|
|
ferror.c \
|
|
|
|
fflush.c \
|
|
|
|
fgetc.c \
|
|
|
|
fgetpos.c \
|
|
|
|
fgets.c \
|
|
|
|
fileno.c \
|
|
|
|
findfp.c \
|
|
|
|
fiprintf.c \
|
|
|
|
flags.c \
|
|
|
|
fopen.c \
|
|
|
|
fprintf.c \
|
|
|
|
fputc.c \
|
|
|
|
fputs.c \
|
|
|
|
fread.c \
|
|
|
|
freopen.c \
|
|
|
|
fscanf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
fiscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
fseek.c \
|
|
|
|
fsetpos.c \
|
|
|
|
ftell.c \
|
|
|
|
fvwrite.c \
|
|
|
|
fwalk.c \
|
|
|
|
fwrite.c \
|
|
|
|
getc.c \
|
|
|
|
getchar.c \
|
2002-05-09 03:11:22 +08:00
|
|
|
getc_u.c \
|
|
|
|
getchar_u.c \
|
2002-06-22 02:29:23 +08:00
|
|
|
getdelim.c \
|
|
|
|
getline.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
gets.c \
|
|
|
|
iprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
iscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
makebuf.c \
|
|
|
|
perror.c \
|
|
|
|
printf.c \
|
|
|
|
putc.c \
|
|
|
|
putchar.c \
|
2002-05-09 03:11:22 +08:00
|
|
|
putc_u.c \
|
|
|
|
putchar_u.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
puts.c \
|
|
|
|
refill.c \
|
|
|
|
remove.c \
|
|
|
|
rename.c \
|
|
|
|
rewind.c \
|
|
|
|
rget.c \
|
|
|
|
scanf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
sccl.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
setbuf.c \
|
2002-05-24 06:05:54 +08:00
|
|
|
setbuffer.c \
|
|
|
|
setlinebuf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
setvbuf.c \
|
|
|
|
siprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
siscanf.c \
|
2004-11-20 09:42:35 +08:00
|
|
|
sniprintf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
snprintf.c \
|
|
|
|
sprintf.c \
|
|
|
|
sscanf.c \
|
|
|
|
stdio.c \
|
|
|
|
tmpfile.c \
|
|
|
|
tmpnam.c \
|
|
|
|
ungetc.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
viprintf.c \
|
|
|
|
viscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
vprintf.c \
|
2001-04-21 06:50:51 +08:00
|
|
|
vscanf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
vsiprintf.c \
|
|
|
|
vsiscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
vsnprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
vsniprintf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
vsprintf.c \
|
2001-04-21 06:50:51 +08:00
|
|
|
vsscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
wbuf.c \
|
|
|
|
wsetup.c
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
## The following are EL/IX level 2 interfaces
|
|
|
|
if ELIX_LEVEL_1
|
|
|
|
LIB_OBJS =
|
|
|
|
else
|
|
|
|
LIB_OBJS = \
|
2004-11-24 08:45:41 +08:00
|
|
|
asiprintf.$(oext) \
|
2002-08-27 02:56:09 +08:00
|
|
|
asprintf.$(oext) \
|
|
|
|
fcloseall.$(oext) \
|
|
|
|
fseeko.$(oext) \
|
|
|
|
ftello.$(oext) \
|
|
|
|
getw.$(oext) \
|
|
|
|
mktemp.$(oext) \
|
2003-01-07 09:45:32 +08:00
|
|
|
putw.$(oext) \
|
2004-11-24 08:45:41 +08:00
|
|
|
vasiprintf.$(oext) \
|
2003-01-07 09:45:32 +08:00
|
|
|
vasprintf.$(oext)
|
2002-08-27 02:56:09 +08:00
|
|
|
endif
|
|
|
|
|
2004-11-25 06:31:05 +08:00
|
|
|
LIBADD_OBJS = vfiprintf.$(oext) vfprintf.$(oext) vfscanf.$(oext) vfiscanf.$(oext)
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
libstdio_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libstdio.la
|
2002-08-27 02:56:09 +08:00
|
|
|
libstdio_la_SOURCES = $(GENERAL_SOURCES)
|
|
|
|
libstdio_la_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
|
|
|
|
libstdio_la_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
|
2001-12-14 07:50:11 +08:00
|
|
|
LIB_COMPILE = $(LTCOMPILE)
|
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2002-08-27 02:56:09 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES)
|
|
|
|
lib_a_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
|
|
|
|
lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
|
2001-12-18 10:22:55 +08:00
|
|
|
LIB_COMPILE = $(COMPILE)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
|
|
|
|
|
|
|
# This rule is needed so that libtool compiles vfiprintf before vfprintf. Otherwise
|
|
|
|
# libtool moves vfprintf.o and subsequently can't find it.
|
|
|
|
|
|
|
|
vfprintf.$(oext): vfprintf.c
|
2002-08-10 05:12:09 +08:00
|
|
|
$(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
vfiprintf.$(oext): vfprintf.c
|
2002-08-10 05:12:09 +08:00
|
|
|
$(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2004-11-24 08:45:41 +08:00
|
|
|
vfscanf.$(oext): vfscanf.c
|
|
|
|
$(LIB_COMPILE) -c $(srcdir)/vfscanf.c
|
|
|
|
|
|
|
|
vfiscanf.$(oext): vfscanf.c
|
|
|
|
$(LIB_COMPILE) -DINTEGER_ONLY -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
CHEWOUT_FILES = \
|
|
|
|
clearerr.def \
|
|
|
|
fclose.def \
|
2002-07-23 07:53:50 +08:00
|
|
|
fcloseall.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fdopen.def \
|
|
|
|
feof.def \
|
|
|
|
ferror.def \
|
|
|
|
fflush.def \
|
|
|
|
fgetc.def \
|
|
|
|
fgetpos.def \
|
|
|
|
fgets.def \
|
|
|
|
fileno.def \
|
|
|
|
fiprintf.def \
|
|
|
|
fopen.def \
|
|
|
|
fputc.def \
|
|
|
|
fputs.def \
|
|
|
|
fread.def \
|
|
|
|
freopen.def \
|
|
|
|
fseek.def \
|
|
|
|
fsetpos.def \
|
|
|
|
ftell.def \
|
|
|
|
fwrite.def \
|
|
|
|
getc.def \
|
|
|
|
getchar.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
getc_u.def \
|
|
|
|
getchar_u.def \
|
2002-06-22 02:29:23 +08:00
|
|
|
getdelim.def \
|
|
|
|
getline.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
gets.def \
|
2000-03-08 11:42:25 +08:00
|
|
|
getw.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
mktemp.def \
|
|
|
|
perror.def \
|
|
|
|
putc.def \
|
|
|
|
putchar.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
putc_u.def \
|
|
|
|
putchar_u.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
puts.def \
|
2000-03-08 11:42:25 +08:00
|
|
|
putw.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
remove.def \
|
|
|
|
rename.def \
|
|
|
|
rewind.def \
|
|
|
|
setbuf.def \
|
2002-05-24 06:05:54 +08:00
|
|
|
setbuffer.def \
|
|
|
|
setlinebuf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
setvbuf.def \
|
|
|
|
siprintf.def \
|
2004-11-24 08:45:41 +08:00
|
|
|
siscanf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
sprintf.def \
|
|
|
|
sscanf.def \
|
|
|
|
tmpfile.def \
|
|
|
|
tmpnam.def \
|
2001-04-21 06:50:51 +08:00
|
|
|
vfprintf.def \
|
2004-11-24 08:45:41 +08:00
|
|
|
vfscanf.def \
|
|
|
|
viprintf.def \
|
|
|
|
viscanf.def
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
SUFFIXES = .def
|
|
|
|
|
|
|
|
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
|
|
|
|
|
|
|
|
.c.def:
|
|
|
|
$(CHEW) < $< > $*.def 2> $*.ref
|
|
|
|
touch stmp-def
|
|
|
|
|
|
|
|
TARGETDOC = ../tmp.texi
|
|
|
|
|
|
|
|
doc: $(CHEWOUT_FILES)
|
|
|
|
cat $(srcdir)/stdio.tex >> $(TARGETDOC)
|
|
|
|
|
|
|
|
CLEANFILES = $(CHEWOUT_FILES) *.ref
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
fclose.$(oext): local.h
|
|
|
|
fdopen.$(oext): local.h
|
|
|
|
fflush.$(oext): local.h
|
|
|
|
findfp.$(oext): local.h
|
|
|
|
fopen.$(oext): local.h
|
|
|
|
fputs.$(oext): fvwrite.h
|
|
|
|
fread.$(oext): local.h
|
|
|
|
freopen.$(oext): local.h
|
|
|
|
fseek.$(oext): local.h
|
|
|
|
ftell.$(oext): local.h
|
|
|
|
fvwrite.$(oext): local.h fvwrite.h
|
|
|
|
fwalk.$(oext): local.h
|
|
|
|
fwrite.$(oext): local.h fvwrite.h
|
2004-11-24 08:45:41 +08:00
|
|
|
iscanf.$(oext): local.h
|
2001-12-14 07:50:11 +08:00
|
|
|
makebuf.$(oext): local.h
|
|
|
|
puts.$(oext): fvwrite.h
|
|
|
|
refill.$(oext): local.h
|
|
|
|
scanf.$(oext): local.h
|
|
|
|
setbuf.$(oext): local.h
|
|
|
|
setvbuf.$(oext): local.h
|
|
|
|
siprintf.$(oext): local.h
|
2004-11-24 08:45:41 +08:00
|
|
|
sniprintf.$(oext): local.h
|
2001-12-14 07:50:11 +08:00
|
|
|
sprintf.$(oext): local.h
|
2004-11-24 08:45:41 +08:00
|
|
|
siscanf.$(oext): local.h
|
2001-12-14 07:50:11 +08:00
|
|
|
sscanf.$(oext): local.h
|
|
|
|
stdio.$(oext): local.h
|
|
|
|
ungetc.$(oext): local.h
|
|
|
|
vfiprintf.$(oext): local.h
|
|
|
|
vfprintf.$(oext): local.h
|
2004-11-24 08:45:41 +08:00
|
|
|
vfiscanf.$(oext): local.h floatio.h
|
2001-12-14 07:50:11 +08:00
|
|
|
vfscanf.$(oext): local.h floatio.h
|
2004-11-24 08:45:41 +08:00
|
|
|
viscanf.$(oext): local.h
|
2001-12-14 07:50:11 +08:00
|
|
|
vscanf.$(oext): local.h
|
2004-11-24 08:45:41 +08:00
|
|
|
vsniprintf.$(oext): local.h
|
|
|
|
vsiscanf.$(oext): local.h
|
2001-12-14 07:50:11 +08:00
|
|
|
vsscanf.$(oext): local.h
|
|
|
|
wbuf.$(oext): local.h fvwrite.h
|
|
|
|
wsetup.$(oext): local.h
|