1# Makefile for -llutil 2# $OpenLDAP$ 3## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4## 5## Copyright 1998-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 16LIBRARY = liblutil.a 17 18LDAP_INCDIR= ../../include 19LDAP_LIBDIR= ../../libraries 20 21NT_SRCS = ntservice.c 22NT_OBJS = ntservice.o slapdmsg.res 23 24UNIX_SRCS = detach.c 25UNIX_OBJS = detach.o 26 27XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) 28 29SRCS = base64.c entropy.c sasl.c signal.c hash.c passfile.c \ 30 md5.c passwd.c sha1.c getpass.c lockf.c utils.c uuid.c sockpair.c \ 31 meter.c \ 32 @LIBSRCS@ $(@PLAT@_SRCS) 33 34OBJS = base64.o entropy.o sasl.o signal.o hash.o passfile.o \ 35 md5.o passwd.o sha1.o getpass.o lockf.o utils.o uuid.o sockpair.o \ 36 meter.o \ 37 @LIBOBJS@ $(@PLAT@_OBJS) 38 39# These rules are for a Mingw32 build, specifically. 40# It's ok for them to be here because the clean rule is harmless, and 41# slapdmsg.res won't get built unless it's declared in OBJS. 42 43RC = @RC@ 44 45slapdmsg.bin: FORCE 46 @if [ ! -f $@ ]; then cp $(srcdir)/$@ .; fi 47 48slapdmsg.res: slapdmsg.rc slapdmsg.bin 49 $(RC) $< -O coff -o $@ 50 51clean-local: 52 $(RM) *.res 53 54