2009-02-03 03:32:35 +08:00
|
|
|
# $OpenLDAP$
|
2009-02-01 03:23:04 +08:00
|
|
|
CPPFLAGS+=-I../../../include -I../../../servers/slapd
|
|
|
|
CPPFLAGS+=-DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC
|
2009-02-08 06:10:24 +08:00
|
|
|
LIBS=-L$(PREFIX)/lib -lldap_r -llber -lcrypto
|
2008-05-20 06:44:08 +08:00
|
|
|
|
2009-02-01 02:42:59 +08:00
|
|
|
all: nops.la
|
2008-05-20 06:44:08 +08:00
|
|
|
|
2009-02-01 02:42:59 +08:00
|
|
|
nops.lo: nops.c
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $?
|
|
|
|
|
|
|
|
nops.la: nops.lo
|
|
|
|
$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
|
2009-02-01 03:23:04 +08:00
|
|
|
-rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
|
2008-05-20 06:44:08 +08:00
|
|
|
|
|
|
|
clean:
|
2009-02-08 06:10:24 +08:00
|
|
|
rm -f nops.lo nops.la
|
|
|
|
|
|
|
|
install: nops.la
|
|
|
|
mkdir -p $(PREFIX)/lib/openldap
|
|
|
|
mkdir -p $(PREFIX)/man/man5
|
|
|
|
$(LIBTOOL) --mode=install cp nops.la $(PREFIX)/lib/openldap
|
|
|
|
$(LIBTOOL) --finish $(PREFIX)/lib
|
|
|
|
cp nops.5 $(PREFIX)/man/man5
|