# rules for static libraries
$(LIBDIR)/libdeal_II.g$(static-lib-suffix): $(go-files) $(extra-g.o-files)
@echo "=====deal.II==========debug======$(MT)== Linking library: $(@F)"
- @$(AR) ru $@ $(go-files) $(extra-g.o-files)
+ @rm $@
+ @$(AR) r $@ $(go-files) $(extra-g.o-files)
@$(RANLIB) $@
$(LIBDIR)/libdeal_II$(static-lib-suffix): $(o-files) $(extra-o-files)
@echo "=====deal.II==========optimized==$(MT)== Linking library: $(@F)"
- @$(AR) ru $@ $(o-files) $(extra-o-files)
+ @rm $@
+ @$(AR) r $@ $(o-files) $(extra-o-files)
@$(RANLIB) $@
# them to their final location
$(LIBDIR)/libdeal_II.g$(shared-lib-suffix): $(go-files) $(extra-g.o-files)
@echo "=====deal.II==========debug======$(MT)== Linking library: $(@F)"
- @rm -f $@
+ @rm -f $@ $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
@WORKFILE=`mktemp $${TMPDIR:-/tmp}/tmp.XXXXXXXXXX` && \
$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $$WORKFILE $(call DEAL_II_ADD_SONAME,deal_II.g) $(go-files) $(extra-g.o-files) $(deplibs.g) && \
mv $$WORKFILE $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
$(LIBDIR)/libdeal_II$(shared-lib-suffix): $(o-files) $(extra-o-files)
@echo "=====deal.II==========optimized==$(MT)== Linking library: $(@F)"
- @rm -f $@
+ @rm -f $@ $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
@WORKFILE=`mktemp $${TMPDIR:-/tmp}/tmp.XXXXXXXXXX` && \
$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $$WORKFILE $(call DEAL_II_ADD_SONAME,deal_II) $(o-files) $(extra-o-files) $(deplibs.o) && \
mv $$WORKFILE $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II)