Home | History | Annotate | Line # | Download | only in smbk5pwd
Makefile revision 1.1.1.2
      1  1.1.1.2  lukem # OpenLDAP: pkg/ldap/contrib/slapd-modules/smbk5pwd/Makefile,v 1.1.6.4 2009/10/02 21:16:53 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 1998-2009 The OpenLDAP Foundation.
      5      1.1  lukem # Copyright 2004 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 LIBTOOL=../../../libtool
     16      1.1  lukem OPT=-g -O2
     17      1.1  lukem CC=gcc
     18      1.1  lukem 
     19      1.1  lukem # Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
     20      1.1  lukem DEFS=-DDO_KRB5 -DDO_SAMBA
     21      1.1  lukem 
     22      1.1  lukem HEIMDAL_INC=-I/usr/heimdal/include
     23      1.1  lukem SSL_INC=
     24      1.1  lukem LDAP_INC=-I../../../include -I../../../servers/slapd
     25      1.1  lukem INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
     26      1.1  lukem 
     27      1.1  lukem HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
     28      1.1  lukem SSL_LIB=-lcrypto
     29      1.1  lukem LDAP_LIB=-lldap_r -llber
     30      1.1  lukem LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
     31      1.1  lukem 
     32  1.1.1.2  lukem prefix=/usr/local
     33  1.1.1.2  lukem exec_prefix=$(prefix)
     34  1.1.1.2  lukem ldap_subdir=/openldap
     35  1.1.1.2  lukem 
     36  1.1.1.2  lukem libdir=$(exec_prefix)/lib
     37  1.1.1.2  lukem libexecdir=$(exec_prefix)/libexec
     38  1.1.1.2  lukem moduledir = $(libexecdir)$(ldap_subdir)
     39  1.1.1.2  lukem 
     40      1.1  lukem all:	smbk5pwd.la
     41      1.1  lukem 
     42      1.1  lukem 
     43      1.1  lukem smbk5pwd.lo:	smbk5pwd.c
     44      1.1  lukem 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
     45      1.1  lukem 
     46      1.1  lukem smbk5pwd.la:	smbk5pwd.lo
     47      1.1  lukem 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
     48  1.1.1.2  lukem 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     49  1.1.1.2  lukem 
     50  1.1.1.2  lukem clean:
     51  1.1.1.2  lukem 	rm -f smbk5pwd.lo smbk5pwd.la
     52  1.1.1.2  lukem 
     53  1.1.1.2  lukem install: smbk5pwd.la
     54  1.1.1.2  lukem 	mkdir -p $(DESTDIR)$(moduledir)
     55  1.1.1.2  lukem 	$(LIBTOOL) --mode=install cp smbk5pwd.la $(DESTDIR)$(moduledir)
     56