Home | History | Annotate | Line # | Download | only in nssov
Makefile revision 1.1.1.3.24.1
      1  1.1.1.3.24.1    tls # $OpenLDAP$
      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.3.24.1    tls # Copyright 2008-2014 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.1.3.24.1    tls LDAP_SRC=../../..
     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.1.3.24.1    tls LDAP_BUILD=../../..
     21           1.1  lukem 
     22  1.1.1.3.24.1    tls LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
     23  1.1.1.3.24.1    tls LDAP_LIB = $(LDAP_BUILD)/libraries/libldap_r/libldap_r.la \
     24  1.1.1.3.24.1    tls 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     25           1.1  lukem 
     26       1.1.1.3   adam NLDAPD_INC=-Inss-pam-ldapd
     27           1.1  lukem 
     28  1.1.1.3.24.1    tls LIBTOOL = $(LDAP_BUILD)/libtool
     29  1.1.1.3.24.1    tls OPT = -g -O2 -Wall
     30  1.1.1.3.24.1    tls CC = gcc
     31  1.1.1.3.24.1    tls DEFS =
     32  1.1.1.3.24.1    tls INCS = $(LDAP_INC) $(NLDAPD_INC)
     33  1.1.1.3.24.1    tls LIBS = $(LDAP_LIB)
     34           1.1  lukem 
     35       1.1.1.2  lukem prefix=/usr/local
     36       1.1.1.2  lukem exec_prefix=$(prefix)
     37       1.1.1.2  lukem ldap_subdir=/openldap
     38       1.1.1.2  lukem 
     39       1.1.1.2  lukem libdir=$(exec_prefix)/lib
     40       1.1.1.2  lukem libexecdir=$(exec_prefix)/libexec
     41       1.1.1.2  lukem moduledir = $(libexecdir)$(ldap_subdir)
     42       1.1.1.2  lukem sysconfdir = $(prefix)/etc$(ldap_subdir)
     43       1.1.1.2  lukem schemadir = $(sysconfdir)/schema
     44       1.1.1.2  lukem 
     45       1.1.1.3   adam all:	nssov.la
     46           1.1  lukem 
     47           1.1  lukem XOBJS = tio.lo
     48           1.1  lukem 
     49           1.1  lukem OBJS = alias.lo ether.lo group.lo host.lo netgroup.lo network.lo \
     50       1.1.1.2  lukem 	nssov.lo passwd.lo protocol.lo rpc.lo service.lo shadow.lo pam.lo
     51           1.1  lukem 
     52           1.1  lukem .SUFFIXES: .c .o .lo
     53           1.1  lukem 
     54           1.1  lukem .c.lo:
     55       1.1.1.2  lukem 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
     56           1.1  lukem 
     57       1.1.1.3   adam tio.lo:	nss-pam-ldapd/tio.c
     58       1.1.1.3   adam 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
     59           1.1  lukem 
     60           1.1  lukem $(OBJS):	nssov.h
     61           1.1  lukem 
     62           1.1  lukem nssov.la:	$(OBJS) $(XOBJS)
     63           1.1  lukem 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
     64       1.1.1.2  lukem 	-rpath $(libdir) -module -o $@ $(OBJS) $(XOBJS) $(LIBS)
     65       1.1.1.2  lukem 
     66       1.1.1.2  lukem install: nssov.la
     67       1.1.1.2  lukem 	mkdir -p $(DESTDIR)$(moduledir)
     68       1.1.1.2  lukem 	$(LIBTOOL) --mode=install cp nssov.la $(DESTDIR)$(moduledir)
     69       1.1.1.2  lukem 	cp ldapns.schema $(DESTDIR)$(schemadir)
     70       1.1.1.2  lukem 
     71       1.1.1.2  lukem clean:
     72       1.1.1.2  lukem 	rm -f *.*o *.la .libs/*
     73       1.1.1.3   adam 	rm -rf .libs
     74