##
##  Makefile -- Build procedure for sample perseus Apache module
##  Autogenerated via ``apxs -n perseus -g''.
##
ap_basedir = /usr/share/apache2/
builddir=.
top_srcdir = $(ap_basedir)
top_builddir=$(ap_basedir)
include $(ap_basedir)/build/special.mk
#CFLAGS= -std=c99 -D_FORTIFY_SOURCE=2 -pedantic -pedantic-errors -fPIC  -Wstrict-overflow=5 -fwrapv -Wall -Werror -Wstrict-prototypes -Winline  -Wpointer-arith -Wextra -Wformat -Wformat-security -Wno-unused

#-Wno-long-long 

#   the used tools
APXS=apxs2
APACHECTL=apache2ctl

#   additional defines, includes and libraries
#DEFS=-Dmy_define=my_value
#INCLUDES=-Imy/include/dir
#LIBS=-Lmy/lib/dir -lmylib

#   the default target
all: local-shared-build

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

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

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

#   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

