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

#   the used tools
APXS=apxs
APACHECTL=apachectl

#   additional user defines, includes and libraries
#DEF=-Dmy_define=my_value
#INC=-Imy/include/dir
#LIB=-Lmy/lib/dir -lmylib

#   the default target
all: mod_limitipconn.so

#   compile the DSO file
mod_limitipconn.so: mod_limitipconn.c
	$(APXS) -c $(DEF) $(INC) $(LIB) mod_limitipconn.c

#   install the DSO file into the Apache installation
#   and activate it in the Apache configuration
install: all
	$(APXS) -c -i -a -n 'limitipconn' mod_limitipconn.c

#   cleanup
clean:
	-rm -rf mod_limitipconn.o mod_limitipconn.so mod_limitipconn.lo mod_limitipconn.slo mod_limitipconn.la .libs

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

#   reload the module by installing and restarting Apache
reload: install restart

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

