Home | History | Annotate | Line # | Download | only in smbk5pwd
Makefile revision 1.1.1.3.12.1
      1  1.1.1.3.12.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.12.1    tls # Copyright 1998-2014 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.1.3.12.1    tls LDAP_SRC = ../../..
     16  1.1.1.3.12.1    tls LDAP_BUILD = ../../..
     17  1.1.1.3.12.1    tls LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
     18  1.1.1.3.12.1    tls LDAP_LIB = $(LDAP_BUILD)/libraries/libldap_r/libldap_r.la \
     19  1.1.1.3.12.1    tls 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     20  1.1.1.3.12.1    tls 
     21  1.1.1.3.12.1    tls SSL_INC = 
     22  1.1.1.3.12.1    tls SSL_LIB = -lcrypto
     23  1.1.1.3.12.1    tls 
     24  1.1.1.3.12.1    tls HEIMDAL_INC = -I/usr/heimdal/include
     25  1.1.1.3.12.1    tls HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv
     26  1.1.1.3.12.1    tls 
     27  1.1.1.3.12.1    tls LIBTOOL = $(LDAP_BUILD)/libtool
     28  1.1.1.3.12.1    tls CC = gcc
     29  1.1.1.3.12.1    tls OPT = -g -O2 -Wall
     30  1.1.1.3.12.1    tls # Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it.
     31  1.1.1.3.12.1    tls DEFS = -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW
     32  1.1.1.3.12.1    tls INCS = $(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
     33  1.1.1.3.12.1    tls LIBS = $(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
     34  1.1.1.3.12.1    tls 
     35  1.1.1.3.12.1    tls PROGRAMS = smbk5pwd.la
     36  1.1.1.3.12.1    tls LTVER = 0:0:0
     37           1.1  lukem 
     38       1.1.1.2  lukem prefix=/usr/local
     39       1.1.1.2  lukem exec_prefix=$(prefix)
     40       1.1.1.2  lukem ldap_subdir=/openldap
     41       1.1.1.2  lukem 
     42       1.1.1.2  lukem libdir=$(exec_prefix)/lib
     43       1.1.1.2  lukem libexecdir=$(exec_prefix)/libexec
     44       1.1.1.2  lukem moduledir = $(libexecdir)$(ldap_subdir)
     45       1.1.1.2  lukem 
     46  1.1.1.3.12.1    tls .SUFFIXES: .c .o .lo
     47           1.1  lukem 
     48  1.1.1.3.12.1    tls .c.lo:
     49  1.1.1.3.12.1    tls 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
     50           1.1  lukem 
     51  1.1.1.3.12.1    tls all: $(PROGRAMS)
     52           1.1  lukem 
     53           1.1  lukem smbk5pwd.la:	smbk5pwd.lo
     54  1.1.1.3.12.1    tls 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
     55       1.1.1.2  lukem 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     56       1.1.1.2  lukem 
     57       1.1.1.2  lukem clean:
     58  1.1.1.3.12.1    tls 	rm -rf *.o *.lo *.la .libs
     59       1.1.1.2  lukem 
     60  1.1.1.3.12.1    tls install: $(PROGRAMS)
     61       1.1.1.2  lukem 	mkdir -p $(DESTDIR)$(moduledir)
     62  1.1.1.3.12.1    tls 	for p in $(PROGRAMS) ; do \
     63  1.1.1.3.12.1    tls 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     64  1.1.1.3.12.1    tls 	done
     65  1.1.1.3.12.1    tls 
     66