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