2 # Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted only as authorized by the OpenLDAP
8 # A copy of this license is available in the file LICENSE in the
9 # top-level directory of the distribution or, alternatively, at
10 # <http://www.OpenLDAP.org/license.html>.
12 # Path to the OpenLDAP source tree
15 # Path to the OpenLDAP object tree - same as above unless
16 # you're doing out-of-tree builds.
19 LIBTOOL=$(LDAPOBJ)/libtool
23 LDAP_INC=-I$(LDAPOBJ)/include -I$(LDAPSRC)/include -I$(LDAPSRC)/servers/slapd
24 NLDAPD_INC=-Inss-ldapd
25 INCS=$(LDAP_INC) $(NLDAPD_INC)
27 LDAP_LIB=-lldap_r -llber
34 OBJS = alias.lo ether.lo group.lo host.lo netgroup.lo network.lo \
35 nssov.lo passwd.lo protocol.lo rpc.lo service.lo shadow.lo
40 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
42 tio.lo: nss-ldapd/common/tio.c
43 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(NLDAPD_INC) -c $?
47 nssov.la: $(OBJS) $(XOBJS)
48 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
49 -rpath /usr/local/libexec/openldap -module -o $@ $(OBJS) $(XOBJS) $(LIBS)