(Try to) Update to new bfd autoconf scheme.
[external/binutils.git] / sim / arm / Makefile.in
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 VPATH = @srcdir@
20 srcdir = @srcdir@
21 srcroot = $(srcdir)/../..
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25
26 host_alias = @host_alias@
27 target_alias = @target_alias@
28 program_transform_name = @program_transform_name@
29 bindir = $(exec_prefix)/bin
30 libdir = $(exec_prefix)/lib
31 tooldir = $(libdir)/$(target_alias)
32
33 datadir = $(prefix)/lib
34 mandir = $(prefix)/man
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
37 man3dir = $(mandir)/man3
38 man4dir = $(mandir)/man4
39 man5dir = $(mandir)/man5
40 man6dir = $(mandir)/man6
41 man7dir = $(mandir)/man7
42 man8dir = $(mandir)/man8
43 man9dir = $(mandir)/man9
44 infodir = $(prefix)/info
45 includedir = $(prefix)/include
46 docdir = $(datadir)/doc
47
48 SHELL = /bin/sh
49
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53
54 AR = @AR@
55 AR_FLAGS = rc
56 CC = @CC@
57 CFLAGS = @CFLAGS@
58 MAKEINFO = makeinfo
59 RANLIB = @RANLIB@
60
61 HDEFINES = @HDEFINES@
62 TDEFINES =
63
64 .NOEXPORT:
65 MAKEOVERRIDES=
66
67 X=xstuff.o
68 XL=-lX11
69 X=
70 XL=
71
72 INCDIR = $(srcdir)/../../include 
73 CSEARCH = -I. -I$(srcdir)  -I../../include  -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
74 DEP = mkdep
75
76 ARMOBJ=armcopro.o armemu26.o armemu32.o arminit.o armos.o  armsupp.o armvirt.o bag.o
77 OUROBJ=wrapper.o 
78
79 OBJ=$(ARMOBJ) $(OUROBJ)
80
81 all:    run libsim.a
82
83 run:    $(OBJ) run.o
84         $(CC) $(CFLAGS) -o run $(OBJ)  run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL)
85
86 run.o:run.c 
87
88
89 armos.o: armos.c armdefs.h armos.h armfpe.h
90
91 armcopro.o: armcopro.c armdefs.h 
92
93 armemu26.o: armemu.c armdefs.h armemu.h 
94         $(CC) $(CFLAGS) -o armemu26.o -c $<
95
96 armemu32.o: armemu.c armdefs.h armemu.h
97         $(CC) $(CFLAGS) -o armemu32.o -DMODE32 -c $<
98
99 arminit.o: arminit.c armdefs.h armemu.h
100
101 armrdi.o: armrdi.c armdefs.h armemu.h armos.h dbg_cp.h dbg_conf.h dbg_rdi.h \
102                 dbg_hif.h communicate.h
103
104 armsupp.o: armsupp.c armdefs.h armemu.h
105
106 bag.o: bag.c bag.h
107
108
109 libsim.a: $(OBJ)
110         $(AR) $(ARFLAGS) libsim.a $(OBJ)
111         $(RANLIB) libsim.a
112
113 .c.o:
114         $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
115
116 check:
117
118 info:
119 clean-info:
120 install-info:
121
122 tags etags: TAGS
123
124 TAGS: force
125         etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
126
127 clean:
128         rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
129         rm -f run libsim.a
130
131 distclean mostlyclean realclean: clean
132         rm -f TAGS
133         rm -f Makefile config.cache config.log config.status
134
135 # Dummy target to force execution of dependent targets.
136 #
137 force:
138
139 # Copy the files into directories where they will be run.
140 install:
141         srcroot=`cd $(srcroot); pwd`; export srcroot; \
142         $(INSTALL_XFORM) run $(bindir)/run ;  \
143         n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
144         if [ -d $(tooldir) ] ; then \
145           if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
146           rm -f $(tooldir)/bin/run;  \
147           ln $(bindir)/$$n $(tooldir)/bin/run \
148            || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
149         else true; fi
150
151 install-man: run.1
152         $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
153
154
155 Makefile: Makefile.in
156         $(SHELL) ./config.status
157
158 config.status: configure
159         $(SHELL) ./config.status --recheck
160
161 dep: $(CFILES)
162         mkdep $(CFLAGS) $?
163
164
165 # What appears below is generated by a hacked mkdep using gcc -MM.
166
167 # DO NOT DELETE THIS LINE -- mkdep uses it.
168 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
169
170
171 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY