# Makefile for libg++.a

# Copyright (C) 1988, 1992 Free Software Foundation
#   written by Doug Lea (dl@rocky.oswego.edu)

# This file is part of GNU CC.

# GNU CC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY.  No author or distributor
# accepts responsibility to anyone for the consequences of using it
# or for whether it serves any particular purpose or works at all,
# unless he says so in writing.  Refer to the GNU CC General Public
# License for full details.

# Everyone is granted permission to copy, modify and redistribute
# GNU CC, but only under the conditions described in the
# GNU CC General Public License.   A copy of this license is
# supposed to have been given to you along with GNU CC so you
# can know your rights and responsibilities.  It should be in a
# file named COPYING.  Among other things, the copyright notice
# and this notice must be preserved on all copies.

srcdir = .

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
docdir = $(datadir)/doc

SHELL = /bin/sh

INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

AR = `if [ -f ../../binutils/ar ] ; \
	then echo ../../binutils/ar ; \
	else echo ar ; fi`

AR_FLAGS = qc
RANLIB = `if [ -f ../../binutils/ranlib ] ; \
	then echo ../../binutils/ranlib ; \
	else echo ranlib ; fi`

MAKEINFO = `if [ -f ../../texinfo/C/makefile ] ; \
	then echo ../../texinfo/C/makeinfo ; \
	else echo makeinfo ; fi`

PROGS = etags g++dep
ELISP = c++-mode.el
CC = `if [ -f ../../gcc/gcc ] ; \
	then echo ../../gcc/gcc -B../../gcc/ ; \
	else echo cc ; fi`
CFLAGS = -g

#### host and target dependent Makefile fragments come in here.
##

.PHONY: all
all: $(PROGS)

.PHONY: check
check:

.PHONY: info
info:
.PHONY: install-info
install-info:
.PHONY: clean-info
clean-info:

etags: $(srcdir)/etags.c
	$(CC) -DETAGS $(CFLAGS) -I$(srcdir)/../../include $(srcdir)/etags.c ../../libiberty/libiberty.a -o $@

g++dep: g++dep.sh
	cp $(srcdir)/g++dep.sh $@
	chmod +x $@

.PHONY: install
install:

.PHONY: mostlyclean clean distclean realclean
mostlyclean:
clean: mostlyclean
	rm -f $(PROGS)
distclean: clean
	rm -f *~ config.status Makefile
realclean: distclean

# with the gnu make, this is done automatically.
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	$(SHELL) ./config.status
