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