]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/Makefile.in
These should be in too
[thirdparty/binutils-gdb.git] / sim / Makefile.in
1 # Makefile template for Configure for the sim library.
2 # Copyright (C) 1993 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
4 #
5 # This file is part of BFD, the Binary File Descriptor library.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 srcdir = .
22
23 prefix = /usr/local
24
25 exec_prefix = $(prefix)
26 bindir = $(exec_prefix)/bin
27 libdir = $(exec_prefix)/lib
28
29 datadir = $(prefix)/lib
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 oldincludedir =
43 docdir = doc
44
45 SHELL = /bin/sh
46
47 INSTALL = install -c
48 INSTALL_PROGRAM = $(INSTALL)
49 INSTALL_DATA = $(INSTALL)
50
51 AR = ar
52 AR_FLAGS = rc
53 CFLAGS = -g
54 BISON = bison
55 MAKEINFO = makeinfo
56 RANLIB = ranlib
57
58 INCDIR = $(srcdir)/../include
59 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
60 DEP = mkdep
61
62 SUBDIRS = " this is set by configire, don't change this "
63
64 #### host and target dependent Makefile fragments come in here.
65 ###
66
67 FLAGS_TO_PASS = \
68 "prefix=$(prefix)" \
69 "exec_prefix=$(exec_prefix)" \
70 "against=$(against)" \
71 "AR=$(AR)" \
72 "AR_FLAGS=$(AR_FLAGS)" \
73 "CC=$(CC)" \
74 "CFLAGS=$(CFLAGS)" \
75 "RANLIB=$(RANLIB)" \
76 "MAKEINFO=$(MAKEINFO)" \
77 "INSTALL=$(INSTALL)" \
78 "INSTALL_DATA=$(INSTALL_DATA)" \
79 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
80 "BISON=$(BISON)"
81
82
83 STAGESTUFF = $(TARGETLIB) $(OFILES)
84
85
86 all: endian.h $(ALL)
87
88
89
90 endian.h: endian
91 ./endian > endian.h
92
93 ### z8k
94
95 all-z8k: force
96 if [ -f ./z8k/Makefile ] ; then \
97 rootme=`pwd` ; export rootme ; \
98 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
99 else \
100 true ; \
101 fi
102
103 install-z8k: force
104 if [ -f ./z8k/Makefile ] ; then \
105 rootme=`pwd` ; export rootme ; \
106 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
107 else \
108 true ; \
109 fi
110
111
112 ### h8300
113
114 all-h8300: force
115 if [ -f ./h8300/Makefile ] ; then \
116 rootme=`pwd` ; export rootme ; \
117 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
118 else \
119 true ; \
120 fi
121
122 install-h8300: force
123 if [ -f ./h8300/Makefile ] ; then \
124 rootme=`pwd` ; export rootme ; \
125 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
126 else \
127 true ; \
128 fi
129
130 ###
131
132 force:
133
134
135 # with the gnu make, this is done automatically.
136
137 Makefile: $(srcdir)/Makefile.in $(target_makefile_frag)
138 $(SHELL) ./config.status