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