1 # Makefile template for Configure for the h8300sim library.
2 # Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
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.
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.
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.
20 srcroot
= $(srcdir)/..
/..
/
25 program_transform_name
=
26 exec_prefix = $(prefix)
27 bindir = $(exec_prefix)/bin
28 libdir = $(exec_prefix)/lib
29 tooldir
= $(libdir)/$(target_alias
)
31 datadir = $(prefix)/lib
32 mandir = $(prefix)/man
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
35 man3dir = $(mandir)/man3
36 man4dir = $(mandir)/man4
37 man5dir = $(mandir)/man5
38 man6dir = $(mandir)/man6
39 man7dir = $(mandir)/man7
40 man8dir = $(mandir)/man8
41 man9dir = $(mandir)/man9
42 infodir = $(prefix)/info
43 includedir = $(prefix)/include
45 docdir
= $(srcdir)/doc
51 INSTALL
= $(srcroot
)/install.sh
-c
52 INSTALL_PROGRAM
= $(INSTALL
)
53 INSTALL_DATA
= $(INSTALL
)
54 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
55 INSTALL_XFORM1
= $(INSTALL_XFORM
) -b
=.1
70 INCDIR
= $(srcdir)/..
/..
/include
71 CSEARCH
= -I.
-I
$(srcdir) -I..
/..
/include -I..
/..
/bfd
-I
$(INCDIR
) -I
$(srcdir)/..
/..
/bfd
-I
$(srcdir)/..
/..
/gdb
74 #### host, target, and site specific Makefile frags come in here.
79 run
: interp.o
$(X
) run.o table.o
80 $(CC
) $(CFLAGS
) -o run
$(X
) interp.o table.o run.o ..
/..
/bfd
/libbfd.a ..
/..
/libiberty
/libiberty.a
$(XL
)
82 interp.o
:interp.c code.c table.c
85 libsim.a
:interp.o table.o
86 $(AR
) $(ARFLAGS
) libsim.a interp.o table.o
98 $(CC_FOR_BUILD
) -o gencode
$<
101 #### host and target dependent Makefile fragments come in here.
105 "against=$(against)" \
107 "AR_FLAGS=$(AR_FLAGS)" \
111 "MAKEINFO=$(MAKEINFO)" \
112 "INSTALL=$(INSTALL)" \
113 "INSTALL_DATA=$(INSTALL_DATA)" \
114 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
118 $(CC
) -c
$(CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(CSEARCH
) $(CSWITCHES
) $<
130 # HDEPFILES comes from the host config; TDEPFILES from the target config.
137 etags
$(INCDIR
)/*.h
$(srcdir)/*.h
$(srcdir)/*.c
140 rm -f
*.
[oa
] *~ core
*.E
*.p
*.ip aout-params.h gen-aout
142 clobber realclean: clean
145 # Mark everything as depending on config.status, since the timestamp on
146 # sysdep.h might actually move backwards if we reconfig and relink it
147 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
148 RECONFIG
= config.status
152 # This target should be invoked before building a new release.
153 # 'VERSION' file must be present and contain a string of the form "x.y"
157 MAJ
=`sed 's/\..*//' VERSION` ; \
158 MIN
=`sed 's/.*\.//' VERSION` ; \
159 V
=$$MAJ.
`expr $$MIN + 1` ; \
161 echo
$$V >VERSION
; \
164 # Dummy target to force execution of dependent targets.
168 # Copy the files into directories where they will be run.
170 srcroot
=`cd $(srcroot); pwd`; export srcroot
; \
171 $(INSTALL_XFORM
) run
$(bindir)/run
; \
172 n
=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
173 if
[ -d
$(tooldir
) ] ; then \
174 if
[ -d
$(tooldir
)/bin
] ; then true
; else mkdir
$(tooldir
)/bin
; fi
; \
175 rm -f
$(tooldir
)/bin
/run
; \
176 ln
$(bindir)/$$n $(tooldir
)/bin
/run \
177 ||
$(INSTALL_PROGRAM
) run
$(tooldir
)/bin
/run
; \
181 $(INSTALL_XFORM1
) $(srcdir)/run
.1 $(man1dir)/run
.1
184 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
185 $(SHELL
) .
/config.status
191 # What appears below is generated by a hacked mkdep using gcc -MM.
193 # DO NOT DELETE THIS LINE -- mkdep uses it.
194 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
197 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY