]> git.saurik.com Git - apt.git/blobdiff - buildlib/staticlibrary.mak
add REAMDE.md
[apt.git] / buildlib / staticlibrary.mak
index 0835fe8a073b0062c41dc49addddcbc7946d477f..86908700ffbfda6f51baea9c415ff0c65669a627 100644 (file)
@@ -24,6 +24,9 @@ library: $($(LOCAL)-LIB)
 clean: clean/$(LOCAL)
 veryclean: veryclean/$(LOCAL)
 
 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):
 # The clean rules
 .PHONY: clean/$(LOCAL) veryclean/$(LOCAL)
 clean/$(LOCAL):
@@ -47,7 +50,7 @@ endif
 vpath %.cc $(SUBDIRS)
 $(OBJ)/%.o: %.cc
        echo Compiling $< to $@
 vpath %.cc $(SUBDIRS)
 $(OBJ)/%.o: %.cc
        echo Compiling $< to $@
-       $(CXX) -c $(INLINEDEPFLAG) $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
+       $(CXX) -c $(INLINEDEPFLAG) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(abspath $<)
        $(DoDep)
 
 # Include the dependencies that are available
        $(DoDep)
 
 # Include the dependencies that are available