X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/a4419536621943012477a48fc1fc5b1c730a2834..5fb49083e43e2091a3b73dacf103d37b82faad90:/lib1/Build.mak?ds=inline diff --git a/lib1/Build.mak b/lib1/Build.mak index 7661dc4..356f07b 100644 --- a/lib1/Build.mak +++ b/lib1/Build.mak @@ -1,7 +1,17 @@ +# Build the shared library $L/liblib1.so: LINKER := $(CC) $L/liblib1.so: $(call find_objects,c) +# Nice shortcut target .PHONY: lib1 lib1: $L/liblib1.so +# Install the shared library +$I/lib/liblib1.so: $L/liblib1.so +install += $I/lib/liblib1.so + +# Install the library's headers +# XXX: we can't use += here, call will be resolved lazily if we do +install := $(install) $(call find_files,.h,$I/include/makeit/lib1) +