X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/a4419536621943012477a48fc1fc5b1c730a2834..23fbed21c284d6c286f019f0d68e1e0d2c4b2906:/lib2/Build.mak diff --git a/lib2/Build.mak b/lib2/Build.mak index 02841c5..4f201de 100644 --- a/lib2/Build.mak +++ b/lib2/Build.mak @@ -1,6 +1,17 @@ -$L/liblib2.so: $(call find_objects,cpp) $L/liblib1.so $L/libsubproj.so +# Build the shared library +$L/liblib2.so: CXXFLAGS += $(otherproj-PC-CFLAGS) +$L/liblib2.so: $(call find_objects,cpp) $L/liblib1.so $L/libotherproj.so +# Nice shortcut target .PHONY: lib2 lib2: $L/liblib2.so +# Install the shared library +$I/lib/liblib2.so: $L/liblib2.so +install += $I/lib/liblib2.so + +# Install the library's headers +# XXX: we can't use += here, call will be resolved lazily if we do +install := $(install) $(call find_headers,h,$I/include/makeit/lib2) +