OSDN Git Service

ld/ChangeLog:
[pf3gnuchains/pf3gnuchains4x.git] / libgloss / Makefile.in
1 # Top level makefile for libgloss
2 #
3 # Copyright (c) 1995, 1996 Cygnus Support
4 #
5 # The authors hereby grant permission to use, copy, modify, distribute,
6 # and license this software and its documentation for any purpose, provided
7 # that existing copyright notices are retained in all copies and that this
8 # notice is included verbatim in any distributions. No written agreement,
9 # license, or royalty fee is required for any of the authorized uses.
10 # Modifications to this software may be copyrighted by their authors
11 # and need not follow the licensing terms described here, provided that
12 # the new terms are clearly indicated on the first page of each file where
13 # they apply.
14 #
15
16 DESTDIR =
17 VPATH = @srcdir@
18 srcdir = @srcdir@
19 objdir = .
20 srcroot = $(srcdir)/../..
21 objroot = $(objdir)/../..
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25
26 host_alias = @host_alias@
27 target_alias = @target_alias@
28
29 bindir = @bindir@
30 libdir = @libdir@
31 tooldir = $(exec_prefix)/$(target_alias)
32
33 TOP = .
34 SRCTOP = .
35
36 # Multilib support variables.
37 # TOP is used instead of MULTI{BUILD,SRC}TOP.
38 MULTISRCTOP =
39 MULTIBUILDTOP =
40 MULTIDIRS =
41 MULTISUBDIR =
42 MULTIDO = true
43 MULTICLEAN = true
44
45 INSTALL = @INSTALL@
46 INSTALL_PROGRAM = @INSTALL_PROGRAM@
47 INSTALL_DATA = @INSTALL_DATA@
48
49 SHELL = /bin/sh
50
51 CC = @CC@
52
53 AS = @AS@
54 AR = @AR@
55 LD = @LD@
56 RANLIB = @RANLIB@
57
58 AR_FLAGS = qv
59 BISON = bison
60 MAKEINFO = makeinfo
61
62 SUBDIRS = @subdirs@
63
64 .NOEXPORT:
65 MAKEOVERRIDES=
66
67 # Host specific makefile fragment comes in here.
68 @host_makefile_frag@
69
70 # These are roughly topologically sorted in order to make porting more
71 # streamlined.
72 FLAGS_TO_PASS = \
73         "CC=$(CC)" \
74         "CFLAGS=$(CFLAGS)" \
75         "AR=$(AR)" \
76         "RANLIB=$(RANLIB)" \
77         "AR_FLAGS=$(AR_FLAGS)" \
78         "MAKEINFO=$(MAKEINFO)" \
79         "AS=$(AS)" \
80         "LD=$(LD)" \
81         "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
82         "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
83         "exec_prefix=$(exec_prefix)" \
84         "prefix=$(prefix)" \
85         "tooldir=$(tooldir)" \
86         "INSTALL=$(INSTALL)" \
87         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
88         "INSTALL_DATA=$(INSTALL_DATA)" \
89         "DESTDIR=$(DESTDIR)"
90
91 all: stmp-bsp force
92         @rootpre=`pwd`/; export rootpre; \
93         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
94         $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
95
96 stmp-bsp: force
97         @rootpre=`pwd`/; export rootpre; \
98         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
99         for dir in .. ${SUBDIRS}; do \
100           if [ x$$dir != x.. ]; then \
101             if [ -d $$dir ]; then \
102               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
103             else true; fi; \
104           else true; fi; \
105         done
106
107 install: force
108         @rootpre=`pwd`/; export rootpre; \
109         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
110         for dir in .. ${SUBDIRS}; do \
111           if [ x$$dir != x.. ]; then \
112             if [ -d $$dir ]; then \
113               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
114             else true; fi; \
115           else true; fi; \
116         done
117         @rootpre=`pwd`/; export rootpre; \
118         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
119         $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
120
121 test: force
122         @rootpre=`pwd`/; export rootpre; \
123         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
124         for dir in .. ${SUBDIRS}; do \
125           if [ x$$dir != x.. ]; then \
126             if [ -d $$dir ]; then \
127               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) test); \
128             else true; fi; \
129           else true; fi; \
130         done
131         @rootpre=`pwd`/; export rootpre; \
132         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
133         $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=test
134
135 clean-here:
136         -rm -f *~ core *.o a.out xgdb *.x
137
138 clean mostlyclean: clean-here
139         rootpre=`pwd`/; export rootpre; \
140         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
141         $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
142         $(MULTICLEAN) multi-clean DO=$@
143
144 distclean maintainer-clean realclean: clean-here
145         -rm -f Makefile config.cache config.log config.status 
146         -rm -f *-init.exp site.*
147         -rm -fr *.log summary detail *.sum
148         rootpre=`pwd`/; export rootpre; \
149         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
150         $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
151         $(MULTICLEAN) multi-clean DO=$@
152
153 .PHONY: info install-info clean-info
154 subdir_do:
155         @rootpre=`pwd`/; export rootpre; \
156         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
157         for i in .. $(DODIRS); do \
158           if [ x$$i != x.. ]; then \
159             if [ -f ./$$i/Makefile ]; then \
160               if (cd ./$$i; $(MAKE) $(FLAGS_TO_PASS) $(DO)); then \
161                 true; \
162               else \
163                 exit 1; \
164               fi; \
165             else true; fi; \
166           else true; fi; \
167         done
168
169 info dvi docs:
170         rootpre=`pwd`/; export rootpre; \
171         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
172         $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
173
174 install-info:
175         rootpre=`pwd`/; export rootpre; \
176         srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
177         $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
178
179 clean-info:
180
181 force:
182
183 Makefile: Makefile.in config.status @host_makefile_frag_path@
184         $(SHELL) config.status
185
186 config.status: configure
187         $(SHELL) config.status --recheck