lib_LTLIBRARIES = libsocket2unix.la libsocket2unix_la_SOURCES = socket2unix.c # Make sure the library is not writable. See README why this is important. Is # not run with `make libsocket2unix.la`, but this isn't common usage. all-local: $(lib_LTLIBRARIES) find .libs -type f -exec chmod ugo-w '{}' \; # `install` uses normal permissions, "fix" them so `make install` also # installs non-writable files. install-exec-hook: find $(DESTDIR)$(libdir) -type f -exec chmod ugo-w '{}' \;