Home | History | Annotate | Line # | Download | only in nssov
Makefile revision 1.1.1.1.2.2
      1 # $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/Makefile,v 1.1.2.1 2008/07/08 18:53:57 quanah Exp $
      2 # Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved.
      3 #
      4 # Redistribution and use in source and binary forms, with or without
      5 # modification, are permitted only as authorized by the OpenLDAP
      6 # Public License.
      7 #
      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>.
     11 
     12 # Path to the OpenLDAP source tree
     13 LDAPSRC=../../..
     14 
     15 # Path to the OpenLDAP object tree - same as above unless
     16 # you're doing out-of-tree builds.
     17 LDAPOBJ=../../..
     18 
     19 LIBTOOL=$(LDAPOBJ)/libtool
     20 OPT=-g -O2
     21 CC=gcc
     22 
     23 LDAP_INC=-I$(LDAPOBJ)/include -I$(LDAPSRC)/include -I$(LDAPSRC)/servers/slapd
     24 NLDAPD_INC=-Inss-ldapd
     25 INCS=$(LDAP_INC) $(NLDAPD_INC)
     26 
     27 LDAP_LIB=-lldap_r -llber
     28 LIBS=$(LDAP_LIB)
     29 
     30 all:	nssov.la
     31 
     32 XOBJS = tio.lo
     33 
     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
     36 
     37 .SUFFIXES: .c .o .lo
     38 
     39 .c.lo:
     40 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
     41 
     42 tio.lo:	nss-ldapd/common/tio.c
     43 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(NLDAPD_INC) -c $?
     44 
     45 $(OBJS):	nssov.h
     46 
     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)
     50