|
# t-or32 is a Makefile fragment to be included when
|
|
# building gcc for the or32 target
|
|
|
|
# Copyright (C) 2010 Embecosm Limited
|
|
|
|
# This file is part of GCC.
|
|
#
|
|
# GCC is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
# any later version.
|
#
|
#
|
# t-default is Makefile fragment to be included when
|
# GCC is distributed in the hope that it will be useful,
|
# building gcc for or32 target
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
#
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GCC; see the file COPYING3. If not see
|
|
# .
|
|
|
# we don't support -g so don't use it
|
# we don't support -g so don't use it
|
LIBGCC2_DEBUG_CFLAGS =
|
LIBGCC2_DEBUG_CFLAGS =
|
|
|
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer
|
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer
|
|
|
LIB1ASMSRC = or32/or32.S
|
LIB1ASMSRC = or32/or32.S
|
LIB1ASMFUNCS = __mulsi3 __udivsi3 __divsi3 __umodsi3 __modsi3
|
LIB1ASMFUNCS = __mulsi3 __udivsi3 __divsi3 __umodsi3 __modsi3
|
|
|
# These are really part of libgcc1, but this will cause them to be
|
# These are really part of libgcc1, but this will cause them to be
|
# built correctly, so... [taken from t-sparclite]
|
# built correctly, so... [taken from t-sparclite]
|
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
|
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
|
|
|
dp-bit.c: $(srcdir)/config/fp-bit.c
|
dp-bit.c: $(srcdir)/config/fp-bit.c
|
cat $(srcdir)/config/fp-bit.c > dp-bit.c
|
cat $(srcdir)/config/fp-bit.c > dp-bit.c
|
|
|
fp-bit.c: $(srcdir)/config/fp-bit.c
|
fp-bit.c: $(srcdir)/config/fp-bit.c
|
echo '#define FLOAT' > fp-bit.c
|
echo '#define FLOAT' > fp-bit.c
|
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
|
|
# Build the libraries for both hard and soft floating point
|
# Build the libraries for both hard and soft floating point
|
|
|
#MULTILIB_OPTIONS = msoft-float
|
#MULTILIB_OPTIONS = msoft-float
|
#MULTILIB_DIRNAMES = soft-float
|
#MULTILIB_DIRNAMES = soft-float
|
|
|
#LIBGCC = stmp-multilib
|
#LIBGCC = stmp-multilib
|
#INSTALL_LIBGCC = install-multilib
|
#INSTALL_LIBGCC = install-multilib
|
|
|
#LIBGCC =
|
#LIBGCC =
|
#INSTALL_LIBGCC =
|
#INSTALL_LIBGCC =
|
|
|
# .init/.fini section routines
|
# .init/.fini section routines
|
|
|
$(T)crtinit.o: $(srcdir)/config/or32/initfini.c $(GCC_PASSES) $(CONFIG_H)
|
$(T)crti.o: $(srcdir)/config/or32/crti.S $(GCC_PASSES) $(CONFIG_H)
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
|
$(MULTILIB_CFLAGS) -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
|
$(MULTILIB_CFLAGS) -finhibit-size-directive -fno-inline-functions \
|
-g0 -c $(srcdir)/config/or32/initfini.c -o $(T)crtinit.o
|
-g0 -c $< -o $@
|
|
|
$(T)crtfini.o: $(srcdir)/config/or32/initfini.c $(GCC_PASSES) $(CONFIG_H)
|
$(T)crtn.o: $(srcdir)/config/or32/crtn.S $(GCC_PASSES) $(CONFIG_H)
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
|
-DCRT_FINI $(MULTILIB_CFLAGS) -finhibit-size-directive -fno-inline-functions \
|
$(MULTILIB_CFLAGS) -finhibit-size-directive -fno-inline-functions \
|
-g0 -c $(srcdir)/config/or32/initfini.c -o $(T)crtfini.o
|
-g0 -c $< -o $@
|
|
|
#MULTILIB_OPTIONS =
|
#MULTILIB_OPTIONS =
|
#MULTILIB_DIRNAMES = be
|
|
#EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o
|
|
|
|