compilec.inc : 외부 함수 C 라이브러리 컴파일

파일 : compilec.inc 다음 사용자: trilib01.gms[html]  trilib04.gms[html]

$call gmsunzip -o %1source.zip

$ifThen %system.buildcode% == DAC
$ rm -f lib%1Cexample64.dylib 호출
$ log >>> 플랫폼 DAC용 C 라이브러리 구축
$ 호출 clang -fPIC -dynamiclib -shared -o lib%1Cexample64.dylib %1cclib.c %1cclibql.c %2 -lm
$ 오류 수준 1인 경우 $abbort 문제 컴파일 및 링크
$ funcLibIn myLib ./lib%1Cexample64.dylib
$endIf

$ifThen %system.buildcode% == DEG
$ rm -f lib%1Cexample64.dylib 호출
$ log >>> 플랫폼 DEG용 C 라이브러리 구축
$ 호출 gcc -fPIC -dynamiclib -shared -o lib%1Cexample64.dylib %1cclib.c %1cclibql.c %2 -lm
$ 오류 수준 1인 경우 $abbort 문제 컴파일 및 링크
$ funcLibIn myLib ./lib%1Cexample64.dylib
$endIf

$ifThen %system.buildcode% == LAG
$ rm -f lib%1Cexample64.so 호출
$ log >>> 플랫폼 LAG용 C 라이브러리 구축
$ 호출 gcc -fPIC -nostartfiles -shared -Wl,-Bsymbolic -o lib%1Cexample64.so %1cclib.c %1cclibql.c %2 -lm -lpthread
$ 오류 수준 1인 경우 $abbort 문제 컴파일 및 링크
$ funcLibIn myLib ./lib%1Cexample64.so
$endIf

$ifThen %system.buildcode% == 다리
$ rm -f lib%1Cexample64.so 호출
$ log >>> 플랫폼 LEG용 C 라이브러리 구축
$ 호출 gcc -fPIC -nostartfiles -shared -Wl,-Bsymbolic -o lib%1Cexample64.so %1cclib.c %1cclibql.c %2 -lm -lpthread
$ 오류 수준 1인 경우 $abbort 문제 컴파일 및 링크
$ funcLibIn myLib ./lib%1Cexample64.so
$endIf

$ifThen %system.buildcode% == WEI
$ 전화 rm -f %1Cexample64.dll
$ log >>> WEI 플랫폼용 C 라이브러리 구축
$ cl.exe 호출 -nologo -O2 -Fe%1Cexample64.dll -LD %1cclib.c %1cclibql.c %2 -link
$ 오류 수준 1인 경우 $abbort 문제 컴파일 및 링크
$ funcLibIn myLib %1Cexample64.dll
$endIf