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

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus committed
3
all: autogroup.la
4

Emmanuel Dreyfus's avatar
Emmanuel Dreyfus 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 $@ $? 
11
12

clean:
Emmanuel Dreyfus's avatar
Emmanuel Dreyfus 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