Makefile 475 Bytes
Newer Older
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
1
CPPFLAGS+=-I../../../include -I../../../servers/slapd
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
2

Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
3
all: autogroup.la
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
autogroup.lo:	autogroup.c
	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?

autogroup.la:	autogroup.lo
	$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
	-rpath $(PREFIX)/lib -module -o $@ $? 
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
11
12

clean:
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
13
14
15
16
17
18
	rm -f autogroup.lo autogroup.la

install: autogroup.la
	mkdir -p $(PREFIX)/lib/openldap
	$(LIBTOOL) --mode=install cp autogroup.la $(PREFIX)/lib/openldap
	$(LIBTOOL) --finish $(PREFIX)/lib