xref: /netbsd-src/external/bsd/openldap/dist/servers/lloadd/Makefile_module.in (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
1*e670fd5cSchristos# Makefile.in for Load Balancer
2*e670fd5cSchristos# $OpenLDAP$
3*e670fd5cSchristos## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4*e670fd5cSchristos##
5*e670fd5cSchristos## Copyright 1998-2021 The OpenLDAP Foundation.
6*e670fd5cSchristos## All rights reserved.
7*e670fd5cSchristos##
8*e670fd5cSchristos## Redistribution and use in source and binary forms, with or without
9*e670fd5cSchristos## modification, are permitted only as authorized by the OpenLDAP
10*e670fd5cSchristos## Public License.
11*e670fd5cSchristos##
12*e670fd5cSchristos## A copy of this license is available in the file LICENSE in the
13*e670fd5cSchristos## top-level directory of the distribution or, alternatively, at
14*e670fd5cSchristos## <http://www.OpenLDAP.org/license.html>.
15*e670fd5cSchristos
16*e670fd5cSchristos
17*e670fd5cSchristosXSRCS	= version.c
18*e670fd5cSchristos
19*e670fd5cSchristosNT_SRCS = ../slapd/nt_svc.c
20*e670fd5cSchristosNT_OBJS = ../slapd/nt_svc.o ../../libraries/liblutil/slapdmsg.res
21*e670fd5cSchristos
22*e670fd5cSchristosSRCS	+= module_init.c monitor.c
23*e670fd5cSchristos
24*e670fd5cSchristosOBJS	= $(patsubst %.c,%.lo,$(SRCS)) $(@PLAT@_OBJS)
25*e670fd5cSchristos
26*e670fd5cSchristosBUILD_OPT = "--enable-balancer=mod"
27*e670fd5cSchristosBUILD_MOD = @BUILD_BALANCER@
28*e670fd5cSchristos
29*e670fd5cSchristosLIBBASE=lloadd
30*e670fd5cSchristos
31*e670fd5cSchristos# $(LTHREAD_LIBS) must be last!
32*e670fd5cSchristosXLIBS = $(LLOADD_L)
33*e670fd5cSchristosXXLIBS = $(LLOADD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
34*e670fd5cSchristosXXXLIBS = $(LTHREAD_LIBS)
35*e670fd5cSchristos
36*e670fd5cSchristosNT_DEPENDS = slapd.exp
37*e670fd5cSchristosNT_OBJECTS = slapd.exp symdummy.o $(LLOADD_OBJS) version.o
38*e670fd5cSchristos
39*e670fd5cSchristosUNIX_DEPENDS = version.o $(LLOADD_L)
40*e670fd5cSchristosUNIX_OBJECTS = $(OBJS) version.o
41*e670fd5cSchristos
42*e670fd5cSchristosLLOADD_DEPENDS = $(@PLAT@_DEPENDS)
43*e670fd5cSchristosLLOADD_OBJECTS = $(@PLAT@_OBJECTS)
44*e670fd5cSchristosLINK_LIBS=$(LLOADD_LIBS)
45*e670fd5cSchristosMOD_DEFS = -DSLAPD_IMPORT -DBALANCER_MODULE
46