]> sourceware.org Git - newlib-cygwin.git/blame - libgloss/Makefile.in
2006-05-10 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.git] / libgloss / Makefile.in
CommitLineData
03261851
RK
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
051f21ca 16DESTDIR =
03261851
RK
17VPATH = @srcdir@
18srcdir = @srcdir@
19objdir = .
20srcroot = $(srcdir)/../..
21objroot = $(objdir)/../..
22
23prefix = @prefix@
24exec_prefix = @exec_prefix@
25
26host_alias = @host_alias@
27target_alias = @target_alias@
28
29bindir = @bindir@
30libdir = @libdir@
31tooldir = $(exec_prefix)/$(target_alias)
32
33TOP = .
34SRCTOP = .
35
36# Multilib support variables.
37# TOP is used instead of MULTI{BUILD,SRC}TOP.
38MULTISRCTOP =
39MULTIBUILDTOP =
40MULTIDIRS =
41MULTISUBDIR =
42MULTIDO = true
43MULTICLEAN = true
44
45INSTALL = @INSTALL@
46INSTALL_PROGRAM = @INSTALL_PROGRAM@
47INSTALL_DATA = @INSTALL_DATA@
48
49SHELL = /bin/sh
50
51CC = @CC@
52
53AS = @AS@
54AR = @AR@
55LD = @LD@
56RANLIB = @RANLIB@
57
58AR_FLAGS = qv
59BISON = bison
60MAKEINFO = makeinfo
61
62SUBDIRS = @subdirs@
63
64.NOEXPORT:
65MAKEOVERRIDES=
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.
72FLAGS_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)" \
00a4b31a
JJ
86 "infodir=$(infodir)" \
87 "libdir=$(libdir)" \
88 "top_toollibdir=$(toollibdir)" \
03261851
RK
89 "INSTALL=$(INSTALL)" \
90 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
051f21ca
JJ
91 "INSTALL_DATA=$(INSTALL_DATA)" \
92 "DESTDIR=$(DESTDIR)"
03261851
RK
93
94all: 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
99stmp-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
110install: 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
124test: 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
138clean-here:
139 -rm -f *~ core *.o a.out xgdb *.x
140
141clean 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
147distclean 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
157subdir_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
172info 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
177install-info:
178 rootpre=`pwd`/; export rootpre; \
179 srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
180 $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
181
182clean-info:
183
184force:
185
186Makefile: Makefile.in config.status @host_makefile_frag_path@
187 $(SHELL) config.status
188
189config.status: configure
190 $(SHELL) config.status --recheck
This page took 0.113704 seconds and 5 git commands to generate.