/[Development]/mod_auth_ibmdb2/mod_authnz_ibmdb2/makemod
ViewVC logotype

Contents of /mod_auth_ibmdb2/mod_authnz_ibmdb2/makemod

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations)
Wed Mar 21 05:50:47 2007 UTC (3 years, 5 months ago) by tessus
Branch: MAIN
CVS Tags: RELEASE_1_23, RELEASE_1_26, HEAD
Changes since 1.4: +2 -13 lines
updated makemod script
1 #! /bin/sh
2
3 # $Id: makemod,v 1.5 2007/03/21 05:50:47 tessus Exp $
4
5 # SCRIPT: makemod
6 # Builds the mod_authnz_ibmdb2 module and moves it to the modules directory
7 # Usage: makemod
8
9 # Set DB2PATH to where DB2 will be accessed.
10 # Set APXS to the path that points to your apxs binary
11
12 # Path settings
13
14 DB2PATH=/home/db2inst1/sqllib
15 APXS=/usr/local/apache/bin/apxs
16
17 #
18 # clean up left-overs from previous build:
19 #
20 if [ -d .libs ]
21 then
22 rm -rf .libs
23 fi
24
25 for x in mod_authnz_ibmdb2.la mod_authnz_ibmdb2.lo mod_authnz_ibmdb2.o mod_authnz_ibmdb2.slo mod_authnz_ibmdb2.so
26 do
27 if [ -f $x ]
28 then
29 rm $x
30 fi
31 done
32
33 # Set extra flags for the linker
34
35 if [ "`uname`" = "AIX" ]
36 then
37 EXTRA_LFLAG="-Wl,-G,-blibpath:$DB2PATH/lib"
38 else
39 EXTRA_LFLAG="-Wl,-rpath,$DB2PATH/lib"
40 fi
41
42 # Build the module
43
44 $APXS -c -I$DB2PATH/include -L$DB2PATH/lib $EXTRA_LFLAG -ldb2 mod_authnz_ibmdb2.c
45
46 # Moving the module to the apropriate directory
47
48 $APXS -i mod_authnz_ibmdb2.la

CVS admin
ViewVC Help
Powered by ViewVC 1.1.5