"Fossies" - the Fresh Open Source Software Archive

Member "mod_cgi_debug-0.7/Makefile" (5 Apr 2000, 974 Bytes) of package /linux/www/apache_httpd_modules/old/mod_cgi_debug-0.7.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ##
    2 ##  Makefile -- Build procedure for sample cgi_debug Apache module
    3 ##  Autogenerated via ``apxs -n cgi_debug -g''.
    4 ##
    5 
    6 #   the used tools
    7 APXS=apxs
    8 APACHECTL=apachectl
    9 
   10 #   additional user defines, includes and libraries
   11 #DEF=-Dmy_define=my_value
   12 #INC=-Imy/include/dir
   13 #LIB=-Lmy/lib/dir -lmylib
   14 
   15 #   the default target
   16 all: mod_cgi_debug.so
   17 
   18 #   compile the DSO file
   19 mod_cgi_debug.so: mod_cgi_debug.c
   20 	$(APXS) -c $(DEF) $(INC) $(LIB) mod_cgi_debug.c
   21 
   22 #   install the DSO file into the Apache installation
   23 #   and activate it in the Apache configuration
   24 install: all
   25 	$(APXS) -i -a -n 'cgi_debug' mod_cgi_debug.so
   26 
   27 #   cleanup
   28 clean:
   29 	-rm -f mod_cgi_debug.o mod_cgi_debug.so
   30 
   31 #   simple test
   32 test: reload
   33 	lynx -mime_header http://localhost/cgi_debug
   34 
   35 #   reload the module by installing and restarting Apache
   36 reload: install restart
   37 
   38 #   the general Apache start/restart/stop procedures
   39 start:
   40 	$(APACHECTL) start
   41 restart:
   42 	$(APACHECTL) restart
   43 stop:
   44 	$(APACHECTL) stop
   45