Makefile 686 Bytes
Newer Older
1
2
LIBTOOL=../../../libtool

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
3
CPPFLAGS+=-I../../../include -I../../../servers/slapd
4

5
6
7
8
9
10
11
ldap_subdir = openldap
prefix=/usr/local
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
libexecdir = $(exec_prefix)/libexec
moduledir = $(exec_prefix)/libexec/$(ldap_subdir)

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
12
all: autogroup.la
13

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
14
15
16
17
18
autogroup.lo:	autogroup.c
	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?

autogroup.la:	autogroup.lo
	$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
19
	-rpath $(libdir) -module -o $@ $? 
20
21

clean:
Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
22
23
24
	rm -f autogroup.lo autogroup.la

install: autogroup.la
25
26
27
	mkdir -p $(DESTDIR)$(moduledir)
	$(LIBTOOL) --mode=install cp autogroup.la $(DESTDIR)$(moduledir)
	$(LIBTOOL) --finish $(DESTDIR)$(moduledir)