objects = compat.o passphrase.o pwstore.o pwstore_convert.o pwstore_disk.o pwstore_search.o stubs.o HDRS = pwstore.h passphrase.h LDFLAGS = -shared -Wl,-soname,libpwstore.so LDLIBS = -lcrypto -lbsd CFLAGS = -pipe -fPIC -Wall -Werror -Wextra -g3 -O0 -I /usr/include/bsd -DLIBBSD_OVERLAY -D_GNU_SOURCE PREFIX = /usr/local LIBDIR = $(PREFIX)/lib INCDIR = $(PREFIX)/include MANDIR = $(PREFIX)/man include shlib_version libpwstore.so: $(objects) $(CC) $(LDFLAGS) $(LDLIBS) -o $@.$(major).$(minor) $(objects) compat.o: CFLAGS+=-Wno-unused-parameter compat.o: compat.h passphrase.o: crypto.h compat.h passphrase.h pwstore.o: pwstore_disk.h pwstore_priv.h pwstore_queue.h pwstore_convert.o: pwstore_priv.h pwstore_disk.o: pwstore_disk.h pwstore_priv.h pwstore_search.o: pwstore_priv.h stubs.o: CFLAGS+=-Wno-unused-parameter .PHONY: all clean install uninstall all: libpwstore.so clean: rm -f libpwstore.so.$(major).$(minor) $(objects) # XXX # Find a way to install all the aliases, as is done on OpenBSD install: all install libpwstore.so.$(major).$(minor) $(LIBDIR)/libpwstore.so.$(major).$(minor) ldconfig install $(HDRS) $(INCDIR)/ install -d $(MANDIR)/man3 install pwstore_safe_create.3 $(MANDIR)/man3/ mandb uninstall: rm $(LIBDIR)/libpwstore.so for H in $(HDRS) ; do \ rm $(INCDIR)/$$H; \ done rm $(MANDIR)/man3/pwstore_safe_create.3