home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
libg++-2.7.1-base.tgz
/
libg++-2.7.1-src.tar
/
fsf
/
libg++
/
libstdc++
/
Make.pack
< prev
next >
Wrap
Text File
|
1995-11-12
|
7KB
|
226 lines
# Start of package fragment generated by /kalessin/giga/bothner/dist/devo/libstdc++/config.shared.
MULTITOP = .
MULTIDIRS =
MULTISUBDIR =
MULTIDO = true
MULTICLEAN = true
# TOPDIR=$${rootme}$(MULTITOP)/../ invsubdir= subdir=
srcdir = /kalessin/giga/bothner/dist/devo/libstdc++
SUBDIRS = stl tests
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info
includedir = $(prefix)/include
gxx_includedir = $(libdir)/g++-include
docdir = $(datadir)/doc
SHELL = /bin/sh
INSTALL = $(srcdir)/../install.sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
AR = `if [ -f $${rootme}$(MULTITOP)/../binutils/ar ] ; \
then echo $${rootme}$(MULTITOP)/../binutils/ar ; \
else echo ar ; fi`
AR_FLAGS = rc
RANLIB = `if [ -f $${rootme}$(MULTITOP)/../binutils/ranlib ] ; \
then echo $${rootme}$(MULTITOP)/../binutils/ranlib ; \
else echo ranlib ; fi`
NM = `if [ -f $${rootme}$(MULTITOP)/../binutils/nm.new ] ; \
then echo $${rootme}$(MULTITOP)/../binutils/nm.new ; \
else echo nm ; fi`
NLMCONV = `if [ -f $${rootme}$(MULTITOP)/../binutils/nlmconv ] ; \
then echo $${rootme}$(MULTITOP)/../binutils/nlmconv ; \
else echo nlmconv ; fi`
LD = `if [ -f $${rootme}$(MULTITOP)/../ld/ld.new ] ; \
then echo $${rootme}$(MULTITOP)/../ld/ld.new ; \
else echo ld ; fi`
MAKEINFO = `if [ -f $${rootme}$(MULTITOP)/../texinfo/C/makeinfo ] ; \
then echo $${rootme}$(MULTITOP)/../texinfo/C/makeinfo ; \
else echo makeinfo ; fi`
TEXIDIR=${srcdir}/..//texinfo
TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi
CC = cc
CXX = g++ -O
WRAP_C_INCLUDES =
CFLAGS = -g
CXXFLAGS = -g -O3
LIBCFLAGS = $(CFLAGS)
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
PICFLAG =
PICDIR = stamp-picdir
all: $(PICDIR) libs multi-all
@rootme=`pwd`/; export rootme; \
$(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do
.PHONY: all
.PHONY: multi-all
multi-all:
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
.PHONY: subdir_do
subdir_do: force
@rootme=`pwd`/; export rootme; \
for i in $(DODIRS); do \
if [ -f ./$$i/Makefile ] ; then \
echo "cd $$i; make $(DO) ..." ; \
(cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \
else true ; fi ; \
done
# List of variables to pass to sub-makes. This should not be needed
# by GNU make or Sun make (both of which pass command-line variable
# overrides thouh $(MAKE)) but may be needed by older versions.
FLAGS_TO_PASS= \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"prefix=$(prefix)" \
"exec_prefix=$(exec_prefix)" \
"tooldir=$(tooldir)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"CXX=$(CXX)" \
"CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"RANLIB=$(RANLIB)" \
"LIBCFLAGS=$(LIBCFLAGS)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"MAKEINFO=$(MAKEINFO)" \
"PICFLAG=$(PICFLAG)"
NOSTDINC = -nostdinc++
CXXINCLUDES = -I/kalessin/giga/bothner/dist/devo/libstdc++ -I$(MULTITOP)/../libio -I/kalessin/giga/bothner/dist/devo/libstdc++/../libio $(NOSTDINC)
XCFLAGS = $(LIBCFLAGS)
XCXXFLAGS = $(LIBCXXFLAGS)
.SUFFIXES: .o .C .cc .c
COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES)
.c.o:
[ -z "$(PICFLAG)" ] ||\
$(COMPILE.c) $(PICFLAG) $< -o pic/$@
$(COMPILE.c) $<
COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES)
.C.o:
[ -z "$(PICFLAG)" ] ||\
$(COMPILE.cc) $(PICFLAG) $< -o pic/$@
$(COMPILE.cc) $<
.cc.o:
[ -z "$(PICFLAG)" ] || \
$(COMPILE.cc) $(PICFLAG) $< -o pic/$@
$(COMPILE.cc) $<
stamp-picdir:
if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
.PHONY: install
install:
.PHONY: check
check: $(PICDIR) libs
rootme=`pwd`/; export rootme; \
SAVE_LLPATH="$${SAVE_LLPATH-$$LD_LIBRARY_PATH}"; export SAVE_LLPATH; \
LD_LIBRARY_PATH="$${rootme}${TOLIBGXX}../libstdc++:$${rootme}${TOLIBGXX}../libg++:$$SAVE_LLPATH"; \
export LD_LIBRARY_PATH; \
$(MAKE) "DODIRS=$(SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do
.PHONY: info dvi install-info clean-info
info:
dvi:
install-info:
.PHONY: do-clean-info clean-info do-clean-dvi clean-dvi
do-clean-info:
do-clean-dvi:
clean-info: do-clean-info
clean-dvi: do-clean-dvi
.PHONY: boltcc
boltcc:
rootme=`pwd`/ ; export rootme ; $(MAKE) $(FLAGS_TO_PASS)
# clean rules
.PHONY: mostlyclean clean distclean maintainer-clean realclean
.PHONY: do-clean subdir_distclean subdir_maintainer_clean
mostlyclean: do-clean-dvi
rm -rf *.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)
@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=mostlyclean subdir_do
@$(MULTICLEAN) multi-clean DO=mostlyclean
do-clean: do-clean-dvi
rm -rf *.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK) $(CLEAN_JUNK)
clean: do-clean
@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=clean subdir_do
@$(MULTICLEAN) multi-clean DO=clean
subdir_distclean:
@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=distclean subdir_do
distclean: do-clean subdir_distclean
@$(MULTICLEAN) multi-clean DO=distclean
rm -rf config.status Makefile target-mkfrag
subdir_maintainer_clean:
@$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=maintainer-clean subdir_do
maintainer-clean realclean: do-clean subdir_maintainer_clean do-clean-info
@$(MULTICLEAN) multi-clean DO=maintainer-clean
rm -rf config.status Makefile target-mkfrag depend *.info*
.PHONY: force
force:
# with the gnu make, this is done automatically.
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) ./config.status
.NOEXPORT:
MAKEOVERRIDES=
DEPEND_SOURCES = ${srcdir}/*.cc ${srcdir}/*.c
depend.new:
# The sed script below attempts to make the depend output portable.
# It cleans up the depenency information generated by cpp.
# It replaces instances of $(srcdir)/ by the string '$(srcdir)/'.
# It removes remaining absolute files names (such as /usr/include/stdio.h).
# It the removes lines containing only "\\".
# It prepends '$(MULTITOP)/' to relative pathnames to other libg++ dirs.
# The awk script removes a continuation marker that is followed by
# a blank line, since that may confuse make.
echo "# AUTOMATICALLY GENERATED BY 'make depend' - DO NOT EDIT" \
>depend.new
gcc -M $(CXXINCLUDES) $(DEPEND_SOURCES) \
| sed -e 's|$(srcdir)/|$$(srcdir)/|g' \
-e 's| /[^ ]*[.]h||g' \
-e 's| [.]\([^ ]*/libio/[^ ]*[.]h\)| $$(MULTITOP)/.\1|g' \
-e 's| [.]\([^ ]*/libstdc++/[^ ]*[.]h\)| $$(MULTITOP)/.\1|g' \
-e '/^[ ]*\\$$/d' -e 's/^[ ]*$$//' \
| awk 'BEGIN { prev = "" } \
/^( )*$$/ { if (prev ~ /\\$$/) \
{ prev = substr(prev,1,length(prev)-1); next } } \
{ print prev; prev = $$0 } \
END { if (prev !~ /^( )*$$/) print prev }' \
>> depend.new
$(srcdir)/depend: depend.new
mv depend.new $(srcdir)/depend
# End of package fragment generated by /kalessin/giga/bothner/dist/devo/libstdc++/config.shared.