X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/a4419536621943012477a48fc1fc5b1c730a2834..a218458b4eea5cdc85c94039cb3388fcffb3455a:/subproj/Build.mak diff --git a/subproj/Build.mak b/subproj/Build.mak index 01d8779..9552ae0 100644 --- a/subproj/Build.mak +++ b/subproj/Build.mak @@ -1,9 +1,23 @@ -$L/libsubproj.so: LINKER := $(CC) -$L/libsubproj.so: $(call find_objects,c) +# Create the include directory symlink +setup_include_dir__ := $(call symlink_include_dir,otherproj) -.PHONY: subproj -subproj: $L/libsubproj.so +# Build the shared library +$L/libotherproj.so: LINKER := $(CC) +$L/libotherproj.so: $(call find_objects,c) +all += otherproj -all += subproj +# Nice shortcut target +.PHONY: otherproj +otherproj: $L/libotherproj.so + +# 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)