fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / libgloss / i386 / Makefile.in
blob158ba81a33b1ef3c640dcab66d9bdb1f3336faa5
1 # Copyright (c) 1997, 2000 Cygnus Support
3 # The authors hereby grant permission to use, copy, modify, distribute,
4 # and license this software and its documentation for any purpose, provided
5 # that existing copyright notices are retained in all copies and that this
6 # notice is included verbatim in any distributions. No written agreement,
7 # license, or royalty fee is required for any of the authorized uses.
8 # Modifications to this software may be copyrighted by their authors
9 # and need not follow the licensing terms described here, provided that
10 # the new terms are clearly indicated on the first page of each file where
11 # they apply.
13 VPATH = @srcdir@
14 srcdir = @srcdir@
15 objdir = .
16 srcroot = $(srcdir)/../..
17 objroot = $(objdir)/../..
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
22 host_alias = @host_alias@
23 target_alias = @target_alias@
24 program_transform_name = @program_transform_name@
26 bindir = @bindir@
27 libdir = @libdir@
28 tooldir = $(exec_prefix)/$(target_alias)
30 # Multilib support variables.
31 # TOP is used instead of MULTI{BUILD,SRC}TOP.
32 MULTIDIRS =
33 MULTISUBDIR =
34 MULTIDO = true
35 MULTICLEAN = true
37 INSTALL = @INSTALL@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
41 SHELL = /bin/sh
43 CC = @CC@
45 #AS = @AS@
46 AS = `if [ -f ${objroot}/../gas/as.new ] ; \
47 then echo ${objroot}/../gas/as.new ; \
48 else echo as ; fi`
50 AR = @AR@
52 #LD = @LD@
53 LD = `if [ -f ${objroot}/../ld/ld.new ] ; \
54 then echo ${objroot}/../ld/ld.new ; \
55 else echo ld ; fi`
57 RANLIB = @RANLIB@
59 OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
60 then echo ${objroot}/../binutils/objdump ; \
61 else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
62 OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
63 then echo ${objroot}/../binutils/objcopy ; \
64 else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
66 CRT0 = cygmon-crt0.o
67 CYGMON_OBJS = cygmon-salib.o cygmon-gmon.o
69 CFLAGS = -g
71 GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
72 then echo -L${objroot}/../gcc ; fi`
74 SCRIPTS = cygmon
75 BSP = libcygmon.a
77 # Host specific makefile fragment comes in here.
78 @host_makefile_frag@
80 all: ${CRT0} ${BSP}
83 # here's where we build the board support packages for each target
85 libcygmon.a: $(CYGMON_OBJS)
86 ${AR} ${ARFLAGS} $@ $(CYGMON_OBJS)
87 ${RANLIB} $@
89 cygmon-salib.o: ${srcdir}/cygmon-salib.c
90 $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ @IS_AOUT@ $(<) -o $@
92 cygmon-crt0.o: ${srcdir}/cygmon-crt0.S
93 $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ @IS_AOUT@ $(<) -o $@
95 doc:
97 clean mostlyclean:
98 rm -f a.out core *.i *~ *.o *-test *.srec *.dis *.map *.x
100 distclean maintainer-clean realclean: clean
101 rm -f Makefile config.status a.out
103 .PHONY: install info install-info clean-info
104 install:
105 $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0)
106 @for bsp in ${BSP}; do\
107 $(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \
108 done
109 @for script in ${SCRIPTS}; do\
110 $(INSTALL_DATA) ${srcdir}/$${script}.ld $(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \
111 done
113 info:
114 install-info:
115 clean-info:
117 test.o: ${srcdir}/test.c
119 # these are for the BSPs
120 ${CRT0}: cygmon-crt0.S
122 Makefile: Makefile.in config.status @host_makefile_frag_path@
123 $(SHELL) config.status
125 config.status: configure
126 $(SHELL) config.status --recheck