1 # 2 # compile and link the 4 demo programs (Unix systems with GCC) 3 # 4 rm -f calc validate primenum cpp_demo 5 # 6 gcc -Wall -O2 calc.c libmapm.a -s -static -o calc -lm 7 gcc -Wall -O2 validate.c libmapm.a -s -static -o validate -lm 8 gcc -Wall -O2 primenum.c libmapm.a -s -static -o primenum -lm 9 # 10 # 11 # to compile and link the C++ demo program 12 # using the C++ MAPM wrapper class. 13 # 14 g++ -Wall -O2 -o cpp_demo cpp_demo.cpp libmapm.a -lm 15 #