source: main/trunk/greenstone2/runtime-src/packages/security/CASCADE-MAKE/CMAKE.sh@ 28866

Last change on this file since 28866 was 28866, checked in by ak19, 10 years ago

Replacing owasp-esapi-for-c package and dependencies with the owasp-esapi-for-c++ package and dependencies. Part 2.

  • Property svn:executable set to *
File size: 761 bytes
Line 
1#!/bin/bash
2
3cd $securitydir/$compiledir
4prefix=$installdir
5
6# If doing a make clean or distclean
7if [ "x$1" != "x" ]; then
8 make $1
9 exit 0
10fi
11
12# else, configure, make, make install
13
14cxxflags="-I$installdir -I$installdir/include"
15ldflags="-L$installdir/lib"
16
17# configure, but only if we haven't already
18if [ ! -e Makefile ] ; then
19 ./configure --prefix=$prefix \
20 --system-curl \
21 -- -DCURL_INCLUDE_DIR=$prefix/include -DCURL_LIBRARY=$prefix/lib/libcurl.so
22fi
23
24
25# make
26CXXFLAGS=$cxxflags LDFLAGS=$ldflags make
27if [ $? != 0 ] ; then
28 echo "Error encountered making $d"
29 exit 1
30fi
31
32# make install
33CXXFLAGS=$cxxflags LDFLAGS=$ldflags make install
34if [ $? != 0 ] ; then
35 echo "Error encountered when installing $d"
36 exit 1
37fi
38
39cd $securitydir
Note: See TracBrowser for help on using the repository browser.