bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / apache-2.0 / Makefile.in
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements.  See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License.  You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 ##
17
18 APXS=@APXS@
19 OS=@OS@
20 JAVA_HOME=@JAVA_HOME@
21 CP=@CP@
22 APACHE_DIR=@APACHE_DIR@
23 MKDIR=@MKDIR@
24 APXSCFLAGS=@APXSCFLAGS@
25 APXSCPPFLAGS=@APXSCPPFLAGS@
26 APXSLDFLAGS=@APXSLDFLAGS@
27 CC=@CC@
28
29 # Defaults
30 libexecdir=${APACHE_DIR}/modules
31
32 JK=../common/
33 # Defines APACHE_OBJECTS - the list of all common files
34 include ../common/list.mk
35
36 # Apache2 settings, values guessed by Apache config and used to build it
37 # Will define libexecdir, LIBTOOL, etc
38 include @APACHE_CONFIG_VARS@
39
40 # Local settings ( overriding/appending to Apache's )
41 COMMON=../common
42 JK_INCL=-DUSE_APACHE_MD5 -I ${COMMON}
43 JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
44 JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L ${JAVA_HOME}/lib/${ARCH}/native_threads
45 CFLAGS=@apache_include@ @CFLAGS@ ${JK_INCL} ${JAVA_INCL} ${APXSCPPFLAGS} ${APXSCFLAGS} ${EXTRA_CFLAGS} ${EXTRA_CPPFLAGS}
46
47
48 # Implicit rules
49 include ../scripts/build/rules.mk
50
51 OEXT=.lo
52
53 all: Makefile @LIB_JK_TYPE@
54 install: @INSTALL_TYPE@
55
56 Makefile: Makefile.in
57         echo Regenerating Makefile
58         ( cd ..; ./config.status )
59
60 lib_jk.la: mod_jk.lo ${APACHE_OBJECTS}
61         $(LIBTOOL) --mode=link $(CC) -o lib_jk.la -static -rpath ${libexecdir}/jk mod_jk.lo $(APACHE_OBJECTS)
62
63 install_static:
64         @echo ""
65         @echo "Copying files to Apache Modules Directory..."
66         -${MKDIR} ${APACHE_DIR}/modules/jk
67         ${CP} config.m4 ${APACHE_DIR}/modules/jk
68         ${LIBTOOL} --mode=install cp lib_jk.la ${APACHE_DIR}/modules/jk
69         @echo ""
70         @echo "Please be sure to re-compile Apache..."
71         @echo ""
72         @echo "cd ${APACHE_DIR}"
73         @echo "./buildconf"
74         @echo "./configure --with-mod_jk"
75         @echo "make"
76         @echo ""
77
78 #################### Dynamic .so file ####################
79 # APXS will compile every file, this is derived from apxs
80
81 mod_jk.la: mod_jk.lo $(APACHE_OBJECTS)
82         $(LIBTOOL) --mode=link ${COMPILE} $(APXSLDFLAGS) -o $@ -module -rpath ${libexecdir} -avoid-version mod_jk.lo $(APACHE_OBJECTS)
83
84 mod_jk.so: mod_jk.la
85         ../scripts/build/instdso.sh SH_LIBTOOL='$(LIBTOOL)' mod_jk.la `pwd`
86
87 install_dynamic:
88         @echo ""
89         @echo "Installing files to Apache Modules Directory..."
90         $(APXS) -i mod_jk.la
91         @echo ""
92         @echo "Please be sure to arrange ${APACHE_DIR}/conf/httpd.conf..."
93         @echo ""
94
95 clean:
96         rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
97         rm -rf .libs
98
99 maintainer-clean: clean