## ## Makefile -- Build procedure for sample auth_sdb Apache module ## Autogenerated via ``apxs -n auth_sdb -g''. ## # the used tools APXS=apxs APACHECTL=apachectl # additional user defines, includes and libraries #DEF=-Dmy_define=my_value INC=-I/usr/local/include LIB=-L/usr/local/lib -lsdb # the default target all: mod_auth_sdb.so # compile the DSO file mod_auth_sdb.so: mod_auth_sdb.c $(APXS) -c $(DEF) $(INC) $(LIB) mod_auth_sdb.c # install the DSO file into the Apache installation # and activate it in the Apache configuration install: all if [ -e ./mod_auth_sdb.la ] ; then \ $(APXS) -i -a -n 'auth_sdb' ./mod_auth_sdb.la ; \ else \ $(APXS) -i -a -n 'auth_sdb' mod_auth_sdb.so ; \ fi # cleanup clean: -rm -f *.o *.so *.la *.lo *.slo -rm -rf .libs # simple test test: reload lynx -mime_header http://localhost/auth_sdb # 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