fx2lib/lib/fx2.lib: $(fx2lib_objects)
-$(AM_V_at)rm -f $@
- $(AM_V_GEN)$(SDCCLIB) $@ $(fx2lib_objects)
+ $(AM_V_GEN)$(SDAR) -rc $@ $(fx2lib_objects)
fx2lib/lib/interrupts/ints.lib: $(fx2lib_ints_objects)
-$(AM_V_at)rm -f $@
- $(AM_V_GEN)$(SDCCLIB) $@ $(fx2lib_ints_objects)
+ $(AM_V_GEN)$(SDAR) -rc $@ $(fx2lib_ints_objects)
hw/braintechnology-usb-lps/fx2lafw-braintechnology-usb-lps.ihx: hw/braintechnology-usb-lps/dscr.rel $(fx2lafw_objects) $(fx2lib_libs)
$(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS) -o $@ hw/braintechnology-usb-lps/dscr.rel $(fx2lafw_objects) $(fx2lib_libs)
AS_IF([test "x$SDCC" = x],
[AC_MSG_ERROR([cannot find sdcc.])])
-AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib])
-AS_IF([test "x$SDCCLIB" = x],
- [AC_MSG_ERROR([cannot find sdcclib.])])
+AC_CHECK_PROGS([SDAR], [sdar sdcc-sdar])
+AS_IF([test "x$SDAR" = x],
+ [AC_MSG_ERROR([cannot find sdar.])])
sf_sdcc_version=`$SDCC --version | sed -n 's/.* \([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\) .*/\1/p;q' 2>&AS_MESSAGE_LOG_FD`
AS_VERSION_COMPARE([$sf_sdcc_version], [3.4.0],