]> git.llucax.com Git - software/makeit.git/blobdiff - subproj/Build.mak
Add a special variable for the full current makefile directory
[software/makeit.git] / subproj / Build.mak
index 353fe836b5b1deda7ce731befbe389900fc71f0b..9552ae094d342960bba71de83f09ca2d78dd151c 100644 (file)
@@ -1,11 +1,23 @@
 
+# Create the include directory symlink
 setup_include_dir__ := $(call symlink_include_dir,otherproj)
 
+# Build the shared library
 $L/libotherproj.so: LINKER := $(CC)
 $L/libotherproj.so: $(call find_objects,c)
+all += otherproj
 
+# Nice shortcut target
 .PHONY: otherproj
 otherproj: $L/libotherproj.so
 
-all += otherproj
+# Install the shared library
+$I/lib/libotherproj.so: $L/libotherproj.so
+install += $I/lib/libotherproj.so
+
+# Install the library's headers
+$I/include/otherproj/%.h: $C/%.h
+       $(call install_file)
+# XXX: we can't use += here, call will be resolved lazily if we do
+install := $(install) $(call find_headers,h,$I/include/otherproj)