]> sourceware.org Git - newlib-cygwin.git/blob - libgloss/Makefile.in
2006-05-10 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.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 "infodir=$(infodir)" \
87 "libdir=$(libdir)" \
88 "top_toollibdir=$(toollibdir)" \
89 "INSTALL=$(INSTALL)" \
90 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
91 "INSTALL_DATA=$(INSTALL_DATA)" \
92 "DESTDIR=$(DESTDIR)"
93
94 all: stmp-bsp force
95 @rootpre=`pwd`/; export rootpre; \
96 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
97 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
98
99 stmp-bsp: force
100 @rootpre=`pwd`/; export rootpre; \
101 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
102 for dir in .. ${SUBDIRS}; do \
103 if [ x$$dir != x.. ]; then \
104 if [ -d $$dir ]; then \
105 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
106 else true; fi; \
107 else true; fi; \
108 done
109
110 install: force
111 @rootpre=`pwd`/; export rootpre; \
112 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
113 for dir in .. ${SUBDIRS}; do \
114 if [ x$$dir != x.. ]; then \
115 if [ -d $$dir ]; then \
116 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
117 else true; fi; \
118 else true; fi; \
119 done
120 @rootpre=`pwd`/; export rootpre; \
121 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
122 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
123
124 test: force
125 @rootpre=`pwd`/; export rootpre; \
126 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
127 for dir in .. ${SUBDIRS}; do \
128 if [ x$$dir != x.. ]; then \
129 if [ -d $$dir ]; then \
130 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) test); \
131 else true; fi; \
132 else true; fi; \
133 done
134 @rootpre=`pwd`/; export rootpre; \
135 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
136 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=test
137
138 clean-here:
139 -rm -f *~ core *.o a.out xgdb *.x
140
141 clean mostlyclean: clean-here
142 rootpre=`pwd`/; export rootpre; \
143 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
144 $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
145 $(MULTICLEAN) multi-clean DO=$@
146
147 distclean maintainer-clean realclean: clean-here
148 -rm -f Makefile config.cache config.log config.status
149 -rm -f *-init.exp site.*
150 -rm -fr *.log summary detail *.sum
151 rootpre=`pwd`/; export rootpre; \
152 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
153 $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
154 $(MULTICLEAN) multi-clean DO=$@
155
156 .PHONY: info install-info clean-info
157 subdir_do:
158 @rootpre=`pwd`/; export rootpre; \
159 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
160 for i in .. $(DODIRS); do \
161 if [ x$$i != x.. ]; then \
162 if [ -f ./$$i/Makefile ]; then \
163 if (cd ./$$i; $(MAKE) $(FLAGS_TO_PASS) $(DO)); then \
164 true; \
165 else \
166 exit 1; \
167 fi; \
168 else true; fi; \
169 else true; fi; \
170 done
171
172 info dvi docs:
173 rootpre=`pwd`/; export rootpre; \
174 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
175 $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
176
177 install-info:
178 rootpre=`pwd`/; export rootpre; \
179 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
180 $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
181
182 clean-info:
183
184 force:
185
186 Makefile: Makefile.in config.status @host_makefile_frag_path@
187 $(SHELL) config.status
188
189 config.status: configure
190 $(SHELL) config.status --recheck
This page took 0.04096 seconds and 5 git commands to generate.