blob: 0603d850bdeff7070b56f22708c8011e286fd122 [file] [log] [blame]
# -*- makefile -*-
#
# arch/arm/Makefile.inc
#
# Special rules for this architecture. Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#
ARCHOBJS = \
libgcc/__divsi3.o \
libgcc/__modsi3.o \
libgcc/__udivsi3.o \
libgcc/__umodsi3.o \
libgcc/__udivmodsi4.o \
libgcc/__divdi3.o \
libgcc/__moddi3.o \
libgcc/__udivdi3.o \
libgcc/__umoddi3.o \
libgcc/__udivmoddi4.o \
arch/arm/syscall.o
ifeq ($(THUMB),y)
ARCHOBJS += arch/arm/setjmp-thumb.o
LIBGCC =
else
ARCHOBJS += arch/arm/setjmp-arm.o
endif
arch/arm/sysstubs.a: arch/arm/sysstubs.pl
mkdir -p arch/arm/sysstubs
$(PERL) $< arch/arm/sysstubs
$(MAKE) $(patsubst %.S,%.o,$(wildcard arch/arm/sysstubs/*.S))
-rm -f $@
$(AR) cq $@ arch/arm/sysstubs/*.o
$(RANLIB) $@
ARCHSOOBJS = $(patsubst %.o,%.lo,$(ARCHOBJS))
archclean:
-rm -rf arch/arm/sysstubs
-rm -f arch/arm/sysstubs.a