Commit a57e6152 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

commiting Makefile

parent 526e8cff
VERSION=1.0
MODULES=conditional_ldap
MODULES_conditional_ldap.so=conditional_ldap
DISTFILES=Makefile conditional_ldap.c
all: $(MODULES:%=libnss_%.so.2)
libnss_%.so.2: %.so
cp -p $< $@
%.pic.o %.o: %.c
gcc -Wall -Werror -fPIC -DPIC -o $@ -c $<
conditional_ldap.so: $(MODULES_conditional_ldap.so:%=%.pic.o)
gcc -shared $^ -ldl -Wl,-znodelete -Wl,-soname -o $@
install:
install -d $(DESTDIR)/$(LIBDIR)
install $(MODULES:%=libnss_%.so.2) $(DESTDIR)/$(LIBDIR)
TAR:
tar -cvzf conditional_ldap-$(VERSION).tar.gz \
--transform='s|.*|conditional_ldap-$(VERSION)/&|g' \
$(DISTFILES)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment