## ## Makefile -- Build procedure for sample annodex Apache module ## Autogenerated via ``apxs -n annodex -g''. ## # the used tools APXS=apxs APACHECTL=apachectl # additional user defines, includes and libraries #DEF=-Dmy_define=my_value #INC=-Imy/include/dir INC=`pkg-config --cflags annodex cmml` #LIB=-Lmy/lib/dir -lc -lmylib LIB=`pkg-config --libs annodex cmml` # the default target all: mod_annodex.so # compile the DSO file mod_annodex.so: mod_annodex.c $(APXS) -c $(DEF) $(INC) $(LIB) mod_annodex.c # install the DSO file into the Apache installation # and activate it in the Apache configuration install: all $(APXS) -i -a -n 'annodex' mod_annodex.so # cleanup clean: -rm -f mod_annodex.o mod_annodex.so # simple test test: reload lynx -mime_header http://localhost/annodex # 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