X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/356b4610c9f48d07ce798e8b1fca229e08111f8f..a218458b4eea5cdc85c94039cb3388fcffb3455a:/subproj/Build.mak?ds=inline 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)