Home | History | Annotate | Line # | Download | only in nssov
Makefile revision 1.1.1.2
      1  1.1.1.2  lukem # OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/Makefile,v 1.1.2.5 2009/09/01 22:53:30 quanah Exp
      2  1.1.1.2  lukem # This work is part of OpenLDAP Software <http://www.openldap.org/>.
      3  1.1.1.2  lukem #
      4  1.1.1.2  lukem # Copyright 2008-2009 The OpenLDAP Foundation.
      5  1.1.1.2  lukem # Portions Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved.
      6      1.1  lukem #
      7      1.1  lukem # Redistribution and use in source and binary forms, with or without
      8      1.1  lukem # modification, are permitted only as authorized by the OpenLDAP
      9      1.1  lukem # Public License.
     10      1.1  lukem #
     11      1.1  lukem # A copy of this license is available in the file LICENSE in the
     12      1.1  lukem # top-level directory of the distribution or, alternatively, at
     13      1.1  lukem # <http://www.OpenLDAP.org/license.html>.
     14      1.1  lukem 
     15      1.1  lukem # Path to the OpenLDAP source tree
     16      1.1  lukem LDAPSRC=../../..
     17      1.1  lukem 
     18      1.1  lukem # Path to the OpenLDAP object tree - same as above unless
     19      1.1  lukem # you're doing out-of-tree builds.
     20      1.1  lukem LDAPOBJ=../../..
     21      1.1  lukem 
     22      1.1  lukem LIBTOOL=$(LDAPOBJ)/libtool
     23      1.1  lukem OPT=-g -O2
     24      1.1  lukem CC=gcc
     25      1.1  lukem 
     26      1.1  lukem LDAP_INC=-I$(LDAPOBJ)/include -I$(LDAPSRC)/include -I$(LDAPSRC)/servers/slapd
     27      1.1  lukem NLDAPD_INC=-Inss-ldapd
     28      1.1  lukem INCS=$(LDAP_INC) $(NLDAPD_INC)
     29      1.1  lukem 
     30      1.1  lukem LDAP_LIB=-lldap_r -llber
     31      1.1  lukem LIBS=$(LDAP_LIB)
     32      1.1  lukem 
     33  1.1.1.2  lukem prefix=/usr/local
     34  1.1.1.2  lukem exec_prefix=$(prefix)
     35  1.1.1.2  lukem ldap_subdir=/openldap
     36  1.1.1.2  lukem 
     37  1.1.1.2  lukem libdir=$(exec_prefix)/lib
     38  1.1.1.2  lukem libexecdir=$(exec_prefix)/libexec
     39  1.1.1.2  lukem moduledir = $(libexecdir)$(ldap_subdir)
     40  1.1.1.2  lukem sysconfdir = $(prefix)/etc$(ldap_subdir)
     41  1.1.1.2  lukem schemadir = $(sysconfdir)/schema
     42  1.1.1.2  lukem 
     43  1.1.1.2  lukem all:	install
     44      1.1  lukem 
     45      1.1  lukem XOBJS = tio.lo
     46      1.1  lukem 
     47      1.1  lukem OBJS = alias.lo ether.lo group.lo host.lo netgroup.lo network.lo \
     48  1.1.1.2  lukem 	nssov.lo passwd.lo protocol.lo rpc.lo service.lo shadow.lo pam.lo
     49      1.1  lukem 
     50      1.1  lukem .SUFFIXES: .c .o .lo
     51      1.1  lukem 
     52      1.1  lukem .c.lo:
     53  1.1.1.2  lukem 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
     54      1.1  lukem 
     55      1.1  lukem tio.lo:	nss-ldapd/common/tio.c
     56      1.1  lukem 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(NLDAPD_INC) -c $?
     57      1.1  lukem 
     58      1.1  lukem $(OBJS):	nssov.h
     59      1.1  lukem 
     60      1.1  lukem nssov.la:	$(OBJS) $(XOBJS)
     61      1.1  lukem 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
     62  1.1.1.2  lukem 	-rpath $(libdir) -module -o $@ $(OBJS) $(XOBJS) $(LIBS)
     63  1.1.1.2  lukem 
     64  1.1.1.2  lukem install: nssov.la
     65  1.1.1.2  lukem 	mkdir -p $(DESTDIR)$(moduledir)
     66  1.1.1.2  lukem 	$(LIBTOOL) --mode=install cp nssov.la $(DESTDIR)$(moduledir)
     67  1.1.1.2  lukem 	cp ldapns.schema $(DESTDIR)$(schemadir)
     68  1.1.1.2  lukem 
     69  1.1.1.2  lukem clean:
     70  1.1.1.2  lukem 	rm -f *.*o *.la .libs/*
     71