255 lines
5.1 KiB
Makefile
255 lines
5.1 KiB
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
GENERAL_SOURCES = \
|
|
clearerr.c \
|
|
dprintf.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 \
|
|
fiscanf.c \
|
|
fseek.c \
|
|
fsetpos.c \
|
|
ftell.c \
|
|
fvwrite.c \
|
|
fwalk.c \
|
|
fwrite.c \
|
|
getc.c \
|
|
getchar.c \
|
|
getc_u.c \
|
|
getchar_u.c \
|
|
getdelim.c \
|
|
getline.c \
|
|
gets.c \
|
|
iprintf.c \
|
|
iscanf.c \
|
|
makebuf.c \
|
|
perror.c \
|
|
printf.c \
|
|
putc.c \
|
|
putchar.c \
|
|
putc_u.c \
|
|
putchar_u.c \
|
|
puts.c \
|
|
refill.c \
|
|
remove.c \
|
|
rename.c \
|
|
rewind.c \
|
|
rget.c \
|
|
scanf.c \
|
|
sccl.c \
|
|
setbuf.c \
|
|
setbuffer.c \
|
|
setlinebuf.c \
|
|
setvbuf.c \
|
|
siprintf.c \
|
|
siscanf.c \
|
|
sniprintf.c \
|
|
snprintf.c \
|
|
sprintf.c \
|
|
sscanf.c \
|
|
stdio.c \
|
|
tmpfile.c \
|
|
tmpnam.c \
|
|
ungetc.c \
|
|
vdprintf.c \
|
|
viprintf.c \
|
|
viscanf.c \
|
|
vprintf.c \
|
|
vscanf.c \
|
|
vsiprintf.c \
|
|
vsiscanf.c \
|
|
vsnprintf.c \
|
|
vsniprintf.c \
|
|
vsprintf.c \
|
|
vsscanf.c \
|
|
wbuf.c \
|
|
wsetup.c
|
|
|
|
## The following are EL/IX level 2 interfaces
|
|
if ELIX_LEVEL_1
|
|
ELIX_SOURCES =
|
|
else
|
|
ELIX_SOURCES = \
|
|
asiprintf.c \
|
|
asprintf.c \
|
|
fcloseall.c \
|
|
fseeko.c \
|
|
ftello.c \
|
|
getw.c \
|
|
mktemp.c \
|
|
putw.c \
|
|
vasiprintf.c \
|
|
vasprintf.c
|
|
endif
|
|
|
|
LIBADD_OBJS = \
|
|
$(lpfx)vfiprintf.$(oext) $(lpfx)vfprintf.$(oext) \
|
|
$(lpfx)vfscanf.$(oext) $(lpfx)vfiscanf.$(oext)
|
|
|
|
libstdio_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
if USE_LIBTOOL
|
|
noinst_LTLIBRARIES = libstdio.la
|
|
libstdio_la_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
|
libstdio_la_LIBADD = $(LIBADD_OBJS)
|
|
libstdio_la_DEPENDENCIES = $(LIBADD_OBJS)
|
|
LIB_COMPILE = $(LTCOMPILE)
|
|
noinst_DATA = objectlist.awk.in
|
|
else
|
|
noinst_LIBRARIES = lib.a
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
|
lib_a_LIBADD = $(LIBADD_OBJS)
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
|
lib_a_DEPENDENCIES = $(LIBADD_OBJS)
|
|
LIB_COMPILE = $(COMPILE)
|
|
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.
|
|
|
|
$(lpfx)vfprintf.$(oext): vfprintf.c
|
|
$(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c -o $@
|
|
|
|
$(lpfx)vfiprintf.$(oext): vfprintf.c
|
|
$(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
|
|
|
|
$(lpfx)vfscanf.$(oext): vfscanf.c
|
|
$(LIB_COMPILE) -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
$(lpfx)vfiscanf.$(oext): vfscanf.c
|
|
$(LIB_COMPILE) -DINTEGER_ONLY -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
CHEWOUT_FILES = \
|
|
clearerr.def \
|
|
dprintf.def \
|
|
fclose.def \
|
|
fcloseall.def \
|
|
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 \
|
|
getc_u.def \
|
|
getchar_u.def \
|
|
getdelim.def \
|
|
getline.def \
|
|
gets.def \
|
|
getw.def \
|
|
mktemp.def \
|
|
perror.def \
|
|
putc.def \
|
|
putchar.def \
|
|
putc_u.def \
|
|
putchar_u.def \
|
|
puts.def \
|
|
putw.def \
|
|
remove.def \
|
|
rename.def \
|
|
rewind.def \
|
|
setbuf.def \
|
|
setbuffer.def \
|
|
setlinebuf.def \
|
|
setvbuf.def \
|
|
siprintf.def \
|
|
siscanf.def \
|
|
sprintf.def \
|
|
sscanf.def \
|
|
tmpfile.def \
|
|
tmpnam.def \
|
|
vfprintf.def \
|
|
vfscanf.def \
|
|
viprintf.def \
|
|
viscanf.def
|
|
|
|
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
|
|
|
|
$(lpfx)fclose.$(oext): local.h
|
|
$(lpfx)fdopen.$(oext): local.h
|
|
$(lpfx)fflush.$(oext): local.h
|
|
$(lpfx)findfp.$(oext): local.h
|
|
$(lpfx)fopen.$(oext): local.h
|
|
$(lpfx)fputs.$(oext): fvwrite.h
|
|
$(lpfx)fread.$(oext): local.h
|
|
$(lpfx)freopen.$(oext): local.h
|
|
$(lpfx)fseek.$(oext): local.h
|
|
$(lpfx)ftell.$(oext): local.h
|
|
$(lpfx)fvwrite.$(oext): local.h fvwrite.h
|
|
$(lpfx)fwalk.$(oext): local.h
|
|
$(lpfx)fwrite.$(oext): local.h fvwrite.h
|
|
$(lpfx)iscanf.$(oext): local.h
|
|
$(lpfx)makebuf.$(oext): local.h
|
|
$(lpfx)puts.$(oext): fvwrite.h
|
|
$(lpfx)refill.$(oext): local.h
|
|
$(lpfx)scanf.$(oext): local.h
|
|
$(lpfx)setbuf.$(oext): local.h
|
|
$(lpfx)setvbuf.$(oext): local.h
|
|
$(lpfx)siprintf.$(oext): local.h
|
|
$(lpfx)sniprintf.$(oext): local.h
|
|
$(lpfx)sprintf.$(oext): local.h
|
|
$(lpfx)siscanf.$(oext): local.h
|
|
$(lpfx)sscanf.$(oext): local.h
|
|
$(lpfx)stdio.$(oext): local.h
|
|
$(lpfx)ungetc.$(oext): local.h
|
|
$(lpfx)vfiprintf.$(oext): local.h
|
|
$(lpfx)vfprintf.$(oext): local.h
|
|
$(lpfx)vfiscanf.$(oext): local.h floatio.h
|
|
$(lpfx)vfscanf.$(oext): local.h floatio.h
|
|
$(lpfx)viscanf.$(oext): local.h
|
|
$(lpfx)vscanf.$(oext): local.h
|
|
$(lpfx)vsniprintf.$(oext): local.h
|
|
$(lpfx)vsiscanf.$(oext): local.h
|
|
$(lpfx)vsscanf.$(oext): local.h
|
|
$(lpfx)wbuf.$(oext): local.h fvwrite.h
|
|
$(lpfx)wsetup.$(oext): local.h
|