1 |
282 |
jeremybenn |
# Copyright (C) 2000, 2001, 2002, 2003, 2005,
|
2 |
|
|
# 2008 Free Software Foundation, Inc.
|
3 |
|
|
#
|
4 |
|
|
# This file is part of GCC.
|
5 |
|
|
#
|
6 |
|
|
# GCC is free software; you can redistribute it and/or modify
|
7 |
|
|
# it under the terms of the GNU General Public License as published by
|
8 |
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
9 |
|
|
# any later version.
|
10 |
|
|
#
|
11 |
|
|
# GCC is distributed in the hope that it will be useful,
|
12 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
|
|
# GNU General Public License for more details.
|
15 |
|
|
#
|
16 |
|
|
# You should have received a copy of the GNU General Public License
|
17 |
|
|
# along with GCC; see the file COPYING3. If not see
|
18 |
|
|
# .
|
19 |
|
|
|
20 |
|
|
RANLIB_FOR_TARGET = ` \
|
21 |
|
|
if [ -f $(objdir)/../binutils/ranlib ] ; then \
|
22 |
|
|
echo $(objdir)/../binutils/ranlib ; \
|
23 |
|
|
else \
|
24 |
|
|
if [ "$(host)" = "$(target)" ] ; then \
|
25 |
|
|
echo ranlib; \
|
26 |
|
|
else \
|
27 |
|
|
if [ -f $(bindir)/$(target_noncanonical)-ranlib ] ; then \
|
28 |
|
|
echo $(bindir)/$(target_noncanonical)-ranlib ; \
|
29 |
|
|
else \
|
30 |
|
|
t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
|
31 |
|
|
fi; \
|
32 |
|
|
fi; \
|
33 |
|
|
fi`
|
34 |
|
|
|
35 |
|
|
LIB1ASMSRC = m68hc11/larith.asm
|
36 |
|
|
LIB1ASMFUNCS = _mulsi3 \
|
37 |
|
|
_mulqi3 _ashlsi3 _ashrsi3 _lshrsi3 \
|
38 |
|
|
_divmodhi4 _mulhi3 _mulhi32 \
|
39 |
|
|
_memcpy _memset _negsi2 _one_cmplsi2 \
|
40 |
|
|
_regs_min _regs_frame _regs_d1_2 \
|
41 |
|
|
_regs_d3_4 _regs_d5_6 _regs_d7_8 _regs_d9_16 _regs_d17_32 \
|
42 |
|
|
_premain __exit _abort _cleanup \
|
43 |
|
|
_adddi3 _subdi3 _notdi2 _rotlhi3 _rotrhi3 \
|
44 |
|
|
_ashrhi3 _lshrhi3 _lshlhi3 _ashrqi3 _lshlqi3 _map_data _init_bss \
|
45 |
|
|
_ctor _dtor _far_tramp _call_far _return_far
|
46 |
|
|
|
47 |
|
|
TARGET_LIBGCC2_CFLAGS = -DUSE_GAS -DIN_GCC -Dinhibit_libc
|
48 |
|
|
|
49 |
|
|
# C implementation of 32-bit div/mod.
|
50 |
|
|
LIB2FUNCS_EXTRA = $(srcdir)/config/udivmodsi4.c \
|
51 |
|
|
$(srcdir)/config/divmod.c $(srcdir)/config/udivmod.c
|
52 |
|
|
|
53 |
|
|
# Don't compile with -g1 this reduces the size of some sections (.eh_frame).
|
54 |
|
|
LIBGCC2_DEBUG_CFLAGS =-g
|
55 |
|
|
LIBGCC2_CFLAGS = -Os -mrelax $(LIBGCC2_INCLUDES) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2
|
56 |
|
|
|
57 |
|
|
MULTILIB_OPTIONS = m68hc11/m68hc12 mshort fshort-double
|
58 |
|
|
MULTILIB_DIRNAMES =
|
59 |
|
|
MULTILIB_MATCHES = m68hc11=m6811 m68hc12=m6812 m68hc12=m68hcs12
|
60 |
|
|
MULTILIB_EXCEPTIONS = -mnoshort -mno68hc11
|
61 |
|
|
|
62 |
|
|
LIBGCC = stmp-multilib
|
63 |
|
|
INSTALL_LIBGCC = install-multilib
|
64 |
|
|
|
65 |
|
|
# We want fine grained libraries, so use the new code to build the
|
66 |
|
|
# floating point emulation libraries.
|
67 |
|
|
FPBIT = fp-bit.c
|
68 |
|
|
DPBIT = dp-bit.c
|
69 |
|
|
|
70 |
|
|
dp-bit.c: $(srcdir)/config/fp-bit.c
|
71 |
|
|
echo '#define SMALL_MACHINE' >> dp-bit.c
|
72 |
|
|
echo '#define CMPtype HItype' >> dp-bit.c
|
73 |
|
|
echo '#ifdef __LITTLE_ENDIAN__' >> dp-bit.c
|
74 |
|
|
echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
|
75 |
|
|
echo '#endif' >> dp-bit.c
|
76 |
|
|
cat $(srcdir)/config/fp-bit.c >> dp-bit.c
|
77 |
|
|
|
78 |
|
|
fp-bit.c: $(srcdir)/config/fp-bit.c
|
79 |
|
|
echo '#define FLOAT' > fp-bit.c
|
80 |
|
|
echo '#define CMPtype HItype' >> fp-bit.c
|
81 |
|
|
echo '#define SMALL_MACHINE' >> fp-bit.c
|
82 |
|
|
echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
|
83 |
|
|
echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
|
84 |
|
|
echo '#endif' >> fp-bit.c
|
85 |
|
|
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
86 |
|
|
|
87 |
|
|
CRT0_S = $(srcdir)/config/m68hc11/m68hc11-crt0.S
|
88 |
|
|
MCRT0_S= $(srcdir)/config/m68hc11/m68hc11-crt0.S
|
89 |
|
|
|
90 |
|
|
CRT0STUFF_T_CFLAGS =
|
91 |
|
|
|
92 |
|
|
# Assemble startup files.
|
93 |
|
|
$(T)crt1.o: $(CRT0_S) $(GCC_PASSES)
|
94 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(CRT0_S)
|
95 |
|
|
|
96 |
|
|
EXTRA_MULTILIB_PARTS = crt1.o
|