Home | History | Annotate | Line # | Download | only in smbk5pwd
Makefile revision 1.1.1.2
      1 # OpenLDAP: pkg/ldap/contrib/slapd-modules/smbk5pwd/Makefile,v 1.1.6.4 2009/10/02 21:16:53 quanah Exp
      2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
      3 #
      4 # Copyright 1998-2009 The OpenLDAP Foundation.
      5 # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
      6 #
      7 # Redistribution and use in source and binary forms, with or without
      8 # modification, are permitted only as authorized by the OpenLDAP
      9 # Public License.
     10 #
     11 # A copy of this license is available in the file LICENSE in the
     12 # top-level directory of the distribution or, alternatively, at
     13 # <http://www.OpenLDAP.org/license.html>.
     14 
     15 LIBTOOL=../../../libtool
     16 OPT=-g -O2
     17 CC=gcc
     18 
     19 # Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
     20 DEFS=-DDO_KRB5 -DDO_SAMBA
     21 
     22 HEIMDAL_INC=-I/usr/heimdal/include
     23 SSL_INC=
     24 LDAP_INC=-I../../../include -I../../../servers/slapd
     25 INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
     26 
     27 HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
     28 SSL_LIB=-lcrypto
     29 LDAP_LIB=-lldap_r -llber
     30 LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
     31 
     32 prefix=/usr/local
     33 exec_prefix=$(prefix)
     34 ldap_subdir=/openldap
     35 
     36 libdir=$(exec_prefix)/lib
     37 libexecdir=$(exec_prefix)/libexec
     38 moduledir = $(libexecdir)$(ldap_subdir)
     39 
     40 all:	smbk5pwd.la
     41 
     42 
     43 smbk5pwd.lo:	smbk5pwd.c
     44 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
     45 
     46 smbk5pwd.la:	smbk5pwd.lo
     47 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
     48 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     49 
     50 clean:
     51 	rm -f smbk5pwd.lo smbk5pwd.la
     52 
     53 install: smbk5pwd.la
     54 	mkdir -p $(DESTDIR)$(moduledir)
     55 	$(LIBTOOL) --mode=install cp smbk5pwd.la $(DESTDIR)$(moduledir)
     56