1 # Top level makefile for libgloss
3 # Copyright (c) 1995, 1996 Cygnus Support
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
20 srcroot
= $(srcdir)/..
/..
21 objroot
= $(objdir
)/..
/..
24 exec_prefix = @
exec_prefix@
26 host_alias
= @host_alias@
27 target_alias
= @target_alias@
31 tooldir
= $(exec_prefix)/$(target_alias
)
36 # Multilib support variables.
37 # TOP is used instead of MULTI{BUILD,SRC}TOP.
46 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
47 INSTALL_DATA
= @INSTALL_DATA@
67 # Host specific makefile fragment comes in here.
70 # These are roughly topologically sorted in order to make porting more
77 "AR_FLAGS=$(AR_FLAGS)" \
78 "MAKEINFO=$(MAKEINFO)" \
81 "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
82 "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
83 "exec_prefix=$(exec_prefix)" \
85 "tooldir=$(tooldir)" \
86 "infodir=$(infodir)" \
88 "top_toollibdir=$(toollibdir)" \
89 "INSTALL=$(INSTALL)" \
90 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
91 "INSTALL_DATA=$(INSTALL_DATA)" \
95 @rootpre
=`pwd`/; export rootpre
; \
96 srcrootpre
=`cd $(srcdir); pwd`/; export srcrootpre
; \
97 $(MULTIDO
) $(FLAGS_TO_PASS
) multi-do DO
=all
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
)); \
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); \
120 @rootpre
=`pwd`/; export rootpre
; \
121 srcrootpre
=`cd $(srcdir); pwd`/; export srcrootpre
; \
122 $(MULTIDO
) $(FLAGS_TO_PASS
) multi-do DO
=install
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); \
134 @rootpre
=`pwd`/; export rootpre
; \
135 srcrootpre
=`cd $(srcdir); pwd`/; export srcrootpre
; \
136 $(MULTIDO
) $(FLAGS_TO_PASS
) multi-do DO
=test
139 -rm -f
*~ core
*.o a.out xgdb
*.x
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
=$@
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
=$@
156 .PHONY
: info install-info clean-info
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 \
173 rootpre
=`pwd`/; export rootpre
; \
174 srcrootpre
=`cd $(srcdir); pwd`/; export srcrootpre
; \
175 $(MAKE
) DO
=$@ DODIRS
=doc
$(FLAGS_TO_PASS
) subdir_do
178 rootpre
=`pwd`/; export rootpre
; \
179 srcrootpre
=`cd $(srcdir); pwd`/; export srcrootpre
; \
180 $(MAKE
) DO
=$@ DODIRS
=doc
$(FLAGS_TO_PASS
) subdir_do
186 Makefile
: Makefile.in config.status @host_makefile_frag_path@
187 $(SHELL
) config.status
189 config.status
: configure
190 $(SHELL
) config.status
--recheck