| 1 |
############################################################################### |
| 2 |
# Copyright (C) 2007 Tetsuya Kimata <kimata@acapulco.dyndns.org> |
| 3 |
# |
| 4 |
# All rights reserved. |
| 5 |
# |
| 6 |
# This software is provided 'as-is', without any express or implied |
| 7 |
# warranty. In no event will the authors be held liable for any |
| 8 |
# damages arising from the use of this software. |
| 9 |
# |
| 10 |
# Permission is granted to anyone to use this software for any |
| 11 |
# purpose, including commercial applications, and to alter it and |
| 12 |
# redistribute it freely, subject to the following restrictions: |
| 13 |
# |
| 14 |
# 1. The origin of this software must not be misrepresented; you must |
| 15 |
# not claim that you wrote the original software. If you use this |
| 16 |
# software in a product, an acknowledgment in the product |
| 17 |
# documentation would be appreciated but is not required. |
| 18 |
# |
| 19 |
# 2. Altered source versions must be plainly marked as such, and must |
| 20 |
# not be misrepresented as being the original software. |
| 21 |
# |
| 22 |
# 3. This notice may not be removed or altered from any source |
| 23 |
# distribution. |
| 24 |
# |
| 25 |
# $Id: GNUmakefile.in 1012 2006-04-11 15:32:28Z svn $ |
| 26 |
############################################################################### |
| 27 |
# |
| 28 |
# * ������ |
| 29 |
# - make config : configure ������������������������ |
| 30 |
# - make configure : configure ������������������������ |
| 31 |
# |
| 32 |
# - make apache-module : Apache ������ mod_uploader ������������������ |
| 33 |
# - make apache-module-win: Apache (Windows) ������ mod_uploader ������������������ |
| 34 |
# |
| 35 |
# - make env : ������������������������������������ |
| 36 |
# |
| 37 |
# - make test-win : Windows ��������������������� |
| 38 |
# - make test-win-status : Windows ������������������������������ |
| 39 |
# |
| 40 |
# - make TAGS : TAGS ��������������������� |
| 41 |
# - make doc : ��������������������������� (��� docutils) |
| 42 |
# - make doc-api : API ��������������������������� (��� Doxygen) |
| 43 |
# - make clean : ������������������������������������������������������������ |
| 44 |
# |
| 45 |
############################################################################### |
| 46 |
|
| 47 |
############################################################################### |
| 48 |
# ��������������� |
| 49 |
all: compile |
| 50 |
|
| 51 |
configure: configure.ac acinclude.m4 |
| 52 |
autoreconf |
| 53 |
|
| 54 |
config.status: configure |
| 55 |
CC=$(CC) ./configure --cache-file=config.cache --no-create |
| 56 |
|
| 57 |
config: config.status |
| 58 |
./config.status |
| 59 |
|
| 60 |
compile: apache-module |
| 61 |
|
| 62 |
apache-module-win: |
| 63 |
./util/win_build.pl |
| 64 |
|
| 65 |
apache-module: |
| 66 |
cd src && $(MAKE) -f GNUmakefile |
| 67 |
cp -f src/mod_uploader.so ./ |
| 68 |
|
| 69 |
env: |
| 70 |
@echo ------------------------------------------------------------ |
| 71 |
@echo -e "\033[1;37mmod_uploader:\033[0m" |
| 72 |
@echo @PACKAGE_VERSION@ |
| 73 |
@echo ------------------------------------------------------------ |
| 74 |
@echo -e "\033[1;37mOperatin System:\033[0m" |
| 75 |
@uname -a |
| 76 |
@echo ------------------------------------------------------------ |
| 77 |
@echo -e "\033[1;37mApache:\033[0m" |
| 78 |
@`@APXS@ -q SBINDIR`/`@APXS@ -q TARGET` -v | head -n 1 |
| 79 |
@echo ------------------------------------------------------------ |
| 80 |
@echo -e "\033[1;37mApache Portable Runtime:\033[0m" |
| 81 |
@@APRCONF@ --version |
| 82 |
@echo ------------------------------------------------------------ |
| 83 |
@echo -e "\033[1;37mGNU Compiler Collection:\033[0m" |
| 84 |
@gcc -v 2>&1 | tail -n 1 |
| 85 |
@echo ------------------------------------------------------------ |
| 86 |
@echo -e "\033[1;37mGNU Libtool:\033[0m" |
| 87 |
@@LIBTOOL@ --version 2>&1 | head -n 1 |
| 88 |
@echo ------------------------------------------------------------ |
| 89 |
@echo -e "\033[1;37mRuby:\033[0m" |
| 90 |
@@RUBY@ --version 2>&1 | head -n 1 |
| 91 |
@echo ------------------------------------------------------------ |
| 92 |
|
| 93 |
############################################################################### |
| 94 |
# ��������� |
| 95 |
GNUmakefile: GNUmakefile.in |
| 96 |
./config.status |
| 97 |
|
| 98 |
tags: |
| 99 |
gtags |
| 100 |
|
| 101 |
doc: |
| 102 |
cd doc && make $@ |
| 103 |
|
| 104 |
doc-api: |
| 105 |
cd doc && make $@ |
| 106 |
|
| 107 |
distclean: clean |
| 108 |
@rm -rf GNUmakefile GNUmakefile.apache GNUmakefile.dist |
| 109 |
@rm -rf src/GNUmakefile bin/GNUmakefile |
| 110 |
@rm -rf doc/doxygen.conf |
| 111 |
@rm -rf autom4te.cache autoscan.log config.log config.status config.cache |
| 112 |
|
| 113 |
clean-obj: |
| 114 |
cd src && $(MAKE) $@ |
| 115 |
|
| 116 |
clean: |
| 117 |
cd src && $(MAKE) $@ |
| 118 |
@rm -f *.so |
| 119 |
@rm -f *~ \#*\# |
| 120 |
|
| 121 |
.SUFFIXES: |
| 122 |
.PHONY: config compile apache-module apache-module-win \ |
| 123 |
env tags doc doc-api distclean clean clean-obj |
| 124 |
|
| 125 |
# Local Variables: |
| 126 |
# mode: makefile |
| 127 |
# coding: utf-8-unix |
| 128 |
# End: |