OSDN Git Service

2002-04-02 Daniel Jacobowitz <drow@mvista.com>
[pf3gnuchains/pf3gnuchains4x.git] / utils / Makefile.in
1 #
2 # Makefile
3 #   Copyright (C) 1990, 1991, 1992, 1993 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 #
21 # Makefile for devo/util
22 #
23
24 srcdir = .
25
26 prefix = /usr/local
27
28 exec_prefix = $(prefix)
29 bindir = $(exec_prefix)/bin
30 libdir = $(exec_prefix)/lib
31 tooldir = $(exec_prefix)
32
33 SHELL = /bin/sh
34
35 INSTALL = `cd $(srcdir); pwd`/../../install-sh -c
36 INSTALL_PROGRAM = $(INSTALL)
37 INSTALL_DATA = $(INSTALL)
38
39 AR_FLAGS = qv
40 MAKEINFO = makeinfo
41
42 SUBDIRS=
43
44 .NOEXPORT:
45 MAKEOVERRIDES=
46
47 #### Host, target, and site specific Makefile fragments come in here.
48 ###
49
50 # These are roughly topologically sorted in order to make porting more
51 # streamlined.
52 FLAGS_TO_PASS = \
53         "CC=$(CC)" \
54         "CFLAGS=$(CFLAGS)" \
55         "AR=$(AR)" \
56         "AR_FLAGS=$(AR_FLAGS)" \
57         "AS=$(AS)" \
58         "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
59         "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
60         "INCLUDES=$(INCLUDES)"
61
62 all:
63         @for dir in .. ${SUBDIRS}; do \
64         if [ x$${dir} != x.. ]; then \
65           if [ -d $$dir ]; then \
66             (rootme=`pwd`/ ; export rootme ; \
67             rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
68             cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
69             fi; \
70           fi; \
71         done
72
73 install:
74         @for dir in .. ${SUBDIRS}; do \
75         if [ x$${dir} != x.. ]; then \
76             echo "$$dir:"; \
77             if [ -d $$dir ]; then \
78                 (cd $$dir; $(MAKE) install); \
79                 fi; \
80             fi; \
81         done
82
83 clean mostlyclean:
84         -rm -f *~ core *.o a.out 
85         @for dir in .. ${SUBDIRS}; do \
86         if [ x$${dir} != x.. ]; then \
87             echo "$$dir:"; \
88             if [ -d $$dir ]; then \
89                 (cd $$dir; $(MAKE) $@); \
90                 fi; \
91             fi; \
92         done
93
94 distclean maintainer-clean realclean: clean
95         @for dir in .. ${SUBDIRS}; do \
96         if [ x$${dir} != x.. ]; then \
97             echo "$$dir:"; \
98             (cd $$dir; $(MAKE) $@); \
99             fi ; \
100         done
101         -rm -f *~ core
102         -rm -f Makefile config.status 
103
104 .PHONY: info install-info clean-info dvi
105 info:
106 install-info:
107 clean-info:
108 dvi:
109
110 force:
111
112 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
113         $(SHELL) config.status
114
115
116
117
118