OSDN Git Service

config:
[pf3gnuchains/gcc-fork.git] / gcc / config / m68hc11 / t-m68hc11
1 RANLIB_FOR_TARGET = ` \
2   if [ -f $(objdir)/../binutils/ranlib ] ; then \
3     echo $(objdir)/../binutils/ranlib ; \
4   else \
5     if [ "$(host)" = "$(target)" ] ; then \
6       echo ranlib; \
7     else \
8        if [ -f $(bindir)/$(target_noncanonical)-ranlib ] ; then \
9           echo $(bindir)/$(target_noncanonical)-ranlib ; \
10        else \
11           t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
12        fi; \
13     fi; \
14   fi`
15
16 LIB1ASMSRC = m68hc11/larith.asm
17 LIB1ASMFUNCS = _mulsi3 \
18         _mulqi3 _ashlsi3 _ashrsi3 _lshrsi3 \
19         _divmodhi4 _mulhi3 _mulhi32 \
20         _memcpy _memset _negsi2 _one_cmplsi2 \
21         _regs_min _regs_frame _regs_d1_2 \
22         _regs_d3_4 _regs_d5_6 _regs_d7_8 _regs_d9_16 _regs_d17_32 \
23         _premain __exit _abort _cleanup \
24         _adddi3 _subdi3 _notdi2 _rotlhi3 _rotrhi3 \
25         _ashrhi3 _lshrhi3 _lshlhi3 _ashrqi3 _lshlqi3 _map_data _init_bss \
26         _ctor _dtor _far_tramp _call_far _return_far
27
28 TARGET_LIBGCC2_CFLAGS = -DUSE_GAS -DIN_GCC -Dinhibit_libc
29
30 # C implementation of 32-bit div/mod.
31 LIB2FUNCS_EXTRA = $(srcdir)/config/udivmodsi4.c \
32         $(srcdir)/config/divmod.c $(srcdir)/config/udivmod.c
33
34 # Don't compile with -g1 this reduces the size of some sections (.eh_frame).
35 LIBGCC2_DEBUG_CFLAGS =-g
36 LIBGCC2_CFLAGS = -Os -mrelax $(LIBGCC2_INCLUDES) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2
37
38 MULTILIB_OPTIONS  = m68hc11/m68hc12 mshort fshort-double
39 MULTILIB_DIRNAMES =
40 MULTILIB_MATCHES  = m68hc11=m6811 m68hc12=m6812 m68hc12=m68hcs12
41 MULTILIB_EXCEPTIONS = -mnoshort -mno68hc11
42
43 LIBGCC = stmp-multilib
44 INSTALL_LIBGCC = install-multilib
45
46 # We want fine grained libraries, so use the new code to build the
47 # floating point emulation libraries.
48 FPBIT = fp-bit.c
49 DPBIT = dp-bit.c
50
51 dp-bit.c: $(srcdir)/config/fp-bit.c
52         echo '#define SMALL_MACHINE' >> dp-bit.c
53         echo '#define CMPtype HItype' >> dp-bit.c
54         echo '#ifdef __LITTLE_ENDIAN__' >> dp-bit.c
55         echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
56         echo '#endif'           >> dp-bit.c
57         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
58
59 fp-bit.c: $(srcdir)/config/fp-bit.c
60         echo '#define FLOAT' > fp-bit.c
61         echo '#define CMPtype HItype' >> fp-bit.c
62         echo '#define SMALL_MACHINE' >> fp-bit.c
63         echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
64         echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
65         echo '#endif'           >> fp-bit.c
66         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
67
68 CRT0_S = $(srcdir)/config/m68hc11/m68hc11-crt0.S
69 MCRT0_S= $(srcdir)/config/m68hc11/m68hc11-crt0.S
70
71 CRT0STUFF_T_CFLAGS =
72
73 # Assemble startup files.
74 $(T)crt1.o: $(CRT0_S) $(GCC_PASSES)
75         $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(CRT0_S)
76
77 EXTRA_MULTILIB_PARTS = crt1.o