* config.in: Rename from config.h.in.
[deliverable/binutils-gdb.git] / sim / arm / Makefile.in
CommitLineData
982744ff
C
1# Makefile template for Configure for the arm sim library.
2# Copyright (C) 1995 Free Software Foundation, Inc.
3# Written by Cygnus Support.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19VPATH = @srcdir@
20srcdir = @srcdir@
21srcroot = $(srcdir)/../..
22
23prefix = @prefix@
24exec_prefix = @exec_prefix@
25
26host_alias = @host_alias@
27target_alias = @target_alias@
28program_transform_name = @program_transform_name@
29bindir = $(exec_prefix)/bin
30libdir = $(exec_prefix)/lib
31tooldir = $(libdir)/$(target_alias)
32
33datadir = $(prefix)/lib
34mandir = $(prefix)/man
35man1dir = $(mandir)/man1
36man2dir = $(mandir)/man2
37man3dir = $(mandir)/man3
38man4dir = $(mandir)/man4
39man5dir = $(mandir)/man5
40man6dir = $(mandir)/man6
41man7dir = $(mandir)/man7
42man8dir = $(mandir)/man8
43man9dir = $(mandir)/man9
44infodir = $(prefix)/info
45includedir = $(prefix)/include
46docdir = $(datadir)/doc
47
48SHELL = /bin/sh
49
50# FIXME: use autoconf's AC_PROG_INSTALL
51INSTALL = $(srcroot)/install.sh -c
52INSTALL_PROGRAM = $(INSTALL)
53INSTALL_DATA = $(INSTALL)
54INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
55INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
56
57AR = ar
58AR_FLAGS = rc
59CFLAGS = -g
60BISON = bison
61MAKEINFO = makeinfo
62RANLIB = ranlib
63
64.NOEXPORT:
65MAKEOVERRIDES=
66
67CC_FOR_BUILD = cc
68X=xstuff.o
69XL=-lX11
70X=
71XL=
72
73INCDIR = $(srcdir)/../../include
74CSEARCH = -I. -I$(srcdir) -I../../include -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
75DEP = mkdep
76
77#### Makefile fragments come in here.
78# @host_makefile_frag@
79###
80
81ARMOBJ=armcopro.o armemu26.o armemu32.o arminit.o armos.o armsupp.o armvirt.o bag.o
82OUROBJ=wrapper.o
83
84OBJ=$(ARMOBJ) $(OUROBJ)
85
86all: run libsim.a
87
88run: $(OBJ) run.o
89 $(CC) $(CFLAGS) -o run $(OBJ) run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL)
90
91run.o:run.c
92
93
94armos.o: armos.c armdefs.h armos.h armfpe.h
95
96armcopro.o: armcopro.c armdefs.h
97
98armemu26.o: armemu.c armdefs.h armemu.h
99 $(CC) $(CFLAGS) -o armemu26.o -c $<
100
101armemu32.o: armemu.c armdefs.h armemu.h
102 $(CC) $(CFLAGS) -o armemu32.o -DMODE32 -c $<
103
104arminit.o: arminit.c armdefs.h armemu.h
105
106armrdi.o: armrdi.c armdefs.h armemu.h armos.h dbg_cp.h dbg_conf.h dbg_rdi.h \
107 dbg_hif.h communicate.h
108
109armsupp.o: armsupp.c armdefs.h armemu.h
110
111bag.o: bag.c bag.h
112
113
114libsim.a: $(OBJ)
115 $(AR) $(ARFLAGS) libsim.a $(OBJ)
116 $(RANLIB) libsim.a
117
118.c.o:
119 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
120
121check:
122
123info:
124clean-info:
125install-info:
126
127tags etags: TAGS
128
129TAGS: force
130 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
131
132clean:
133 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
134
135distclean mostlyclean realclean: clean
136 rm -f TAGS
137 rm -f Makefile config.cache config.log config.status
138
139# Dummy target to force execution of dependent targets.
140#
141force:
142
143# Copy the files into directories where they will be run.
144install:
145 srcroot=`cd $(srcroot); pwd`; export srcroot; \
146 $(INSTALL_XFORM) run $(bindir)/run ; \
147 n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
148 if [ -d $(tooldir) ] ; then \
149 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
150 rm -f $(tooldir)/bin/run; \
151 ln $(bindir)/$$n $(tooldir)/bin/run \
152 || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
153 else true; fi
154
155install-man: run.1
156 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
157
158
159Makefile: Makefile.in @frags@
160 $(SHELL) ./config.status
161
162config.status: configure
163 $(SHELL) ./config.status --recheck
164
165dep: $(CFILES)
166 mkdep $(CFLAGS) $?
167
168
169# What appears below is generated by a hacked mkdep using gcc -MM.
170
171# DO NOT DELETE THIS LINE -- mkdep uses it.
172# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
173
174
175# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.032945 seconds and 4 git commands to generate.