开发者

objective c linux compile script

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜