## ## $Id: Makefile,v 1.2 2001/06/10 16:32:20 carlos Exp $ ## ## Makefile -- Build procedure for sample sqlinclude Apache module ## Autogenerated via ``apxs -n sqlinclude -g''. ## # the used tools APXS=apxs APACHECTL=apachectl # additional user defines, includes and libraries #DEF=-Dmy_define=my_value #INC=-Imy/include/dir #LIB=-Lmy/lib/dir -lc -lmylib LIB=-lmysqlclient # the default target all: mod_sqlinclude.so # compile the DSO file mod_sqlinclude.so: mod_sqlinclude.c $(APXS) -c $(DEF) $(INC) $(LIB) mod_sqlinclude.c # install the DSO file into the Apache installation # AND activate it in the Apache configuration install: all $(APXS) -i -a -n 'sqlinclude' mod_sqlinclude.so # install the DSO file into the Apache installation copy: all $(APXS) -i -n 'sqlinclude' mod_sqlinclude.so # cleanup clean: -rm -f mod_sqlinclude.o mod_sqlinclude.so # simple test #test: reload # lynx -mime_header http://localhost/sqlinclude # reload the module by installing and restarting Apache reload: install restart combo: all copy restart import: mysql -p -u root test