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

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

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
5
all: autogroup.la
6

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
7
8
9
10
11
12
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 $@ $? 
13
14

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