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.
23 exec_prefix = $(prefix)
24 bindir = $(exec_prefix)/bin
25 libdir = $(exec_prefix)/lib
27 datadir = $(prefix)/lib
28 mandir = $(prefix)/man
29 man1dir = $(mandir)/man1
30 man2dir = $(mandir)/man2
31 man3dir = $(mandir)/man3
32 man4dir = $(mandir)/man4
33 man5dir = $(mandir)/man5
34 man6dir = $(mandir)/man6
35 man7dir = $(mandir)/man7
36 man8dir = $(mandir)/man8
37 man9dir = $(mandir)/man9
38 infodir = $(prefix)/info
39 includedir = $(prefix)/include
41 docdir
= $(srcdir)/doc
46 INSTALL_PROGRAM
= $(INSTALL
)
47 INSTALL_DATA
= $(INSTALL
)
56 INCDIR
= $(srcdir)/..
/include
57 CSEARCH
= -I.
-I
$(srcdir) -I
$(INCDIR
) -I
$(srcdir)/..
/bfd
60 #### host, target, and site specific Makefile frags come in here.
64 run
: code.o run.o perifs.o
65 $(CC
) -o run code.o perifs.o run.o ..
/bfd
/libbfd.a ..
/libiberty
/libiberty.a
68 cat
$(VPATH
)/p1.c p2.c
$(VPATH
)/p3.c | cb
>code.c
76 $(CC
) -o writecode
-g
$(CSEARCH
) $(srcdir)/writecode.c
82 #### host and target dependent Makefile fragments come in here.
86 "against=$(against)" \
88 "AR_FLAGS=$(AR_FLAGS)" \
92 "MAKEINFO=$(MAKEINFO)" \
93 "INSTALL=$(INSTALL)" \
94 "INSTALL_DATA=$(INSTALL_DATA)" \
95 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
99 $(CC
) -c
$(CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(CSEARCH
) $(CSWITCHES
) $<
111 # HDEPFILES comes from the host config; TDEPFILES from the target config.
118 etags
$(INCDIR
)/*.h
$(srcdir)/*.h
$(srcdir)/*.c
121 rm -f
*.
[oa
] *~ core
*.E
*.p
*.ip aout-params.h gen-aout
123 clobber realclean: clean
126 # Mark everything as depending on config.status, since the timestamp on
127 # sysdep.h might actually move backwards if we reconfig and relink it
128 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
129 RECONFIG
= config.status
133 # This target should be invoked before building a new release.
134 # 'VERSION' file must be present and contain a string of the form "x.y"
138 MAJ
=`sed 's/\..*//' VERSION` ; \
139 MIN
=`sed 's/.*\.//' VERSION` ; \
140 V
=$$MAJ.
`expr $$MIN + 1` ; \
142 echo
$$V >VERSION
; \
145 # Dummy target to force execution of dependent targets.
150 -parent
=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
151 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
152 -if
[ -d
$(bindir) ] ; then true
; else mkdir
$(bindir) ; fi
153 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
154 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
155 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
156 -n
=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
157 $(INSTALL_PROGRAM
) run
$(bindir)/$$n; \
162 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
163 $(SHELL
) .
/config.status
169 # What appears below is generated by a hacked mkdep using gcc -MM.
171 # DO NOT DELETE THIS LINE -- mkdep uses it.
172 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
175 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY