]> git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/ccmake
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / cspxutils / ccmake
1 #! /bin/csh -f
2 #
3 # make all CommonCrypto tests (from scratch).
4 #
5 set DO_CLEAN=NO
6 set LOCAL_CC=
7
8 set TARGETS= (ccSymCompat \
9 ccSymTest \
10 ccHmacCompat \
11 ccHmacClone \
12 ccOneShot \
13 ccCtxSize \
14 ccPerform \
15 ccOpensslCompat )
16
17 while ( $#argv > 0 )
18 switch ( "$argv[1]" )
19 case clean:
20 set DO_CLEAN=YES
21 shift
22 breaksw
23 case local:
24 set LOCAL_CC="-lcommonCrypto -L$LOCAL_BUILD_DIR"
25 shift
26 breaksw
27 default:
28 echo "Usage: ccmake [clean] [local]"
29 exit(1)
30 endsw
31 end
32
33 set CSPXUTILS=`pwd`
34
35 foreach targ ($TARGETS)
36 if($DO_CLEAN == YES) then
37 echo ====== Cleaning $targ ======
38 cd $CSPXUTILS/$targ
39 make clean || exit(1)
40 else
41 echo ====== Building $targ ======
42 cd $CSPXUTILS/$targ
43 make PROJ_LDFLAGS="$LOCAL_CC" || exit(1)
44 endif
45 end
46