Home | History | Annotate | Line # | Download | only in pbkdf2
      1      1.1  christos # $OpenLDAP$
      2      1.1  christos 
      3      1.1  christos LDAP_SRC = ../../../..
      4      1.1  christos LDAP_BUILD = ../../../..
      5      1.1  christos LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
      6  1.1.1.2  christos LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \
      7      1.1  christos 	$(LDAP_BUILD)/libraries/liblber/liblber.la
      8      1.1  christos 
      9  1.1.1.3  christos PLAT = UNIX
     10  1.1.1.3  christos NT_LIB = -L$(LDAP_BUILD)/servers/slapd -lslapd
     11  1.1.1.3  christos NT_LDFLAGS = -no-undefined -avoid-version
     12  1.1.1.3  christos UNIX_LDFLAGS = -version-info $(LTVER)
     13  1.1.1.3  christos 
     14      1.1  christos LIBTOOL = $(LDAP_BUILD)/libtool
     15  1.1.1.2  christos INSTALL = /usr/bin/install
     16      1.1  christos CC = gcc
     17  1.1.1.2  christos OPT = -g -O2
     18      1.1  christos #DEFS = -DSLAPD_PBKDF2_DEBUG
     19      1.1  christos 
     20  1.1.1.2  christos SSL_INC =
     21  1.1.1.2  christos SSL_LIB = -lcrypto
     22  1.1.1.2  christos 
     23  1.1.1.2  christos INCS = $(LDAP_INC) $(SSL_INC)
     24  1.1.1.3  christos LIBS = $($(PLAT)_LIB) $(LDAP_LIB) $(SSL_LIB)
     25  1.1.1.3  christos LD_FLAGS= $(LDFLAGS) $($(PLAT)_LDFLAGS) -rpath $(moduledir) -module
     26      1.1  christos 
     27      1.1  christos PROGRAMS = pw-pbkdf2.la
     28  1.1.1.2  christos MANPAGES = slapd-pw-pbkdf2.5
     29      1.1  christos LTVER = 0:0:0
     30      1.1  christos 
     31  1.1.1.2  christos prefix=/usr/local
     32      1.1  christos exec_prefix=$(prefix)
     33      1.1  christos ldap_subdir=/openldap
     34      1.1  christos 
     35      1.1  christos libdir=$(exec_prefix)/lib
     36      1.1  christos libexecdir=$(exec_prefix)/libexec
     37      1.1  christos moduledir = $(libexecdir)$(ldap_subdir)
     38  1.1.1.2  christos mandir = $(exec_prefix)/share/man
     39  1.1.1.2  christos man5dir = $(mandir)/man5
     40      1.1  christos 
     41      1.1  christos .SUFFIXES: .c .o .lo
     42      1.1  christos 
     43      1.1  christos .c.lo:
     44  1.1.1.2  christos 	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(OPT) $(CPPFLAGS) $(DEFS) $(INCS) -c $<
     45      1.1  christos 
     46      1.1  christos all:		$(PROGRAMS)
     47      1.1  christos 
     48      1.1  christos pw-pbkdf2.la: pw-pbkdf2.lo
     49  1.1.1.3  christos 	$(LIBTOOL) --mode=link $(CC) $(LD_FLAGS) -o $@ $? $(LIBS)
     50      1.1  christos 
     51      1.1  christos clean:
     52      1.1  christos 	rm -rf *.o *.lo *.la .libs
     53      1.1  christos 
     54  1.1.1.2  christos install: install-lib install-man FORCE
     55  1.1.1.2  christos 
     56  1.1.1.2  christos install-lib: $(PROGRAMS)
     57      1.1  christos 	mkdir -p $(DESTDIR)$(moduledir)
     58      1.1  christos 	for p in $(PROGRAMS) ; do \
     59      1.1  christos 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     60      1.1  christos 	done
     61  1.1.1.2  christos 
     62  1.1.1.2  christos install-man: $(MANPAGES)
     63  1.1.1.2  christos 	mkdir -p  $(DESTDIR)$(man5dir)
     64  1.1.1.2  christos 	$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man5dir)
     65  1.1.1.2  christos 
     66  1.1.1.2  christos FORCE:
     67  1.1.1.2  christos 
     68