]> git.saurik.com Git - apt.git/blobdiff - buildlib/staticlibrary.mak
Correctly report write errors when flushing buffered writer
[apt.git] / buildlib / staticlibrary.mak
index 0835fe8a073b0062c41dc49addddcbc7946d477f..e81770e8a2b07adacb4107b33f846aa8127d0288 100644 (file)
@@ -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):
@@ -47,7 +50,7 @@ endif
 vpath %.cc $(SUBDIRS)
 $(OBJ)/%.o: %.cc
        echo Compiling $< to $@
-       $(CXX) -c $(INLINEDEPFLAG) $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
+       $(CXX) -c $(INLINEDEPFLAG) $(CPPFLAGS) $(CXXSTD) $(CXXFLAGS) -o $@ '$(abspath $<)'
        $(DoDep)
 
 # Include the dependencies that are available