2009-09-29 11:15:39 +08:00
|
|
|
LIBTOOL=../../../libtool
|
|
|
|
|
2009-02-08 06:10:24 +08:00
|
|
|
CPPFLAGS+=-I../../../include -I../../../servers/slapd
|
2007-12-15 19:48:56 +08:00
|
|
|
|
2009-02-08 06:10:24 +08:00
|
|
|
all: autogroup.la
|
2007-12-15 19:48:56 +08:00
|
|
|
|
2009-02-08 06:10:24 +08:00
|
|
|
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 $@ $?
|
2007-12-15 19:48:56 +08:00
|
|
|
|
|
|
|
clean:
|
2009-02-08 06:10:24 +08:00
|
|
|
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
|