95f81a
Include sha2 module
95f81a
95f81a
Author: Matus Honek <mhonek@redhat.com>
95f81a
95f81a
diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
95f81a
--- a/servers/slapd/overlays/Makefile.in
95f81a
+++ b/servers/slapd/overlays/Makefile.in
95f81a
@@ -35,7 +35,8 @@ SRCS = overlays.c \
95f81a
 	unique.c \
95f81a
 	valsort.c \
95f81a
 	smbk5pwd.c \
95f81a
-	allop.c
95f81a
+	allop.c \
95f81a
+	sha2.c slapd-sha2.c
95f81a
 OBJS = statover.o \
95f81a
 	@SLAPD_STATIC_OVERLAYS@ \
95f81a
 	overlays.o
95f81a
@@ -55,7 +56,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
95f81a
 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
95f81a
 
95f81a
 LIBRARY = ../liboverlays.a
95f81a
-PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la
95f81a
+PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la pw-sha2.la
95f81a
 
95f81a
 XINCPATH = -I.. -I$(srcdir)/..
95f81a
 XDEFS = $(MODULES_CPPFLAGS)
95f81a
@@ -139,6 +140,15 @@ allop.lo : allop.c
95f81a
 allop.la : allop.lo
95f81a
 	$(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
95f81a
 
95f81a
+sha2.lo : sha2.c
95f81a
+	$(LTCOMPILE_MOD) $<
95f81a
+
95f81a
+slapd-sha2.lo : slapd-sha2.c
95f81a
+	$(LTCOMPILE_MOD) $<
95f81a
+
95f81a
+pw-sha2.la : sha2.lo slapd-sha2.lo
95f81a
+	$(LTLINK_MOD) -module -o $@ $? version.lo $(LINK_LIBS)
95f81a
+
95f81a
 install-local:	$(PROGRAMS)
95f81a
 	@if test -n "$?" ; then \
95f81a
 		$(MKDIR) $(DESTDIR)$(moduledir); \