Home | History | Annotate | Line # | Download | only in cris
      1 LIB2ADD = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c
      2 
      3 # The fixed-point arithmetic code is in one file, arit.c,
      4 # similar to libgcc2.c (or the old libgcc1.c).  We need to
      5 # "split it up" with one file per define.
      6 $(LIB2ADD): $(srcdir)/config/cris/arit.c
      7 	name=`echo $@ | sed -e 's,.*/,,' | sed -e 's,.c$$,,'`; \
      8 	echo "#define L$$name" > tmp-$@ \
      9 	&& echo '#include "$<"' >> tmp-$@ \
     10 	&& mv -f tmp-$@ $@
     11 
     12 # Use an appropriate implementation when implementing DImode division.
     13 HOST_LIBGCC2_CFLAGS += -DTARGET_HAS_NO_HW_DIVIDE
     14