Makefile 686 Bytes
Newer Older
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
1
2
LIBTOOL=../../../libtool

Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
3
CPPFLAGS+=-I../../../include -I../../../servers/slapd
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
4

Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
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)

Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
12
all: autogroup.la
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
13

Quanah Gibson-Mount's avatar
Quanah Gibson-Mount 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 \
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
19
	-rpath $(libdir) -module -o $@ $? 
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
20
21

clean:
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
22
23
24
	rm -f autogroup.lo autogroup.la

install: autogroup.la
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
25
26
27
	mkdir -p $(DESTDIR)$(moduledir)
	$(LIBTOOL) --mode=install cp autogroup.la $(DESTDIR)$(moduledir)
	$(LIBTOOL) --finish $(DESTDIR)$(moduledir)