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

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

#   the used tools
APXS=apxs2
APACHECTL=apache2ctl
LIBTOOL=/usr/bin/libtool
SH_LIBTOOL=/usr/bin/libtool

#   additional defines, includes and libraries
#DEFS=-Dmy_define=my_value
#INCLUDES=-Imy/include/dir
INCLUDES=-I/usr/include/apache2 -I/usr/include/apr-0/ `pkg-config --cflags annodex cmml`
#LIBS=-Lmy/lib/dir -lmylib
SH_LIBS=`pkg-config --libs annodex cmml`

#   the default target
all: local-shared-build

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

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

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

#   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

