"Fossies" - the Fresh Open Source Software Archive

Member "mod_throttle-3.1.2/Makefile" (2 Dec 2000, 1009 Bytes) of package /linux/www/apache_httpd_modules/old/mod_throttle312.tgz:


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 throttle Apache module
    3 ##  Autogenerated via ``apxs -n throttle -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 
   14 # Solaris 5.7 POSIX Support Library
   15 #LIB=-lrt
   16 
   17 
   18 
   19 #   the default target
   20 all: mod_throttle.so
   21 
   22 #   compile the DSO file
   23 mod_throttle.so: mod_throttle.c
   24 	$(APXS) -c $(DEF) $(INC) $(LIB) mod_throttle.c
   25 
   26 #   install the DSO file into the Apache installation
   27 #   and activate it in the Apache configuration
   28 install: all
   29 	$(APXS) -i -a -n 'throttle' mod_throttle.so
   30 
   31 #   cleanup
   32 clean:
   33 	-rm -f mod_throttle.o mod_throttle.so
   34 
   35 #   simple test
   36 test: reload
   37 	lynx -mime_header http://localhost/throttle-status
   38 
   39 #   reload the module by installing and restarting Apache
   40 reload: install cycle
   41 
   42 #   the general Apache start/restart/stop procedures
   43 start:
   44 	$(APACHECTL) start
   45 restart:
   46 	$(APACHECTL) restart
   47 stop:
   48 	$(APACHECTL) stop
   49 cycle: stop start
   50