X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/e1b1ae50b50242e30a56e14df854d4368e8b49c2..0fd68707605f42741574304e5d51582fe298a4b0:/buildlib/staticlibrary.mak diff --git a/buildlib/staticlibrary.mak b/buildlib/staticlibrary.mak index 998ca5bf2..ce9259dc0 100644 --- a/buildlib/staticlibrary.mak +++ b/buildlib/staticlibrary.mak @@ -24,6 +24,9 @@ library: $($(LOCAL)-LIB) clean: clean/$(LOCAL) veryclean: veryclean/$(LOCAL) +# Make Directories +MKDIRS += $(OBJ) $(DEP) $(LIB) $(dir $($(LOCAL)-HEADERS)) + # The clean rules .PHONY: clean/$(LOCAL) veryclean/$(LOCAL) clean/$(LOCAL): @@ -39,6 +42,9 @@ $($(LOCAL)-LIB): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS) echo Building library $@ -rm $@ > /dev/null 2>&1 $(AR) cq $@ $(filter %.o,$^) +ifneq ($(words $(RANLIB)),0) + $(RANLIB) $@ +endif # Compilation rules vpath %.cc $(SUBDIRS)