1 #!/bin/sh 2 # 3 # file: make_intel_linux 4 # 5 # Build script for Intel Linux Compiler 6 # 7 # 8 # Tested with: Intel(R) C Compiler for 32-bit applications, Version 8.1 9 # Build 20050207Z Package ID: <installpackageid> 10 # 11 # 12 # Tested with: Intel(R) C++ Compiler for 32-bit applications, Version 7.0 13 # Build 20021021Z 14 # 15 # 16 rm -f libmapm.a map*.o 17 rm -f calc validate primenum cpp_demo 18 # 19 # icc -V 20 # 21 # compile the MAPM library files 22 # 23 icc -c -ip -O3 map*.c 24 # 25 # 26 # build the library and delete object files 27 # 28 ar rc libmapm.a map*.o 29 rm map*.o 30 # 31 # 32 # build the 4 demo programs 33 # 34 # 35 icc -ip -O3 -o calc calc.c libmapm.a 36 icc -ip -O3 -o validate validate.c libmapm.a 37 icc -ip -O3 -o primenum primenum.c libmapm.a 38 # 39 icpc -ip -O3 -o cpp_demo cpp_demo.cpp libmapm.a 40 # 41 # 42 # 43 # (to build statically linked executables) 44 # 45 # icc -ip -O3 -o calc calc.c libmapm.a -static 46 # icc -ip -O3 -o validate validate.c libmapm.a -static 47 # icc -ip -O3 -o primenum primenum.c libmapm.a -static 48 # 49 # icpc -ip -O3 -o cpp_demo cpp_demo.cpp libmapm.a -static 50 # 51 # 52 # (to build statically linked C++ executable using Intel's C++ library's) 53 # 54 # icpc -ip -O3 -o cpp_demo cpp_demo.cpp libmapm.a -static-libcxa 55 # 56 #