1 1.1.1.1.6.2 haad # $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/Makefile,v 1.1.2.1 2008/07/08 18:53:57 quanah Exp $ 2 1.1.1.1.6.2 haad # Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved. 3 1.1.1.1.6.2 haad # 4 1.1.1.1.6.2 haad # Redistribution and use in source and binary forms, with or without 5 1.1.1.1.6.2 haad # modification, are permitted only as authorized by the OpenLDAP 6 1.1.1.1.6.2 haad # Public License. 7 1.1.1.1.6.2 haad # 8 1.1.1.1.6.2 haad # A copy of this license is available in the file LICENSE in the 9 1.1.1.1.6.2 haad # top-level directory of the distribution or, alternatively, at 10 1.1.1.1.6.2 haad # <http://www.OpenLDAP.org/license.html>. 11 1.1.1.1.6.2 haad 12 1.1.1.1.6.2 haad # Path to the OpenLDAP source tree 13 1.1.1.1.6.2 haad LDAPSRC=../../.. 14 1.1.1.1.6.2 haad 15 1.1.1.1.6.2 haad # Path to the OpenLDAP object tree - same as above unless 16 1.1.1.1.6.2 haad # you're doing out-of-tree builds. 17 1.1.1.1.6.2 haad LDAPOBJ=../../.. 18 1.1.1.1.6.2 haad 19 1.1.1.1.6.2 haad LIBTOOL=$(LDAPOBJ)/libtool 20 1.1.1.1.6.2 haad OPT=-g -O2 21 1.1.1.1.6.2 haad CC=gcc 22 1.1.1.1.6.2 haad 23 1.1.1.1.6.2 haad LDAP_INC=-I$(LDAPOBJ)/include -I$(LDAPSRC)/include -I$(LDAPSRC)/servers/slapd 24 1.1.1.1.6.2 haad NLDAPD_INC=-Inss-ldapd 25 1.1.1.1.6.2 haad INCS=$(LDAP_INC) $(NLDAPD_INC) 26 1.1.1.1.6.2 haad 27 1.1.1.1.6.2 haad LDAP_LIB=-lldap_r -llber 28 1.1.1.1.6.2 haad LIBS=$(LDAP_LIB) 29 1.1.1.1.6.2 haad 30 1.1.1.1.6.2 haad all: nssov.la 31 1.1.1.1.6.2 haad 32 1.1.1.1.6.2 haad XOBJS = tio.lo 33 1.1.1.1.6.2 haad 34 1.1.1.1.6.2 haad OBJS = alias.lo ether.lo group.lo host.lo netgroup.lo network.lo \ 35 1.1.1.1.6.2 haad nssov.lo passwd.lo protocol.lo rpc.lo service.lo shadow.lo 36 1.1.1.1.6.2 haad 37 1.1.1.1.6.2 haad .SUFFIXES: .c .o .lo 38 1.1.1.1.6.2 haad 39 1.1.1.1.6.2 haad .c.lo: 40 1.1.1.1.6.2 haad $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $? 41 1.1.1.1.6.2 haad 42 1.1.1.1.6.2 haad tio.lo: nss-ldapd/common/tio.c 43 1.1.1.1.6.2 haad $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(NLDAPD_INC) -c $? 44 1.1.1.1.6.2 haad 45 1.1.1.1.6.2 haad $(OBJS): nssov.h 46 1.1.1.1.6.2 haad 47 1.1.1.1.6.2 haad nssov.la: $(OBJS) $(XOBJS) 48 1.1.1.1.6.2 haad $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ 49 1.1.1.1.6.2 haad -rpath /usr/local/libexec/openldap -module -o $@ $(OBJS) $(XOBJS) $(LIBS) 50