APXS=@APXS@
CPPFLAGS=@CPPFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
TLS=@TLS@
ACTIVATE=@ACTIVATE@
TARGET=@TARGET@

$(TARGET): Makefile mod_ldap_userdir.c
	$(APXS) -c $(CPPFLAGS) $(LDFLAGS) $(LIBS) $(TLS) mod_ldap_userdir.c

install: $(TARGET)
	$(APXS) -in ldap_userdir $(ACTIVATE) $(TARGET)

clean:
	rm -rf *.lo *.la *.slo *.so *.o .libs/ *~ core

distclean: clean
	rm -rf Makefile config.status config.cache config.log config.h autom4te.cache/

configure: configure.in
	autoconf

config.status: configure
	./config.status --recheck

config.h.in: configure.in
	autoheader

config.h: config.h.in config.status
	./config.status

Makefile: Makefile.in config.status
	./config.status
