Add install-strip to sim/
[deliverable/binutils-gdb.git] / sim / common / Makefile.in
... / ...
CommitLineData
1# Makefile template for Configure for simulator common directory
2# Copyright (C) 1996-2019 Free Software Foundation, Inc.
3#
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.
8#
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.
13#
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/>.
16
17default: all
18
19VPATH = @srcdir@
20srcdir = @srcdir@
21abs_srcdir = @abs_srcdir@
22srcroot = $(abs_srcdir)/../..
23
24prefix = @prefix@
25exec_prefix = @exec_prefix@
26
27host_alias = @host_alias@
28target_alias = @target_alias@
29program_transform_name = @program_transform_name@
30bindir = @bindir@
31
32libdir = @libdir@
33tooldir = $(libdir)/$(target_alias)
34
35datarootdir = @datarootdir@
36datadir = @datadir@
37mandir = @mandir@
38man1dir = $(mandir)/man1
39infodir = @infodir@
40includedir = @includedir@
41
42SHELL = /bin/sh
43
44INSTALL = @INSTALL@
45INSTALL_PROGRAM = @INSTALL_PROGRAM@
46INSTALL_DATA = @INSTALL_DATA@
47
48CC = @CC@
49CC_FOR_BUILD = @CC_FOR_BUILD@
50CFLAGS = @CFLAGS@
51
52# These are used to rebuild nltvals.def.
53CPP_FOR_TARGET = @CPP_FOR_TARGET@
54TARGET_SUBDIR = @TARGET_SUBDIR@
55
56HDEFINES = @HDEFINES@
57TDEFINES =
58
59CONFIG_CFLAGS = @DEFS@ $(HDEFINES) $(TDEFINES)
60CSEARCH = -I. -I$(srcdir) -I$(srcroot)/include
61ALL_CFLAGS = $(CFLAGS) $(CONFIG_CFLAGS) $(CSEARCH)
62BUILD_CFLAGS = -g -O $(CSEARCH)
63
64AR = @AR@
65AR_FLAGS = rc
66RANLIB = @RANLIB@
67MAKEINFO = makeinfo
68
69.NOEXPORT:
70MAKEOVERRIDES=
71
72all:
73
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.
80.PHONY: headers
81headers:
82 rootme=`pwd` ; \
83 cd $(srcdir) ; \
84 rm -f nltvals.new ; \
85 $(SHELL) $(abs_srcdir)/gennltvals.sh $(SHELL) $(srcroot) "$(CPP_FOR_TARGET)" > nltvals.new ; \
86 $(SHELL) $(srcroot)/move-if-change nltvals.new nltvals.def
87
88.c.o:
89 $(CC) -c $< $(ALL_CFLAGS)
90
91check:
92
93info:
94clean-info:
95install-info:
96
97tags etags: TAGS
98
99# Macros like EXTERN_SIM_CORE confuse tags.
100# And the sim-n-foo.h files create functions that can't be found either.
101TAGS: force
102 cd $(srcdir) && \
103 etags --regex '/^\([a-z_]+\) (/\1/' --regex '/^.*\/[*] TAGS: .*/' \
104 *.c *.h
105
106clean:
107 rm -f *.[oa] *~ core
108
109distclean mostlyclean maintainer-clean realclean: clean
110 rm -f TAGS
111 rm -f Makefile config.cache config.log config.status
112
113# Dummy target to force execution of dependent targets.
114force:
115
116# Copy the files into directories where they will be run.
117install: install-man
118install-strip: install-man
119
120install-man: installdirs
121 n=`echo run | sed '$(program_transform_name)'`; \
122 $(INSTALL_DATA) $(srcdir)/run.1 $(DESTDIR)$(man1dir)/$$n.1
123
124installdirs:
125 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir)
126
127Makefile: Makefile.in config.status
128 $(SHELL) ./config.status
129
130config.status: configure
131 $(SHELL) ./config.status --recheck
132
133config.h: stamp-h ; @true
134stamp-h: config.in config.status
135 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
This page took 0.434892 seconds and 4 git commands to generate.