# Install the command hooks
headers: $($(LOCAL)-HEADERS)
-library: $(LIB)/lib$(LIBRARY).so $(LIB)/lib$(LIBRARY).so.$(MAJOR)
+library: $(LIB)/lib$(LIBRARY).so $(LIB)/lib$(LIBRARY).so.$(MAJOR) $(LIB)/lib$(LIBRARY).a
clean: clean/$(LOCAL)
veryclean: veryclean/$(LOCAL)
$(LFLAGS_SO) $(SONAME_MAGIC)$($(@F)-SONAME) -shared \
$(filter %.opic,$^) $($(@F)-SLIBS)
+$(LIB)/lib$(LIBRARY).a: $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
+ -rm -f $(LIB)/lib$($(@F)-LIBRARY).a 2> /dev/null
+ echo Building static library $@
+ $(AR) rc $@ $(filter %.opic,$^)
+ ranlib $@
+
# Compilation rules
vpath %.cc $(SUBDIRS)
$(OBJ)/%.opic: %.cc