| 1 | # |
|---|
| 2 | # Makefile |
|---|
| 3 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation |
|---|
| 4 | # |
|---|
| 5 | # This file is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU General Public License as published by |
|---|
| 7 | # the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | # |
|---|
| 10 | # This program is distributed in the hope that it will be useful, |
|---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | # GNU General Public License for more details. |
|---|
| 14 | # |
|---|
| 15 | # You should have received a copy of the GNU General Public License |
|---|
| 16 | # along with this program; if not, write to the Free Software |
|---|
| 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
|---|
| 18 | # |
|---|
| 19 | |
|---|
| 20 | srcdir = . |
|---|
| 21 | |
|---|
| 22 | prefix = /usr/local |
|---|
| 23 | |
|---|
| 24 | exec_prefix = $(prefix) |
|---|
| 25 | bindir = $(exec_prefix)/bin |
|---|
| 26 | libdir = $(exec_prefix)/lib |
|---|
| 27 | tooldir = $(exec_prefix) |
|---|
| 28 | |
|---|
| 29 | SHELL = /bin/sh |
|---|
| 30 | |
|---|
| 31 | INSTALL = `cd $(srcdir); pwd`/../../install-sh -c |
|---|
| 32 | INSTALL_PROGRAM = $(INSTALL) |
|---|
| 33 | INSTALL_DATA = $(INSTALL) |
|---|
| 34 | |
|---|
| 35 | AR_FLAGS = qv |
|---|
| 36 | BISON = bison |
|---|
| 37 | MAKEINFO = makeinfo |
|---|
| 38 | |
|---|
| 39 | SUBDIRS = |
|---|
| 40 | OBJROOT = |
|---|
| 41 | SRCROOT = |
|---|
| 42 | |
|---|
| 43 | .NOEXPORT: |
|---|
| 44 | MAKEOVERRIDES= |
|---|
| 45 | |
|---|
| 46 | #### Host, target, and site specific Makefile fragments come in here. |
|---|
| 47 | ### |
|---|
| 48 | |
|---|
| 49 | # These are roughly topologically sorted in order to make porting more |
|---|
| 50 | # streamlined. |
|---|
| 51 | FLAGS_TO_PASS = \ |
|---|
| 52 | "prefix=$(prefix)" \ |
|---|
| 53 | "exec_prefix=$(exec_prefix)" \ |
|---|
| 54 | "CC=$(CC)" \ |
|---|
| 55 | "CFLAGS=$(CFLAGS)" \ |
|---|
| 56 | "AR=$(AR)" \ |
|---|
| 57 | "RANLIB=$(RANLIB)" \ |
|---|
| 58 | "AR_FLAGS=$(AR_FLAGS)" \ |
|---|
| 59 | "AS=$(AS)" \ |
|---|
| 60 | "CROSS_CFLAGS=$(CROSS_CFLAGS)" \ |
|---|
| 61 | "TARGET_CFLAGS=$(TARGET_CFLAGS)" \ |
|---|
| 62 | "OBJROOT=$(OBJROOT)" |
|---|
| 63 | |
|---|
| 64 | all: |
|---|
| 65 | @for dir in ${SUBDIRS}; do \ |
|---|
| 66 | if [ -d $$dir ]; then \ |
|---|
| 67 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \ |
|---|
| 68 | else true; fi; \ |
|---|
| 69 | done |
|---|
| 70 | |
|---|
| 71 | install: |
|---|
| 72 | -rm -f *~ core *.o a.out xgdb *.x |
|---|
| 73 | for dir in ${SUBDIRS}; do \ |
|---|
| 74 | echo "$$dir:"; \ |
|---|
| 75 | if [ -d $$dir ]; then \ |
|---|
| 76 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \ |
|---|
| 77 | else true; fi; \ |
|---|
| 78 | done |
|---|
| 79 | |
|---|
| 80 | clean-here: |
|---|
| 81 | -rm -f *~ core *.o a.out xgdb *.x |
|---|
| 82 | |
|---|
| 83 | clean mostlyclean: clean-here |
|---|
| 84 | for dir in ${SUBDIRS}; do \ |
|---|
| 85 | echo "$$dir:"; \ |
|---|
| 86 | if [ -d $$dir ]; then \ |
|---|
| 87 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \ |
|---|
| 88 | else true; fi; \ |
|---|
| 89 | done |
|---|
| 90 | |
|---|
| 91 | distclean maintainer-clean realclean: clean-here |
|---|
| 92 | for dir in ${SUBDIRS}; do \ |
|---|
| 93 | echo "$$dir:"; \ |
|---|
| 94 | if [ -d $$dir ]; then \ |
|---|
| 95 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \ |
|---|
| 96 | else true; fi; \ |
|---|
| 97 | done |
|---|
| 98 | -rm -f Makefile config.status *-init.exp site.* |
|---|
| 99 | -rm -fr *.log summary detail *.sum blockit |
|---|
| 100 | |
|---|
| 101 | .PHONY: info install-info clean-info |
|---|
| 102 | info: |
|---|
| 103 | install-info: |
|---|
| 104 | clean-info: |
|---|
| 105 | |
|---|
| 106 | force: |
|---|
| 107 | |
|---|
| 108 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) |
|---|
| 109 | $(SHELL) config.status |
|---|