1# OpenLDAP: pkg/ldap/contrib/slapd-modules/allowed/Makefile,v 1.1.2.3 2010/04/13 20:22:26 kurt Exp 2# This work is part of OpenLDAP Software <http://www.openldap.org/>. 3# 4# Copyright 1998-2010 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 15PREFIX=/opt/openldap-HEAD 16 17LIBTOOL=../../../libtool 18OPT=-g -O2 19CC=gcc 20 21DEFS=-DSLAPD_OVER_ALLOWED=SLAPD_MOD_DYNAMIC 22 23LDAP_INC=-I../../../include -I../../../servers/slapd 24INCS=$(LDAP_INC) 25 26LDAP_LIB=-lldap_r -llber -L../../../lib 27LDAP_LIB= 28LIBS=$(LDAP_LIB) 29 30all: allowed.la 31 32 33allowed.lo: allowed.c 34 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $? 35 36allowed.la: allowed.lo 37 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ 38 -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS) 39 40clean: 41 rm -f allowed.o allowed.lo allowed.la 42 43install: allowed.la 44 mkdir -p $(PREFIX)/libexec/openldap 45 $(LIBTOOL) --mode=install cp allowed.la $(PREFIX)/libexec/openldap 46 $(LIBTOOL) --finish $(PREFIX)/libexec/openldap 47