]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/nops/Makefile
Merge remote branch 'origin/mdb.master'
[openldap] / contrib / slapd-modules / nops / Makefile
1 # $OpenLDAP$
2 CPPFLAGS+=-I../../../include -I../../../servers/slapd 
3 CPPFLAGS+=-DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC
4 LIBS=-L$(PREFIX)/lib -lldap_r -llber -lcrypto
5
6 all: nops.la
7
8 nops.lo:    nops.c
9         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $?
10
11 nops.la:    nops.lo
12         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
13                    -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
14
15 clean:
16         rm -f nops.lo nops.la
17
18 install: nops.la
19         mkdir -p $(PREFIX)/lib/openldap 
20         mkdir -p $(PREFIX)/man/man5
21         $(LIBTOOL) --mode=install cp nops.la $(PREFIX)/lib/openldap
22         $(LIBTOOL) --finish $(PREFIX)/lib
23         cp nops.5 $(PREFIX)/man/man5