1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
##
## Makefile -- Build procedure for sample relocate Apache module
## Autogenerated via ``apxs -n relocate -g''.
##
# the used tools
APXS=apxs
APACHECTL=apachectl
# additional defines, includes and libraries
#DEF=-Dmy_define=my_value
#INC=-Imy/include/dir
#LIB=-Lmy/lib/dir -lmylib
# the default target
all: mod_relocate.so
# compile the shared object file
mod_relocate.so: mod_relocate.c
$(APXS) -c $(DEF) $(INC) $(LIB) mod_relocate.c
# install the shared object file into Apache
install: all
$(APXS) -i -S LIBEXECDIR=$(DESTDIR)/usr/lib/apache/1.3 -n 'relocate' mod_relocate.so
# cleanup
clean:
-rm -f mod_relocate.o mod_relocate.so
# simple test
test: reload
lynx -mime_header http://localhost/relocate
# 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
|