1 # Makefile template for Configure for simulator common directory
2 # Copyright (C) 1996-2019 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 abs_srcdir
= @abs_srcdir@
22 srcroot
= $(abs_srcdir
)/..
/..
25 exec_prefix = @
exec_prefix@
27 host_alias
= @host_alias@
28 target_alias
= @target_alias@
29 program_transform_name
= @program_transform_name@
33 tooldir
= $(libdir)/$(target_alias
)
35 datarootdir
= @datarootdir@
38 man1dir = $(mandir)/man1
40 includedir = @
includedir@
45 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
46 INSTALL_DATA
= @INSTALL_DATA@
49 CC_FOR_BUILD
= @CC_FOR_BUILD@
52 # These are used to rebuild nltvals.def.
53 CPP_FOR_TARGET
= @CPP_FOR_TARGET@
54 TARGET_SUBDIR
= @TARGET_SUBDIR@
59 CONFIG_CFLAGS
= @DEFS@
$(HDEFINES
) $(TDEFINES
)
60 CSEARCH
= -I.
-I
$(srcdir) -I
$(srcroot
)/include
61 ALL_CFLAGS
= $(CFLAGS
) $(CONFIG_CFLAGS
) $(CSEARCH
)
62 BUILD_CFLAGS
= -g
-O
$(CSEARCH
)
74 # Generate nltvals.def for newlib/libgloss using devo and build tree.
75 # This file is shipped with distributions so we build in the source dir.
76 # Use `make headers' to rebuild.
77 # Note: If gdb releases begin to contain target header files (not a good idea,
78 # but if they did ...), nltvals.def coud be generated at build time.
79 # An alternative is to slurp in the tables at runtime.
85 $(SHELL
) $(abs_srcdir
)/gennltvals.sh
$(SHELL
) $(srcroot
) "$(CPP_FOR_TARGET)" > nltvals.new
; \
86 $(SHELL
) $(srcroot
)/move-if-change nltvals.new nltvals.def
89 $(CC
) -c
$< $(ALL_CFLAGS
)
99 # Macros like EXTERN_SIM_CORE confuse tags.
100 # And the sim-n-foo.h files create functions that can't be found either.
103 etags
--regex
'/^\([a-z_]+\) (/\1/' --regex
'/^.*\/[*] TAGS: .*/' \
109 distclean mostlyclean maintainer-clean
realclean: clean
111 rm -f Makefile config.cache config.log config.status
113 # Dummy target to force execution of dependent targets.
116 # Copy the files into directories where they will be run.
119 install-man
: installdirs
120 n
=`echo run | sed '$(program_transform_name)'`; \
121 $(INSTALL_DATA
) $(srcdir)/run
.1 $(DESTDIR
)$(man1dir)/$$n.1
124 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(DESTDIR
)$(man1dir)
126 Makefile
: Makefile.in config.status
127 $(SHELL
) .
/config.status
129 config.status
: configure
130 $(SHELL
) .
/config.status
--recheck
132 config.h
: stamp-h
; @true
133 stamp-h
: config.in config.status
134 CONFIG_FILES
= CONFIG_HEADERS
=config.h
:config.in
$(SHELL
) .
/config.status