Source

Webware / WebKit / Adapters / mod_webkit1 / Makefile

Full commit
##
##  Makefile -- Build procedure for WebKit Apache module
##  Can also be autogenerated via ``apxs -n webkit -g''.
##

#   the used tools

#APXS=apxs
APXS=/usr/sbin/apxs

APACHECTL=apachectl
#APACHECTL=/usr/sbin/apachectl

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

#   You can pass authorization information (passwords)
#   from Apache to WebKit, even if Apache has not been
#   compiled with this feature, by defining the following:
#DEF=-DSECURITY_HOLE_PASS_AUTHORIZATION

#   the default target
all: mod_webkit.so

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

#   install the DSO file into the Apache installation
#   and activate it in the Apache configuration
install: all
	$(APXS) -i -n webkit mod_webkit.so

#   install and activate it in the Apache configuration
activate: all
	$(APXS) -i -a -n webkit mod_webkit.so

#   cleanup
clean:
	-rm -f mod_webkit.o marshal.o mod_webkit.so

#   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