$call gmsunzip -o %1source.zip $ifThen %system.buildcode% == DAC $ call rm -f lib%1Cexample64.dylib $ log >>> Building C library for platform DAC $ call clang -fPIC -dynamiclib -shared -o lib%1Cexample64.dylib %1cclib.c %1cclibql.c %2 -lm $ if errorlevel 1 $abort problems compiling and linking $ funcLibIn myLib ./lib%1Cexample64.dylib $endIf $ifThen %system.buildcode% == DEG $ call rm -f lib%1Cexample64.dylib $ log >>> Building C library for platform DEG $ call gcc -fPIC -dynamiclib -shared -o lib%1Cexample64.dylib %1cclib.c %1cclibql.c %2 -lm $ if errorlevel 1 $abort problems compiling and linking $ funcLibIn myLib ./lib%1Cexample64.dylib $endIf $ifThen %system.buildcode% == LAG $ call rm -f lib%1Cexample64.so $ log >>> Building C library for platform LAG $ call gcc -fPIC -nostartfiles -shared -Wl,-Bsymbolic -o lib%1Cexample64.so %1cclib.c %1cclibql.c %2 -lm -lpthread $ if errorlevel 1 $abort problems compiling and linking $ funcLibIn myLib ./lib%1Cexample64.so $endIf $ifThen %system.buildcode% == LEG $ call rm -f lib%1Cexample64.so $ log >>> Building C library for platform LEG $ call gcc -fPIC -nostartfiles -shared -Wl,-Bsymbolic -o lib%1Cexample64.so %1cclib.c %1cclibql.c %2 -lm -lpthread $ if errorlevel 1 $abort problems compiling and linking $ funcLibIn myLib ./lib%1Cexample64.so $endIf $ifThen %system.buildcode% == WEI $ call rm -f %1Cexample64.dll $ log >>> Building C library for platform WEI $ call cl.exe -nologo -O2 -Fe%1Cexample64.dll -LD %1cclib.c %1cclibql.c %2 -link $ if errorlevel 1 $abort problems compiling and linking $ funcLibIn myLib %1Cexample64.dll $endIf