Makefile 607 Bytes
Newer Older
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
1
# $OpenLDAP$
2
3
CPPFLAGS+=-I../../../include -I../../../servers/slapd 
CPPFLAGS+=-DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC
Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
4
LIBS=-L$(PREFIX)/lib -lldap_r -llber -lcrypto
5

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
6
all: nops.la
7

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
8
9
10
11
12
nops.lo:    nops.c
	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $?

nops.la:    nops.lo
	$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
13
		   -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
14
15

clean:
Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
16
17
18
19
20
21
22
23
	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