## ## Makefile -- Build procedure for sample cs Apache module ## Autogenerated via ``apxs -n cs -g''. ## builddir=. top_srcdir=/usr/local/apache2 top_builddir=/usr/local/apache2 include /usr/local/apache2/build/special.mk # the used tools APXS=/usr/local/apache2/bin/apxs APACHECTL=/usr/local/apache2/bin/apachectl # additional defines, includes and libraries #DEFS=-Dmy_define=my_value INCLUDES=-I/usr/local/include/ClearSilver LIBS=-L/usr/local/lib -lneo_cs -lneo_cgi -lneo_utl -lz # the default target #all: local-shared-build all: $(APXS) -c $(INCLUDES) $(LIBS) mod_cs.c # install the shared object file into Apache install: install-modules # cleanup clean: -rm -f mod_cs.o mod_cs.lo mod_cs.slo mod_cs.la # simple test test: reload lynx -mime_header http://localhost/cs # 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