Home | History | Annotate | Line # | Download | only in lastbind
Makefile revision 1.1.1.3
      1      1.1      tron # $OpenLDAP$
      2      1.1      tron # Copyright 2009 Jonathan Clarke <jonathan (at] phillipoux.net>.
      3      1.1      tron # All rights reserved.
      4      1.1      tron #
      5      1.1      tron # Redistribution and use in source and binary forms, with or without
      6      1.1      tron # modification, are permitted only as authorized by the OpenLDAP
      7      1.1      tron # Public License.
      8      1.1      tron #
      9      1.1      tron # A copy of this license is available in the file LICENSE in the
     10      1.1      tron # top-level directory of the distribution or, alternatively, at
     11      1.1      tron # <http://www.OpenLDAP.org/license.html>.
     12      1.1      tron 
     13      1.1      tron LDAP_SRC = ../../..
     14  1.1.1.2  christos LDAP_BUILD = $(LDAP_SRC)
     15      1.1      tron LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
     16  1.1.1.3  christos LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \
     17      1.1      tron 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     18      1.1      tron 
     19      1.1      tron LIBTOOL = $(LDAP_BUILD)/libtool
     20  1.1.1.3  christos INSTALL = /usr/bin/install
     21      1.1      tron CC = gcc
     22  1.1.1.3  christos OPT = -g -O2
     23      1.1      tron DEFS = -DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
     24      1.1      tron INCS = $(LDAP_INC)
     25      1.1      tron LIBS = $(LDAP_LIB)
     26      1.1      tron 
     27      1.1      tron PROGRAMS = lastbind.la
     28  1.1.1.3  christos MANPAGES = slapo-lastbind.5
     29      1.1      tron LTVER = 0:0:0
     30      1.1      tron 
     31      1.1      tron prefix=/usr/local
     32      1.1      tron exec_prefix=$(prefix)
     33      1.1      tron ldap_subdir=/openldap
     34      1.1      tron 
     35      1.1      tron libdir=$(exec_prefix)/lib
     36      1.1      tron libexecdir=$(exec_prefix)/libexec
     37      1.1      tron moduledir = $(libexecdir)$(ldap_subdir)
     38  1.1.1.3  christos mandir = $(exec_prefix)/share/man
     39  1.1.1.3  christos man5dir = $(mandir)/man5
     40      1.1      tron 
     41      1.1      tron .SUFFIXES: .c .o .lo
     42      1.1      tron 
     43      1.1      tron .c.lo:
     44  1.1.1.3  christos 	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(OPT) $(CPPFLAGS) $(DEFS) $(INCS) -c $<
     45      1.1      tron 
     46      1.1      tron all: $(PROGRAMS)
     47      1.1      tron 
     48      1.1      tron lastbind.la: lastbind.lo
     49  1.1.1.3  christos 	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -version-info $(LTVER) \
     50      1.1      tron 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     51      1.1      tron 
     52      1.1      tron clean:
     53      1.1      tron 	rm -rf *.o *.lo *.la .libs
     54      1.1      tron 
     55  1.1.1.3  christos install: install-lib install-man FORCE
     56  1.1.1.3  christos 
     57  1.1.1.3  christos install-lib: $(PROGRAMS)
     58      1.1      tron 	mkdir -p $(DESTDIR)$(moduledir)
     59      1.1      tron 	for p in $(PROGRAMS) ; do \
     60      1.1      tron 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     61      1.1      tron 	done
     62      1.1      tron 
     63  1.1.1.3  christos install-man: $(MANPAGES)
     64  1.1.1.3  christos 	mkdir -p  $(DESTDIR)$(man5dir)
     65  1.1.1.3  christos 	$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man5dir)
     66  1.1.1.3  christos 
     67  1.1.1.3  christos FORCE:
     68  1.1.1.3  christos 
     69