]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/Makefile.in
Add experimental code to check simple bind passwords
[openldap] / libraries / liblutil / Makefile.in
index a1cf5ab72e8fd55748afe927d221ddef7442812a..8aec16995fea57a9e40d3d173d48f2b851900a95 100644 (file)
@@ -1,11 +1,37 @@
+# $OpenLDAP$
 ##
-## Makefile for -lutil
+## Makefile for -llutil
 ##
 
 LIBRARY        = liblutil.a
-SRCS   = base64.c detach.c md5.c passwd.c sha1.c
-OBJS   = base64.o detach.o md5.o passwd.c sha1.o @LIBOBJS@
+
+NT_SRCS = nt_err.c ntservice.c
+NT_OBJS = nt_err.o ntservice.o slapdmsg.res
+
+UNIX_SRCS = detach.c
+UNIX_OBJS = detach.o
+
+SRCS   = base64.c debug.c entropy.c \
+       md5.c passwd.c sha1.c getpass.c lockf.c utils.c sockpair.c \
+       @LIBSRCS@ $(@PLAT@_SRCS)
+
+OBJS   = base64.o debug.o entropy.o \
+       md5.o passwd.o sha1.o getpass.o lockf.o utils.o sockpair.o \
+       @LIBOBJS@ $(@PLAT@_OBJS)
 
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
+NT_DYN_LIB_DEFS = -DLIBLDAP_DECL=dllimport
+CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_LIB_DEFS)
+
+# These rules are for a Mingw32 build, specifically.
+# It's ok for them to be here because the clean rule is harmless, and
+# slapdmsg.res won't get built unless it's declared in OBJS.
+
+slapdmsg.res: slapdmsg.rc slapdmsg.bin
+       windres $< -O coff -o $@
+
+clean-local:
+       $(RM) *.res
+