d30v: New port.
[gcc.git] / gcc / config / d30v / t-d30v
1 # Build libgcc1 from assembler sources
2 LIBGCC1 = libgcc1-asm.a
3 CROSS_LIBGCC1 = libgcc1-asm.a
4 LIB1ASMSRC = d30v/libgcc1.asm
5 LIB1ASMFUNCS = _udivsi3 _divsi3
6
7 # Turn on full debug for libgcc.a.
8 LIBGCC2_DEBUG_CFLAGS = -g
9
10 # We want fine grained libraries, so use the new code to build the
11 # floating point emulation libraries.
12 FPBIT = fp-bit.c
13 DPBIT = dp-bit.c
14
15 dp-bit.c: $(srcdir)/config/fp-bit.c config.status
16 cat $(srcdir)/config/fp-bit.c > dp-bit.c
17
18 fp-bit.c: $(srcdir)/config/fp-bit.c config.status
19 echo '#define FLOAT' > fp-bit.c
20 echo '#define _fpadd_parts _fpadd_parts_sf' >> fp-bit.c
21 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
22
23 # For svr4 we build crtbegin.o and crtend.o which serve to add begin and
24 # end labels to the .ctors and .dtors section when we link using gcc.
25
26 EXTRA_PARTS=crtbegin.o crtend.o
27
28 # We need to use -fPIC when we are using gcc to compile the routines in
29 # crtstuff.c. This is only really needed when we are going to use gcc/g++
30 # to produce a shared library, but since we don't know ahead of time when
31 # we will be doing that, we just always use -fPIC when compiling the
32 # routines in crtstuff.c.
33
34 # Right now, disable, since we don't support shared libraries on d30v yet.
35 #CRTSTUFF_T_CFLAGS = -fPIC