##
##  Makefile -- Build procedure for sample auth_sso Apache module
##  Autogenerated via ``apxs -n auth_sso -g''.
##

builddir=.
top_srcdir=/usr/local/apache2
top_builddir=/usr/local/apache2
include /usr/local/apache2/build/special.mk

#   the used tools
APXS=apxs
APACHECTL=${top_builddir}/bin/apachectl

#   additional defines, includes and libraries
#DEFS=-Dmy_define=my_value
#INCLUDES=-Imy/include/dir
#LIBS=-Lmy/lib/dir -lmylib
#CFLAGS=-Wall -pedantic
#lint
#CFLAGS=-O -Wuninitialized -Wimplicit
CFLAGS=-DRBAC_ACCESS_RULE

#   the default target
all: local-shared-build

#   install the shared object file into Apache 
install: install-modules

#   cleanup
clean:
	-rm -f mod_auth_rbac.o mod_auth_rbac.lo mod_auth_rbac.slo mod_auth_rbac.la 

#   simple test
test: reload
	lynx -mime_header http://localhost/auth_rbac

#   install and activate shared object by reloading Apache to
#   force a reload of the shared object file
reload: install restart

#   the general Apache start/restart/stop
#   procedures
start:
	$(APACHECTL) start
restart:
	$(APACHECTL) restart
stop:
	$(APACHECTL) stop

