srcdir = .
VERSION = 2.8.0
_G_CONFIG_H=_G_config.h
tooldir = $(exec_prefix)/$(target)
INSTALLDIR = $(libdir)
gxx_include_dir=${includedir}/g++
IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
iovfprintf.o \
iovfscanf.o ioignore.o iopadn.o \
iofgetpos.o iofread.o iofscanf.o \
iofsetpos.o iogetdelim.o iogetline.o \
ioprintf.o ioseekoff.o ioseekpos.o \
outfloat.o strops.o iofclose.o iopopen.o ioungetc.o peekc.o iogetc.o \
ioputc.o iofeof.o ioferror.o
STDIO_OBJECTS = stdfiles.o
STDIO_WRAP_OBJECTS = iofdopen.o iofflush.o iofgets.o iofopen.o iofprintf.o iofputs.o iofwrite.o \
iogets.o ioperror.o ioputs.o ioscanf.o iosetbuffer.o iosetvbuf.o \
iosprintf.o iosscanf.o ioftell.o iovsscanf.o iovsprintf.o
IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
indstream.o ioassign.o ioextend.o iomanip.o iostream.o \
isgetline.o isgetsb.o isscan.o \
osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
stdiostream.o stdstrbufs.o stdstreams.o stream.o streambuf.o strstream.o \
PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o
OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o
LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS) \
$(STDIO_OBJECTS)
LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS)
LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS)
USER_INCLUDES = *.h
PICFLAG =
$(LIBIO_OBJECTS): $(_G_CONFIG_H)
libio.a: $(_G_CONFIG_H) $(LIBIO_OBJECTS)
-rm -rf libio.a
$(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
$(RANLIB) libio.a
libiostream.a: $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
-rm -rf libiostream.a
$(AR) $(AR_FLAGS) libiostream.a $(LIBIOSTREAM_USE)
$(RANLIB) libiostream.a
test: test.o libio.a
$(CC) $(CFLAGS) -o test test.o libio.a
tpipe: tpipe.o libio.a
$(CC) $(CFLAGS) -o tpipe tpipe.o libio.a
iostream.list: $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
@echo "$(LIBIOSTREAM_USE)"> iostream.list
$(LIBIOSTREAM_DEP) $(LIBIO_OBJECTS): stamp-picdir
stmp-stdio:
@rootme=`pwd`/ ; export rootme; cd stdio ; \
$(MAKE) $(FLAGS_TO_PASS) stdio.list
_G_config.h: ${srcdir}/gen-params
rootme=`pwd`/ ; export rootme; \
CC="$(CC) $(CINCLUDES)"; export CC; \
CXX="$(CXX) $(CXXINCLUDES) $(NOSTDINC) $(CXXFLAGS)"; export CXX; \
CONFIG_NM="$(NM)"; export CONFIG_NM; \
$(SHELL) ${srcdir}/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
mv tmp-params.h _G_config.h
install:
rootme=`pwd`/ ; export rootme ; \
if [ -z "$(MULTISUBDIR)" ]; then \
if [ "$(_G_CONFIG_H)" != "" ]; then \
if [ x$(enable_version_specific_runtime_libs) = xyes ]; then \
rm -f $(gxx_include_dir)/_G_config.h ; \
$(INSTALL_DATA) _G_config.h $(gxx_include_dir)/_G_config.h || exit 1; \
else \
rm -f $(tooldir)/include/_G_config.h ; \
$(INSTALL_DATA) _G_config.h $(tooldir)/include/_G_config.h || exit 1; \
fi; \
else true; \
fi ; \
cd $(srcdir); \
for FILE in $(USER_INCLUDES); do if [ $$FILE != _G_config.h ]; then \
rm -f $(gxx_include_dir)/$$FILE ; \
$(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
chmod a-x $(gxx_include_dir)/$$FILE ; \
else true; fi; done ; \
else true; \
fi
@rootme=`pwd`/ ; export rootme ; \
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
c++clean:
rm -rf $(IOSTREAM_OBJECTS)
@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=tests" DO=clean subdir_do