]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/Makefile.in
More contrib cleanout
[openldap] / libraries / liblutil / Makefile.in
index 03d012a0de80bd7194204857250535fee72b4618..f40e04c54c58c874b76d8cfadc7a94e98ee6b8d7 100644 (file)
@@ -1,11 +1,39 @@
+# $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 ##
-## Makefile for -lutil
+## Makefile for -llutil
 ##
 
 LIBRARY        = liblutil.a
-SRCS   = base64.c detach.c md5.c passwd.c sha1.c getpass.c lockf.c
-OBJS   = base64.o detach.o md5.o passwd.o sha1.o getpass.o lockf.o @LIBOBJS@
+
+NT_SRCS = ntservice.c
+NT_OBJS = ntservice.o slapdmsg.res
+
+UNIX_SRCS = detach.c
+UNIX_OBJS = detach.o
+
+SRCS   = base64.c debug.c entropy.c sasl.c signal.c hash.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 sasl.o signal.o hash.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 = -DLDAP_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
+