X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/356b4610c9f48d07ce798e8b1fca229e08111f8f..a6bdc2e5d941a688625fbcd6b3ce35e8510dcc3c:/subproj/Build.mak?ds=sidebyside diff --git a/subproj/Build.mak b/subproj/Build.mak index 353fe83..9552ae0 100644 --- a/subproj/Build.mak +++ b/subproj/Build.mak @@ -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)