"Fossies" - the Fresh Open Source Software Archive

Member "mod_relocate-1.0/Makefile" (17 Jul 2000, 967 Bytes) of package /linux/www/apache_httpd_modules/old/mod_relocate-1.0.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 relocate Apache module
    3 ##  Autogenerated via ``apxs -n relocate -g''.
    4 ##
    5 
    6 #   the used tools
    7 APXS=apxs
    8 APACHECTL=apachectl
    9 
   10 #   additional 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_relocate.so
   17 
   18 #   compile the shared object file
   19 mod_relocate.so: mod_relocate.c
   20 	$(APXS) -c $(DEF) $(INC) $(LIB) mod_relocate.c
   21 
   22 #   install the shared object file into Apache 
   23 install: all
   24 	$(APXS) -i -a -n 'relocate' mod_relocate.so
   25 
   26 #   cleanup
   27 clean:
   28 	-rm -f mod_relocate.o mod_relocate.so
   29 
   30 #   simple test
   31 test: reload
   32 	lynx -mime_header http://localhost/relocate
   33 
   34 #   install and activate shared object by reloading Apache to
   35 #   force a reload of the shared object file
   36 reload: install restart
   37 
   38 #   the general Apache start/restart/stop
   39 #   procedures
   40 start:
   41 	$(APACHECTL) start
   42 restart:
   43 	$(APACHECTL) restart
   44 stop:
   45 	$(APACHECTL) stop
   46