#
|
#
|
# Makefile
|
# Makefile
|
# Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
|
# Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
|
#
|
#
|
# This file is free software; you can redistribute it and/or modify
|
# This file is free software; you can redistribute it and/or modify
|
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
# (at your option) any later version.
|
# (at your option) any later version.
|
#
|
#
|
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
#
|
#
|
|
|
#
|
#
|
# Makefile for devo/util/misc
|
# Makefile for devo/util/misc
|
#
|
#
|
|
|
srcdir = .
|
srcdir = .
|
|
|
prefix = /usr/local
|
prefix = /usr/local
|
|
|
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
tooldir = $(exec_prefix)
|
tooldir = $(exec_prefix)
|
|
|
SHELL = /bin/sh
|
SHELL = /bin/sh
|
|
|
INSTALL = `cd $(srcdir); pwd`/../../install-sh -c
|
INSTALL = `cd $(srcdir); pwd`/../../install-sh -c
|
INSTALL_PROGRAM = $(INSTALL)
|
INSTALL_PROGRAM = $(INSTALL)
|
INSTALL_DATA = $(INSTALL)
|
INSTALL_DATA = $(INSTALL)
|
|
|
AR_FLAGS = qv
|
AR_FLAGS = qv
|
MAKEINFO = makeinfo
|
MAKEINFO = makeinfo
|
|
|
SUBDIRS=
|
SUBDIRS=
|
|
|
.NOEXPORT:
|
.NOEXPORT:
|
MAKEOVERRIDES=
|
MAKEOVERRIDES=
|
|
|
#### Host, target, and site specific Makefile fragments come in here.
|
#### Host, target, and site specific Makefile fragments come in here.
|
###
|
###
|
|
|
# These are roughly topologically sorted in order to make porting more
|
# These are roughly topologically sorted in order to make porting more
|
# streamlined.
|
# streamlined.
|
FLAGS_TO_PASS = \
|
FLAGS_TO_PASS = \
|
"CC=$(CC)" \
|
"CC=$(CC)" \
|
"CFLAGS=$(CFLAGS)" \
|
"CFLAGS=$(CFLAGS)" \
|
"AR=$(AR)" \
|
"AR=$(AR)" \
|
"RANLIB=$(RANLIB)" \
|
"RANLIB=$(RANLIB)" \
|
"AR_FLAGS=$(AR_FLAGS)" \
|
"AR_FLAGS=$(AR_FLAGS)" \
|
"AS=$(AS)" \
|
"AS=$(AS)" \
|
"CROSS_CFLAGS=$(CROSS_CFLAGS)" \
|
"CROSS_CFLAGS=$(CROSS_CFLAGS)" \
|
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
|
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
|
"INCLUDES=$(INCLUDES)"
|
"INCLUDES=$(INCLUDES)"
|
|
|
all:
|
all:
|
@for dir in ${SUBDIRS}; do \
|
@for dir in ${SUBDIRS}; do \
|
if [ -d $$dir ]; then \
|
if [ -d $$dir ]; then \
|
(rootme=`pwd`/ ; export rootme ; \
|
(rootme=`pwd`/ ; export rootme ; \
|
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
|
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
|
cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
|
cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
|
fi; \
|
fi; \
|
done
|
done
|
|
|
install:
|
install:
|
@for dir in ${SUBDIRS}; do \
|
@for dir in ${SUBDIRS}; do \
|
echo "$$dir:"; \
|
echo "$$dir:"; \
|
if [ -d $$dir ]; then \
|
if [ -d $$dir ]; then \
|
(cd $$dir; $(MAKE) install); \
|
(cd $$dir; $(MAKE) install); \
|
fi; \
|
fi; \
|
done
|
done
|
|
|
clean:
|
clean:
|
-rm -f *~ core *.o a.out
|
-rm -f *~ core *.o a.out
|
@for dir in ${SUBDIRS}; do \
|
@for dir in ${SUBDIRS}; do \
|
echo "$$dir:"; \
|
echo "$$dir:"; \
|
if [ -d $$dir ]; then \
|
if [ -d $$dir ]; then \
|
(cd $$dir; $(MAKE) clean); \
|
(cd $$dir; $(MAKE) clean); \
|
fi; \
|
fi; \
|
done
|
done
|
|
|
distclean maintainer-clean realclean: clean
|
distclean maintainer-clean realclean: clean
|
@for dir in ${SUBDIRS}; do \
|
@for dir in ${SUBDIRS}; do \
|
echo "$$dir:"; \
|
echo "$$dir:"; \
|
(cd $$dir; $(MAKE) distclean); \
|
(cd $$dir; $(MAKE) distclean); \
|
done
|
done
|
-rm -f *~ core
|
-rm -f *~ core
|
-rm -f Makefile config.status
|
-rm -f Makefile config.status
|
|
|
.PHONY: info install-info clean-info
|
.PHONY: info install-info clean-info
|
info:
|
info:
|
install-info:
|
install-info:
|
clean-info:
|
clean-info:
|
|
|
force:
|
force:
|
|
|
Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
|
Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
|
$(SHELL) config.status
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
|
|
|
|
|