summaryrefslogtreecommitdiff
path: root/gnu/egcs/libio/Makefile.bsd-wrapper
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-26 15:47:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-26 15:47:03 +0000
commit65fa0603a58b26cc81d37e4a378857741f566f9b (patch)
treecb744e175ccc2595e452481f36a30de08790f5df /gnu/egcs/libio/Makefile.bsd-wrapper
parent6e05ed8e30264d12948e8a5c201641e9eba78261 (diff)
Wrappers + lib versions
Diffstat (limited to 'gnu/egcs/libio/Makefile.bsd-wrapper')
-rw-r--r--gnu/egcs/libio/Makefile.bsd-wrapper96
1 files changed, 96 insertions, 0 deletions
diff --git a/gnu/egcs/libio/Makefile.bsd-wrapper b/gnu/egcs/libio/Makefile.bsd-wrapper
new file mode 100644
index 00000000000..bcd4b2d0f98
--- /dev/null
+++ b/gnu/egcs/libio/Makefile.bsd-wrapper
@@ -0,0 +1,96 @@
+# $OpenBSD: Makefile.bsd-wrapper,v 1.1 1999/05/26 15:47:01 espie Exp $
+
+LIBIO= io
+LIBIOSTREAM= iostream
+LIB= $(LIBIO)
+CXXFLAGS+= -fno-implicit-templates
+CPPFLAGS+= -I$(.CURDIR) -I$(.OBJDIR)
+VERSION= 2.9.0
+
+IO_SRCS= filedoalloc.c floatconv.c genops.c fileops.c iovfprintf.c \
+ iovfscanf.c ioignore.c iopadn.c iofgetpos.c iofread.c \
+ iofscanf.c iofsetpos.c iogetdelim.c iogetline.c ioprintf.c \
+ ioseekoff.c ioseekpos.c outfloat.c strops.c iofclose.c \
+ iopopen.c ioungetc.c peekc.c iogetc.c ioputc.c iofeof.c \
+ ioferror.c
+STDIO_SRCS= stdfiles.c
+STDIO_WRAP_SRCS=iofdopen.c iofflush.c iofgets.c iofopen.c iofprintf.c \
+ iofputs.c iofwrite.c iogets.c ioperror.c ioputs.c ioscanf.c \
+ iosetbuffer.c iosetvbuf.c iosprintf.c iosscanf.c ioftell.c \
+ iovsscanf.c iovsprintf.c
+IOSTREAM_SRCS= builtinbuf.cc filebuf.cc fstream.cc indstream.cc ioassign.cc \
+ ioextend.cc iomanip.cc iostream.cc isgetline.cc isgetsb.cc \
+ isscan.cc osform.cc procbuf.cc sbform.cc sbgetline.cc \
+ sbscan.cc stdiostream.cc stdstrbufs.cc stdstreams.cc \
+ stream.cc streambuf.cc strstream.cc PlotFile.cc SFile.cc \
+ parsestream.cc pfstream.cc editbuf.cc
+OSPRIM_SRCS= ioprims.c iostrerror.c cleanup.c
+LIBIO_SRCS= $(IO_SRCS) $(STDIO_WRAP_SRCS) $(OSPRIM_SRCS) $(STDIO_SRCS)
+LIBIOSTREAM_SRCS= $(IO_SRCS) $(IOSTREAM_SRCS) $(OSPRIM_SRCS)
+
+SRCS= $(LIBIO_SRCS)
+
+CLEANFILES+= _G_config.h iostream.list dummy.h
+
+FILES= *.h
+
+all: _G_config.h iostream.list $(LIBIOSTREAM)
+
+beforedepend: _G_config.h
+
+$(LIBIOSTREAM):
+ @if [ -z "$(MAKE_IOSTREAM)" ] ; then \
+ cd $(.CURDIR); $(MAKE) -f $(.CURDIR)/Makefile.bsd-wrapper LIB=$(LIBIOSTREAM) SRCS='$$(LIBIOSTREAM_SRCS)' MAKE_IOSTREAM=true ; \
+ exit ; \
+ fi
+
+_G_config.h: gen-params
+ @echo Building $(.TARGET)
+ @rootme=`pwd`/ ; export rootme; \
+ CC="$(CC)"; export CC; \
+ CXX="$(CXX) $(CXXFLAGS)"; export CXX; \
+ CONFIG_NM="nm"; export CONFIG_NM; \
+ sh $(.CURDIR)/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
+ @mv tmp-params.h _G_config.h
+
+iostream.list: _G_config.h
+ @echo Generating $(.TARGET)
+ @echo "$(LIBIOSTREAM_SRCS:N*.h:R:S/$/.o/g)" > iostream.list
+clean:
+ rm -f a.out [Ee]rrs mklog core *.core $(CLEANFILES)
+ rm -f lib$(LIBIO).a $(LIBIO_SRCS:.c=.o)
+ rm -f lib$(LIBIO)_p.a $(LIBIO_SRCS:.c=.po)
+ rm -f lib$(LIBIO)_pic.a lib$(LIBIO).so.*.* $(LIBIO_SRCS:.c=.so)
+ rm -f llib-lib$(LIBIO).ln $(LIBIO_SRCS:.c=.ln)
+ rm -f lib$(LIBIOSTREAM).a $(IOSTREAM_SRCS:.cc=.o)
+ rm -f lib$(LIBIOSTREAM)_p.a $(IOSTREAM_SRCS:.cc=.po)
+ rm -f lib$(LIBIOSTREAM)_pic.a lib$(LIBIOSTREAM).so.*.* \
+ $(IOSTREAM_SRCS:.cc=.so)
+ rm -f llib-lib$(LIBIOSTREAM).ln $(IOSTREAM_SRCS:.cc=.ln)
+
+includes:
+ install -d -m 755 -o $(BINOWN) -g $(BINGRP) $(DESTDIR)/usr/include/g++
+ @-cd $(.CURDIR); for i in $(FILES); do \
+ if [ -e $$i ]; then \
+ cmp -s $$i $(DESTDIR)/usr/include/g++/$$i || \
+ install -c -o $(BINOWN) -g $(BINGRP) -m $(NONBINMODE) \
+ $$i $(DESTDIR)/usr/include/g++/$$i; \
+ fi \
+ done
+ @-for i in $(FILES); do \
+ if [ -e $$i ]; then \
+ cmp -s $$i $(DESTDIR)/usr/include/g++/$$i || \
+ install -c -o $(BINOWN) -g $(BINGRP) -m $(NONBINMODE) \
+ $$i $(DESTDIR)/usr/include/g++/$$i; \
+ fi \
+ done
+
+install:
+ @echo "done"
+# @-cd $(.CURDIR); for i in iostream.info* ; do \
+# cmp -s $$i $(DESTDIR)/usr/share/info/$$i || \
+# install -c -o $(BINOWN) -g $(BINGRP) -m $(NONBINMODE) \
+# $$i $(DESTDIR)/usr/share/info/$$i; \
+# done
+
+.include <bsd.lib.mk>