2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 # Copyright 1998-2012 The OpenLDAP Foundation.
5 # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
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>.
16 # craft according to your installation
19 LIBTOOL=$(LDAP_BUILD)/libtool
23 DEFS=-DSLAPD_OVER_RDNVAL=2 -DSLAPD_OVER_PGUID=2 -DSLAPD_OVER_VERNUM=2
25 LDAP_INC=-I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd \
26 -I$(LDAP_BUILD)/include
29 LDAP_LIB=-lldap_r -llber
36 libdir=$(exec_prefix)/lib
37 libexecdir=$(exec_prefix)/libexec
38 moduledir = $(libexecdir)$(ldap_subdir)
40 PROGRAMS = pguid.la rdnval.la vernum.la
45 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
48 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
49 -rpath $(moduledir) -module -o $@ $? $(LIBS)
52 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
55 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
56 -rpath $(moduledir) -module -o $@ $? $(LIBS)
59 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
62 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
63 -rpath $(moduledir) -module -o $@ $? $(LIBS)
67 pguid.o pguid.lo pguid.la \
68 rdnval.o rdnval.lo rdnval.la \
69 vernum.o vernum.lo vernum.la
72 mkdir -p $(DESTDIR)$(moduledir)
73 for p in $(PROGRAMS) ; do \
74 $(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \