1# Makefile.in for overlays 2# $OpenLDAP$ 3## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4## 5## Copyright 2003-2021 The OpenLDAP Foundation. 6## All rights reserved. 7## 8## Redistribution and use in source and binary forms, with or without 9## modification, are permitted only as authorized by the OpenLDAP 10## Public License. 11## 12## A copy of this license is available in the file LICENSE in the 13## top-level directory of the distribution or, alternatively, at 14## <http://www.OpenLDAP.org/license.html>. 15 16SRCS = argon2.c 17 18LTONLY_MOD = $(LTONLY_mod) 19LDAP_INCDIR= ../../../include 20LDAP_LIBDIR= ../../../libraries 21 22MOD_DEFS = -DSLAPD_IMPORT 23 24shared_LDAP_LIBS = $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA) 25NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) 26UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) 27 28LIBRARY = dummyvalue 29PROGRAMS = @SLAPD_DYNAMIC_PWMODS@ 30 31XINCPATH = -I.. -I$(srcdir)/.. 32XDEFS = $(MODULES_CPPFLAGS) 33 34dynamic: $(PROGRAMS) 35 36argon2.la : argon2.lo version.lo 37 $(LTLINK_MOD) -module -o $@ argon2.lo version.lo $(ARGON2_LIBS) $(LINK_LIBS) $(MODULES_LIBS) 38 39install-local: $(PROGRAMS) 40 @if test -n "$?" ; then \ 41 $(MKDIR) $(DESTDIR)$(moduledir); \ 42 $(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\ 43 fi 44 45MKDEPFLAG = -l 46 47.SUFFIXES: .c .o .lo 48 49.c.lo: 50 $(LTCOMPILE_MOD) $< 51 52# Must fixup depends for non-libtool objects 53depend-local: depend-common 54 @if test -n "$(OBJS)"; then \ 55 OBJ2=`echo $(OBJS) $(OBJDEP) | $(SED) -e 's/\.o//g'`; \ 56 SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \ 57 mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \ 58 $(RM) Makefile.bak; fi 59 60