Skip to content
Snippets Groups Projects
Commit a57e6152 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

commiting Makefile

parent 526e8cff
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment