source: trunk/libs/newlib/src/libgloss/Makefile.in @ 654

Last change on this file since 654 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 4.9 KB
Line 
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
16DESTDIR =
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        "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
76        "CCASFLAGS=$(CCASFLAGS)" \
77        "AR=$(AR)" \
78        "RANLIB=$(RANLIB)" \
79        "AR_FLAGS=$(AR_FLAGS)" \
80        "MAKEINFO=$(MAKEINFO)" \
81        "AS=$(AS)" \
82        "LD=$(LD)" \
83        "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
84        "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
85        "exec_prefix=$(exec_prefix)" \
86        "prefix=$(prefix)" \
87        "tooldir=$(tooldir)" \
88        "infodir=$(infodir)" \
89        "libdir=$(libdir)" \
90        "top_toollibdir=$(toollibdir)" \
91        "INSTALL=$(INSTALL)" \
92        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
93        "INSTALL_DATA=$(INSTALL_DATA)" \
94        "DESTDIR=$(DESTDIR)"
95
96all: stmp-bsp force
97        +@rootpre=`pwd`/; export rootpre; \
98        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
99        $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
100
101stmp-bsp: force
102        @rootpre=`pwd`/; export rootpre; \
103        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
104        for dir in .. ${SUBDIRS}; do \
105          if [ x$$dir != x.. ]; then \
106            if [ -d $$dir ]; then \
107              (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit $$?; \
108            else true; fi; \
109          else true; fi; \
110        done
111
112install: force
113        @rootpre=`pwd`/; export rootpre; \
114        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
115        for dir in .. ${SUBDIRS}; do \
116          if [ x$$dir != x.. ]; then \
117            if [ -d $$dir ]; then \
118              (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit $$?; \
119            else true; fi; \
120          else true; fi; \
121        done
122        @rootpre=`pwd`/; export rootpre; \
123        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
124        $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
125
126test: force
127        @rootpre=`pwd`/; export rootpre; \
128        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
129        for dir in .. ${SUBDIRS}; do \
130          if [ x$$dir != x.. ]; then \
131            if [ -d $$dir ]; then \
132              (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) test); \
133            else true; fi; \
134          else true; fi; \
135        done
136        @rootpre=`pwd`/; export rootpre; \
137        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
138        $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=test
139
140clean-here:
141        -rm -f *~ core *.o a.out xgdb *.x
142
143clean mostlyclean: clean-here
144        rootpre=`pwd`/; export rootpre; \
145        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
146        $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
147        $(MULTICLEAN) multi-clean DO=$@
148
149distclean maintainer-clean realclean: clean-here
150        -rm -f Makefile config.cache config.log config.status
151        -rm -f *-init.exp site.*
152        -rm -fr *.log summary detail *.sum
153        rootpre=`pwd`/; export rootpre; \
154        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
155        $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \
156        $(MULTICLEAN) multi-clean DO=$@
157
158.PHONY: info install-info clean-info html pdf
159subdir_do:
160        @rootpre=`pwd`/; export rootpre; \
161        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
162        for i in .. $(DODIRS); do \
163          if [ x$$i != x.. ]; then \
164            if [ -f ./$$i/Makefile ]; then \
165              if (cd ./$$i; $(MAKE) $(FLAGS_TO_PASS) $(DO)); then \
166                true; \
167              else \
168                exit 1; \
169              fi; \
170            else true; fi; \
171          else true; fi; \
172        done
173
174info dvi html pdf docs:
175        rootpre=`pwd`/; export rootpre; \
176        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
177        $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
178
179install-info:
180        rootpre=`pwd`/; export rootpre; \
181        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
182        $(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
183
184clean-info:
185
186force:
187
188Makefile: Makefile.in config.status @host_makefile_frag_path@
189        $(SHELL) config.status
190
191config.status: configure
192        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.