]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/passwd/Makefile
Merge remote branch 'origin/mdb.master'
[openldap] / contrib / slapd-modules / passwd / Makefile
1 # $OpenLDAP$
2 CPPFLAGS+=-I../../../include -I../../../servers/slapd
3
4 all: kerberos.la netscape.la radius.la apr1.la
5
6 kerberos.lo:    kerberos.c
7         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -DHAVE_KRB5 -Wall -c $?
8
9 kerberos.la:    kerberos.lo
10         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
11         -rpath $(PREFIX)/lib -module -o $@ $? -lkrb5
12
13 netscape.lo:    netscape.c
14         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
15
16 netscape.la:    netscape.lo
17         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
18         -rpath $(PREFIX)/lib -module -o $@ $? 
19
20 radius.lo:      radius.c
21         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
22
23 radius.la:      radius.lo
24         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
25         -rpath $(PREFIX)/lib -module -o $@ $? -lradius
26
27 apr1.lo:        apr1.c
28         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
29
30 apr1.la:        apr1.lo
31         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
32         -rpath $(PREFIX)/lib -module -o $@ $? 
33
34 clean:
35         rm -f kerberos.lo kerberos.la
36         rm -f netscape.lo netscape.la
37         rm -f radius.lo radius.la
38         rm -f apr1.lo apr1.la
39
40 install: kerberos.la netscape.la radius.la apr1.la
41         mkdir -p $(PREFIX)/lib/openldap
42         $(LIBTOOL) --mode=install cp kerberos.la $(PREFIX)/lib/openldap
43         $(LIBTOOL) --mode=install cp netscape.la $(PREFIX)/lib/openldap
44         $(LIBTOOL) --mode=install cp radius.la $(PREFIX)/lib/openldap
45         $(LIBTOOL) --mode=install cp apr1.la $(PREFIX)/lib/openldap
46         $(LIBTOOL) --finish $(PREFIX)/lib