开发者

objective c linux compile script

开发者 https://www.devze.com 2023-01-29 16:30 出处:网络
Im n开发者_如何学Cew to scripting, done some basic scripts, but wonder how can I create a script that I could call and say the name of the file to compile in objective c in linux

Im n开发者_如何学Cew to scripting, done some basic scripts, but wonder how can I create a script that I could call and say the name of the file to compile in objective c in linux

ie

$ gcc gnustep-config --objc-flags -lgnustep-base hello.m -o hello

so instead of all that long line I could use

$compile hello.m

to become the above line? hope this makes sense! thank you!


You'll want to learn how to use GNU Make, and write a makefile.

0

精彩评论

暂无评论...
验证码 换一张
取 消